/* ============================================================
   Divjot Singh — Portfolio
   Design tokens
   ============================================================ */
:root {
  --bg: #07080b;
  --bg-alt: #0f1117;
  --bg-raised: #14171f;

  --glass: rgba(20, 23, 31, 0.55);
  --glass-strong: rgba(20, 23, 31, 0.78);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(69, 224, 255, 0.35);

  --line: #23272f;
  --line-soft: #1a1d24;

  --fg: #f3f5f9;
  --muted: #8b93a4;
  --muted-2: #565d6d;

  --cyan: #45e0ff;
  --violet: #b98bff;
  --magenta: #ff5fae;
  --indigo: #6c7bff;
  --red: #ff4d5e;

  --grad-signal: linear-gradient(90deg, var(--cyan), var(--violet));
  --grad-wide: linear-gradient(120deg, var(--cyan) 0%, var(--violet) 55%, var(--magenta) 100%);
  --grad-mesh: radial-gradient(circle at 15% 20%, rgba(69, 224, 255, 0.16), transparent 40%),
    radial-gradient(circle at 85% 15%, rgba(185, 139, 255, 0.14), transparent 45%),
    radial-gradient(circle at 50% 100%, rgba(255, 95, 174, 0.10), transparent 50%);

  --font-display: "Space Grotesk", "Arial Narrow", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Consolas", monospace;

  --radius: 14px;
  --radius-sm: 9px;
  --nav-h: 68px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-soft: cubic-bezier(.22, .61, .36, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
}

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

  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* faint grid texture + mesh glow in the background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 90%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: var(--grad-mesh);
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
}

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 200;
  background: var(--fg);
  color: #07080b;
  padding: 10px 18px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  transition: top .2s var(--ease-soft);
}

.skip-link:focus {
  top: 16px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 2;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(255, 77, 94, 0.15);
  animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(255, 77, 94, 0.15);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(255, 77, 94, 0.06);
  }
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

.tc {
  font-family: var(--font-mono);
}

/* ============================================================
   Scroll-reveal primitives (driven by script.js / GSAP)
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
}

.reveal-ready[data-reveal] {
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  will-change: opacity, transform;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* headings get a slightly bouncier "pop" entrance instead of a plain fade */
[data-reveal-pop] {
  opacity: 0;
  transform: translateY(22px) scale(.86);
}

.reveal-ready[data-reveal-pop] {
  transition: opacity .7s cubic-bezier(.34, 1.56, .64, 1), transform .7s cubic-bezier(.34, 1.56, .64, 1);
  will-change: opacity, transform;
}

[data-reveal-pop].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal-pop] {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   Timeline scrubber nav — the signature element.
   Sections are framed as clips on a timeline; the playhead
   tracks scroll position across them.
   ============================================================ */
.scrubber {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 100;
  background: rgba(7, 8, 11, 0.72);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border-bottom: 1px solid var(--glass-border);
  transition: border-color .3s ease, background .3s ease;
}

.scrubber-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 22px;
}

.scrubber-brand {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg);
  white-space: nowrap;
  padding-right: 18px;
  border-right: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
}

.scrubber-brand b {
  color: var(--cyan);
  font-weight: 600;
}

.brand-pfp {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  flex-shrink: 0;
  transition: transform .25s var(--ease-soft), border-color .25s ease, box-shadow .25s ease;
}

.brand-pfp:hover {
  transform: scale(1.12) rotate(-4deg);
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(69, 224, 255, 0.15);
}

.scrubber-track {
  position: relative;
  flex: 1;
  height: 100%;
  display: flex;
  align-items: center;
}

.scrubber-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: var(--line);
  transform: translateY(-50%);
}

.scrubber-fill {
  position: absolute;
  left: 0;
  top: 50%;
  height: 2px;
  background: var(--grad-signal);
  transform: translateY(-50%);
  width: 0%;
  transition: width .15s linear;
  box-shadow: 0 0 12px rgba(69, 224, 255, 0.5);
}

.scrubber-clips {
  position: relative;
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.clip {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  padding-top: 4px;
  cursor: pointer;
  background: none;
  border: none;
}

.clip .tick {
  width: 2px;
  height: 8px;
  background: var(--muted-2);
  transition: background .2s ease, height .2s ease, box-shadow .2s ease;
}

.clip .code {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-2);
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition: color .2s ease, transform .2s ease;
}

.clip.active .tick {
  background: var(--cyan);
  height: 12px;
  box-shadow: 0 0 8px rgba(69, 224, 255, 0.6);
}

.clip.active .code {
  color: var(--fg);
}

.clip:hover .tick {
  background: var(--violet);
  height: 12px;
}

.clip:hover .code {
  color: var(--fg);
  transform: translateY(-1px);
}

.scrubber-cta {
  font-family: var(--font-mono);
  font-size: 12.5px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  white-space: nowrap;
  transition: background .2s var(--ease-soft), color .2s ease, border-color .2s ease, transform .2s var(--ease-soft), box-shadow .2s ease;
}

.scrubber-cta:hover {
  background: var(--fg);
  color: #07080b;
  border-color: var(--fg);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(69, 224, 255, 0.18);
}

@media (max-width: 780px) {
  .scrubber-track {
    min-width: 0;
  }

  .clip .code {
    font-size: 9.5px;
  }

  .scrubber-cta {
    display: none;
  }
}

@media (max-width: 600px) {

  .scrubber-inner {
    padding: 0 10px;
    gap: 8px;
  }

  .scrubber-line,
  .scrubber-fill {
    display: none;
  }

  .scrubber-track {
    overflow-x: auto;
    overflow-y: hidden;
    min-width: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    touch-action: pan-x;
  }

  .scrubber-track::-webkit-scrollbar {
    display: none;
  }

  .scrubber-clips {
    width: max-content;
    gap: 18px;
    padding-right: 6px;
    transition: transform .45s var(--ease-soft);
  }

  .clip .code {
    font-size: 9px;
  }

  .scrubber-cta {
    display: inline-flex;
    flex-shrink: 0;
    padding: 7px 12px;
    font-size: 11px;
  }


  /* =================================
     CONTACT PAGE — PHONE NAVBAR
     ================================= */

  .contact-page .scrubber-track {
    display: none;
  }

  .contact-page .scrubber-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .contact-page .scrubber-brand {
    flex-shrink: 0;
  }

  .contact-page .scrubber-cta {
    flex-shrink: 0;
  }

}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  min-height: 94vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--nav-h) + 40px);
  padding-bottom: 60px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}

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

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.portrait {
  position: relative;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 3 / 4;
  padding: 22px 26px 0;
  box-sizing: border-box;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: visible;
  animation: silhouette-in 1s var(--ease-out) both;
  animation-delay: .15s;
  --mx: 50%;
  --my: 30%;
}

.portrait::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 78%;
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(69, 224, 255, 0.22), rgba(185, 139, 255, 0.10) 45%, transparent 72%);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
  z-index: 0;
  filter: blur(6px);
}

.portrait-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  display: block;
  transition: transform .4s var(--ease-soft), filter .4s var(--ease-soft);
  filter:
    drop-shadow(0 0 16px rgba(69, 224, 255, 0.45)) drop-shadow(0 0 42px rgba(185, 139, 255, 0.28)) drop-shadow(0 24px 60px rgba(69, 224, 255, 0.14));
}

@media (hover:hover) and (pointer:fine) {
  .portrait:hover::before {
    opacity: 1;
  }

  .portrait:hover .portrait-img {
    transform: scale(1.045);
    filter:
      drop-shadow(0 0 26px rgba(69, 224, 255, 0.65)) drop-shadow(0 0 60px rgba(185, 139, 255, 0.4)) drop-shadow(0 24px 60px rgba(69, 224, 255, 0.2));
  }
}

.portrait-fallback {
  display: none;
  min-height: 280px;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  font-size: 12px;
  color: var(--muted-2);
  border: 1px dashed var(--line);
  border-radius: 14px;
}

.portrait-empty .portrait-img {
  display: none;
}

.portrait-empty .portrait-fallback {
  display: flex;
}

@keyframes silhouette-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

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

@media (max-width:860px) {
  .portrait {
    max-width: 240px;
    margin: 0 auto;
  }
}

.hero-kicker {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 22px;
  opacity: 0;
  animation: rise-in .7s var(--ease-out) .05s both;
}

.hero-kicker .tc-live {
  color: var(--red);
}

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  font-weight: 600;
  line-height: 1.02;
  margin-bottom: 26px;
  opacity: 0;
  animation: rise-in .8s var(--ease-out) .15s both;
}

.hero h1 .last {
  background: var(--grad-wide);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-drift 8s ease-in-out infinite;
}

@keyframes gradient-drift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

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

.hero-role {
  font-family: var(--font-mono);
  font-size: clamp(14px, 2vw, 17px);
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 30px;
  opacity: 0;
  animation: rise-in .8s var(--ease-out) .28s both;
}

.hero-role .divider {
  color: var(--line);
  margin: 0 6px;
}

.hero-role .k {
  color: var(--fg);
  transition: color .2s ease;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  font-size: 14.5px;
  color: var(--muted);
  margin-bottom: 40px;
  opacity: 0;
  animation: rise-in .8s var(--ease-out) .38s both;
}

.hero-meta span b {
  color: var(--fg);
  font-weight: 600;
}

.school-link {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: color .18s ease, text-decoration-color .18s ease;
}

.school-link:hover {
  color: var(--cyan);
  text-decoration-color: var(--cyan);
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
  animation: rise-in .8s var(--ease-out) .48s both;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14.5px;
  overflow: hidden;
  transition: transform .25s var(--ease-soft), box-shadow .25s ease, border-color .25s ease;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--bx, 50%) var(--by, 50%), rgba(255, 255, 255, 0.35), transparent 60%);
  opacity: 0;
  transition: opacity .25s ease;
}

.btn:hover::before {
  opacity: 1;
}

.btn-primary {
  background: var(--fg);
  color: #07080b;
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 28px rgba(69, 224, 255, 0.24);
}

.btn-outline {
  border: 1px solid var(--line);
  color: var(--fg);
}

.btn-outline:hover {
  border-color: var(--violet);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 24px rgba(185, 139, 255, 0.14);
}

/* waveform strip along hero bottom — visual echo of an editing timeline */
.waveform {
  margin-top: 56px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 46px;
  opacity: 0.85;
}

.waveform i {
  flex: 1;
  background: var(--line);
  border-radius: 2px;
  animation: bar 2.6s ease-in-out infinite;
  transition: background .3s ease;
}

.waveform i:nth-child(odd) {
  background: var(--line);
}

@keyframes bar {

  0%,
  100% {
    transform: scaleY(0.25);
  }

  50% {
    transform: scaleY(1);
  }
}

/* ============================================================
   Section shell
   ============================================================ */
section.block {
  padding: 130px 0;
  border-top: 1px solid var(--line-soft);
  position: relative;
  overflow: hidden;
}

.block-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.block-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 600;
  margin-top: 10px;
}

.block-head .range {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted-2);
  text-align: right;
}

.block-intro {
  color: var(--muted);
  max-width: 560px;
  font-size: 15.5px;
  margin-top: 14px;
}

/* ============================================================
   Shared glass-card interaction language
   ============================================================ */
.info-card,
.reel-card,
.mic-visual,
.wpm-card,
.skill-card {
  background: var(--glass);
  backdrop-filter: blur(11px) saturate(130%);
  -webkit-backdrop-filter: blur(11px) saturate(130%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  position: relative;
  transition: transform .35s var(--ease-soft), border-color .3s ease, box-shadow .35s ease, background .3s ease;
}

.info-card::after,
.reel-card::after,
.mic-visual::after,
.wpm-card::after,
.skill-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(69, 224, 255, 0.06), transparent 40%);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}

@media (hover:hover) and (pointer:fine) {

  .info-card:hover,
  .mic-visual:hover,
  .wpm-card:hover,
  .skill-card:hover {
    transform: translateY(-5px);
    border-color: var(--glass-border-hover);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(69, 224, 255, 0.06);
    background: var(--glass-strong);
  }

  .info-card:hover::after,
  .mic-visual:hover::after,
  .wpm-card:hover::after,
  .skill-card:hover::after {
    opacity: 1;
  }
}


.project-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: 0;
  overflow: hidden;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(11px) saturate(130%);
  -webkit-backdrop-filter: blur(11px) saturate(130%);
  transition: transform .4s var(--ease-soft), border-color .3s ease, box-shadow .35s ease;
}

.project-feature:hover {
  transform: translateY(-6px);
  border-color: var(--glass-border-hover);
  box-shadow: 0 22px 52px rgba(0, 0, 0, .35);
}

.project-preview {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #11151d, #1b2030);
  border-right: 1px solid var(--glass-border);
  aspect-ratio: 1200 / 630;
  align-self: start;
}

.project-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.project-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 60%, rgba(7, 8, 11, .32)), linear-gradient(0deg, rgba(7, 8, 11, .2), transparent 45%);
  pointer-events: none;
}

.project-preview-fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: clamp(2rem, 6vw, 5rem);
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--cyan);
}

.project-preview-empty .project-preview-fallback {
  display: flex;
}

.project-preview-empty img {
  display: none;
}

.project-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 54px);
}

.project-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--cyan);
  margin-bottom: 14px;
}

.project-content h3 {
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  line-height: 1.2;
  margin-bottom: 16px;
}

.project-content p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 22px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.project-content .btn {
  align-self: flex-start;
}

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

  .project-preview {
    width: 100%;
    aspect-ratio: 1200 / 630;
    border-right: 0;
    border-bottom: 1px solid var(--glass-border);
  }

  .project-preview img {
    width: 100%;
    height: 100%;
  }
}

/* ============================================================
   Video editing
   ============================================================ */
.editor-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 46px;
}

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

.info-card {
  padding: 26px;
}

.info-card h3 {
  font-size: 14px;
  font-family: var(--font-mono);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.tool-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.tool-badge {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--line);
  color: var(--fg);
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s var(--ease-soft);
  cursor: default;
}

.tool-badge.on {
  border-color: var(--cyan);
  color: var(--cyan);
}

@media (hover:hover) and (pointer:fine) {
  .tool-badge:hover {
    background: var(--grad-signal);
    color: #07080b;
    border-color: transparent;
    transform: translateY(-2px);
  }
}

.channel-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color .2s ease, background .2s ease, transform .2s var(--ease-soft);
}

.channel-link:hover {
  border-color: var(--violet);
  background: rgba(185, 139, 255, 0.06);
  transform: translateX(4px);
}

.channel-link .handle {
  font-family: var(--font-mono);
  font-size: 14px;
}

.channel-link .go {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 13px;
  transition: transform .2s var(--ease-soft);
}

.channel-link:hover .go {
  transform: translateX(3px);
}

.reels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.reel-card {
  overflow: hidden;
  --rx: 0deg;
  --ry: 0deg;
  transition: transform .4s var(--ease-soft), border-color .3s ease, box-shadow .35s ease, background .3s ease;
}

.reel-card:hover {
  transform: translateY(-6px) perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  border-color: var(--glass-border-hover);
}

.reel-thumb {
  aspect-ratio: 16/9;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #12151b, #1a1f2b);
  overflow: hidden;
}

.reel-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(100deg,
      transparent 0 60px,
      rgba(69, 224, 255, 0.05) 60px 61px);
  pointer-events: none;
}

.reel-thumb.video-slot video {
  position: relative;
  z-index: 3;
  pointer-events: auto;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #000;
}

.reel-thumb .slot {
  position: absolute;
  top: 10px;
  left: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-2);
  z-index: 2;
  pointer-events: none;
}

.reel-thumb.video-slot {
  padding: 0;
}

.reel-body {
  padding: 18px;
}

.reel-body h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.reel-body p {
  font-size: 13px;
  color: var(--muted);
}

/* ============================================================
   Public speaking
   ============================================================ */
.speak-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: start;
}

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

.mic-visual {
  padding: 30px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 26px;
}

.level-meter {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.level-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.level-label {
  width: 64px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-2);
}

.level-bar {
  flex: 1;
  height: 8px;
  border-radius: 4px;
  background: var(--line-soft);
  overflow: hidden;
}

.level-bar i {
  display: block;
  height: 100%;
  background: var(--grad-signal);
  border-radius: 4px;
  width: 0%;
  transition: width 1.1s var(--ease-out);
}

.slot-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.slot-item {
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: transform .25s var(--ease-soft), border-color .2s ease, background .2s ease;
}

@media (hover:hover) and (pointer:fine) {
  .slot-item:hover {
    transform: translateX(6px) scale(1.01);
    border-color: var(--violet);
    border-style: solid;
    background: rgba(185, 139, 255, 0.05);
  }
}

.slot-item .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-2);
}

.slot-item .add {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--violet);
  text-align: right;
}

.strength-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.strength-item {
  display: flex;
  gap: 16px;
  transition: transform .25s var(--ease-soft);
}

.strength-item:hover {
  transform: translateX(4px);
}

.strength-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--cyan);
  padding-top: 3px;
}

.strength-item h4 {
  font-size: 16px;
  margin-bottom: 4px;
}

.strength-item p {
  font-size: 14px;
  color: var(--muted);
}

/* ============================================================
   IT & technical
   ============================================================ */
.tech-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

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

.wpm-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.wpm-display {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.wpm-number {
  font-family: var(--font-mono);
  font-size: 74px;
  font-weight: 600;
  background: var(--grad-signal);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}

.wpm-unit {
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: 16px;
}

.wpm-caption {
  font-size: 13.5px;
  color: var(--muted);
}

.keystroke-row {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.keystroke-row span {
  width: 8px;
  height: 22px;
  border-radius: 2px;
  background: var(--line-soft);
  transition: background .3s ease, transform .3s ease;
}

.keystroke-row span.hit {
  background: var(--cyan);
  transform: scaleY(1.1);
}

.skill-card {
  padding: 32px;
}

.skill-card h3 {
  font-size: 14px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 18px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 20px;
}

.tag-cloud .pill {
  font-family: var(--font-mono);
  font-size: 12.5px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  transition: transform .2s var(--ease-soft), border-color .2s ease, color .2s ease, box-shadow .2s ease;
  cursor: default;
}

.tag-cloud .pill:hover {
  transform: translateY(-4px);
  border-color: var(--cyan);
  color: var(--fg);
  box-shadow: 0 8px 20px rgba(69, 224, 255, 0.14);
}

/* ============================================================
   Contact CTA block on index
   ============================================================ */
.contact-cta {
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  background: var(--glass);
  backdrop-filter: blur(11px) saturate(130%);
  -webkit-backdrop-filter: blur(11px) saturate(130%);
  padding: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  transition: border-color .3s ease, transform .3s var(--ease-soft), box-shadow .3s ease;
}

.contact-cta:hover {
  border-color: var(--glass-border-hover);
  transform: translateY(-3px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.3);
}

.contact-cta h3 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 8px;
}

.contact-cta p {
  color: var(--muted);
  font-size: 14.5px;
  max-width: 420px;
}

/* ============================================================
   Footer
   ============================================================ */
footer {
  border-top: 1px solid var(--line-soft);
  padding: 40px 0 26px;
  position: relative;
  z-index: 2;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted-2);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  transition: color .18s ease;
}

.footer-links a:hover {
  color: var(--cyan);
}

.footer-copy {
  white-space: nowrap;
}

/* ============================================================
   Contact page specific
   ============================================================ */
.contact-hero {
  padding-top: calc(var(--nav-h) + 56px);
  padding-bottom: 40px;
  position: relative;
  z-index: 2;
}

.contact-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 600;
  margin: 14px 0 16px;
}

.contact-hero p {
  color: var(--muted);
  max-width: 560px;
  font-size: 15.5px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 100px;
  align-items: start;
  position: relative;
  z-index: 2;
}

@media (max-width:860px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

.contact-side .info-card {
  margin-bottom: 18px;
  padding: 26px;
}

.route {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 10px 6px;
  margin: 0 -6px;
  border-radius: 6px;
  border-bottom: 1px dashed var(--line);
  transition: background .18s ease, transform .18s var(--ease-soft);
}

.route:last-child {
  border-bottom: none;
}

.route span:first-child {
  color: var(--muted);
  flex-shrink: 0;
}

.route span:last-child {
  color: var(--cyan);
  text-align: right;
}

@media (hover:hover) and (pointer:fine) {
  .route:hover {
    background: rgba(69, 224, 255, 0.06);
    transform: translateX(3px);
  }
}

form.request-form {
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  background: var(--glass);
  backdrop-filter: blur(11px) saturate(130%);
  -webkit-backdrop-filter: blur(11px) saturate(130%);
  padding: 34px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color .3s ease;
}

form.request-form:focus-within {
  border-color: var(--glass-border-hover);
}

.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.field input,
.field select,
.field textarea {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 14.5px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--muted-2);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(69, 224, 255, 0.12);
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.subject-note {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted-2);
  display: flex;
  justify-content: space-between;
  padding: 10px 14px;
  border: 1px dashed var(--line);
  border-radius: 8px;
}

.form-submit {
  align-self: flex-start;
}

.form-status {
  font-family: var(--font-mono);
  font-size: 13px;
  min-height: 18px;
}

.form-status.ok {
  color: #5be49b;
}

.form-status.err {
  color: var(--red);
}

.form-status.sending {
  color: var(--muted);
}

/* keyboard focus visibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ============================================================
   Per-section interactive elements
   ============================================================ */

/* ---- Editing: draggable mini scrub bar above Featured Edits ---- */
.scrub-widget {
  border: 1px solid var(--glass-border);
  background: var(--glass);
  backdrop-filter: blur(11px) saturate(130%);
  -webkit-backdrop-filter: blur(11px) saturate(130%);
  border-radius: var(--radius-sm);
  padding: 16px 18px 14px;
  margin-bottom: 22px;
  transition: border-color .3s ease;
}

.scrub-widget:hover {
  border-color: var(--glass-border-hover);
}

.scrub-caption {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-2);
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
}

.scrub-caption .scrub-time {
  color: var(--cyan);
}

.scrub-track {
  position: relative;
  height: 44px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  cursor: pointer;
  touch-action: none;
}

.scrub-track i {
  flex: 1;
  min-width: 2px;
  background: var(--line);
  border-radius: 2px;
  height: 18%;
  transition: background .2s ease;
}

.scrub-track i.near {
  background: var(--grad-signal);
}

.scrub-playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--fg);
  left: 0%;
  box-shadow: 0 0 10px rgba(69, 224, 255, 0.7);
  pointer-events: none;
  transition: left .05s linear;
}

.scrub-playhead::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--cyan);
}

/* ---- Speaking: ambient equalizer that reacts to the cursor ---- */
.eq-visual {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 46px;
  padding-top: 4px;
  cursor: default;
}

.eq-visual i {
  flex: 1;
  background: var(--grad-signal);
  border-radius: 2px;
  height: 12%;
  opacity: .55;
  transition: opacity .25s ease, height .18s ease-out;
}

.mic-visual:hover .eq-visual i {
  opacity: .9;
}

.eq-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-2);
  margin-bottom: 8px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* ---- Tech: looping terminal typing line ---- */
.terminal-widget {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-raised);
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--cyan);
  display: flex;
  align-items: center;
  min-height: 20px;
}

.terminal-widget .cursor-blink {
  display: inline-block;
  width: 7px;
  height: 14px;
  margin-left: 2px;
  background: var(--cyan);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* ---- Contact: transmitting signal ping ---- */
.signal-ping {
  position: relative;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.signal-ping .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(69, 224, 255, 0.8);
  z-index: 1;
}

.signal-ping span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid var(--cyan);
  opacity: 0;
  animation: ping-out 2.8s ease-out infinite;
}

.signal-ping span:nth-child(2) {
  animation-delay: .9s;
}

.signal-ping span:nth-child(3) {
  animation-delay: 1.8s;
}

@keyframes ping-out {
  0% {
    transform: scale(.3);
    opacity: .7;
  }

  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

.contact-cta:hover .signal-ping span {
  animation-duration: 1.6s;
}

.contact-cta-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

@media (prefers-reduced-motion: reduce) {
  .signal-ping span {
    animation: none;
    opacity: .35;
    transform: scale(1);
  }
}

/* ============================================================
   Persistent background canvas — one WebGL scene fixed behind the
   whole page; script.js lerps its zoom/rotation and crossfades
   themed particles per section as you scroll.
   ============================================================ */
#bgCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ---- Floating quick-contact button, visible on every scroll position ---- */
.floating-contact {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 999px;
  background: var(--fg);
  color: #07080b;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(69, 224, 255, 0.1);
  transition: transform .25s var(--ease-soft), box-shadow .25s ease;
}

.floating-contact svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.floating-contact:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 34px rgba(69, 224, 255, 0.24);
}

@media (max-width: 600px) {
  .floating-contact span {
    display: none;
  }

  .floating-contact {
    padding: 14px;
  }
}

section.block>.wrap {
  position: relative;
  z-index: 2;
}

.hero {
  z-index: 1;
}

/* ============================================================
   Video editing — interactive lightbox
   ============================================================ */
.reel-card {
  cursor: pointer;
}

.reel-card .reel-thumb::before {
  content: "PLAY IN OVERLAY  ↗";
  position: absolute;
  z-index: 3;
  left: 14px;
  bottom: 12px;
  padding: 6px 9px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 5px;
  background: rgba(7,8,11,.72);
  color: var(--fg);
  font: 10px var(--font-mono);
  letter-spacing: .06em;
  opacity: .8;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s var(--ease-soft), border-color .25s ease;
}

@media (hover:hover) and (pointer:fine) {
  .reel-card:hover .reel-thumb::before {
    opacity: 1;
    transform: translateY(-2px);
    border-color: var(--cyan);
  }
}

.video-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease, visibility .3s ease;
}

.video-lightbox.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.video-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3,4,7,.86);
  backdrop-filter: blur(14px) saturate(125%);
  -webkit-backdrop-filter: blur(14px) saturate(125%);
}

.video-lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 1080px);
  max-height: calc(100vh - 56px);
  overflow: auto;
  background: rgba(14,16,23,.96);
  border: 1px solid var(--glass-border-hover);
  border-radius: var(--radius);
  box-shadow: 0 30px 90px rgba(0,0,0,.6), 0 0 0 1px rgba(69,224,255,.05);
  transform: translateY(18px) scale(.97);
  transition: transform .4s var(--ease-out);
}

.video-lightbox.is-open .video-lightbox-dialog {
  transform: translateY(0) scale(1);
}

.video-lightbox-close {
  position: absolute;
  z-index: 5;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 50%;
  background: rgba(7,8,11,.78);
  color: var(--fg);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: transform .2s var(--ease-soft), border-color .2s ease, background .2s ease;
}

.video-lightbox-close:hover {
  transform: rotate(90deg) scale(1.05);
  border-color: var(--cyan);
  background: rgba(7,8,11,.95);
}

.video-lightbox-media {
  background: #000;
  aspect-ratio: 16 / 9;
}

.video-lightbox-media video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.video-lightbox-info {
  padding: 22px 26px 26px;
}

.video-lightbox-label {
  display: block;
  margin-bottom: 8px;
  color: var(--cyan);
  font-size: 10px;
  letter-spacing: .13em;
}

.video-lightbox-info h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  line-height: 1.25;
  margin-bottom: 8px;
}

.video-lightbox-info p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

body.video-modal-open {
  overflow: hidden;
}

@media (max-width: 600px) {
  .video-lightbox {
    padding: 12px;
  }

  .video-lightbox-dialog {
    max-height: calc(100vh - 24px);
    border-radius: 10px;
  }

  .video-lightbox-info {
    padding: 18px;
  }

  .video-lightbox-close {
    top: 8px;
    right: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .video-lightbox,
  .video-lightbox-dialog,
  .video-lightbox-close {
    transition-duration: .001ms;
  }
}
