html {
  scroll-behavior: smooth;
}

.single-page-main {
  position: relative;
}

.portfolio-section {
  min-height: 100vh;
  padding: 2rem;
  border-bottom: 1px solid #27272A;
  scroll-margin-top: 3rem;
}

.portfolio-section>.flex-1,
.portfolio-section>.max-w-6xl,
.portfolio-section>.max-w-4xl,
.portfolio-section>.max-w-7xl {
  width: 100%;
}

.contact-section {
  min-height: auto;
  padding-bottom: 4rem;
}

.root-section {
  min-height: auto;
  padding-top: 1.25rem;
}

.hero-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.88fr);
  gap: clamp(1.5rem, 3.5vw, 3.75rem);
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
}

.hero-model {
  position: relative;
  min-height: 380px;
  display: grid;
  align-content: center;
  align-self: center;
  isolation: isolate;
  transform: translateX(-1.5rem);
}

.hero-model::before {
  content: "";
  position: absolute;
  inset: 12% 2% 18%;
  border: 1px solid rgba(162, 255, 202, 0.08);
  background:
    radial-gradient(circle at 50% 45%, rgba(162, 255, 202, 0.16), transparent 42%),
    radial-gradient(circle at 70% 20%, rgba(138, 43, 226, 0.18), transparent 38%);
  filter: blur(18px);
  opacity: 0.9;
  z-index: -1;
}

.hero-model-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(320px, 38vw, 500px);
  padding-bottom: 4.75rem;
}

.hero-model-poster {
  width: min(100%, 620px);
  height: auto;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.42));
  transition: opacity 220ms ease, transform 220ms ease;
}

.hero-model-load {
  position: absolute;
  left: 50%;
  bottom: 3rem;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(162, 255, 202, 0.45);
  background: rgba(10, 10, 12, 0.78);
  color: #a2ffca;
  padding: 0.75rem 1rem;
  font: 700 12px/1 "JetBrains Mono", monospace;
  letter-spacing: 0.06em;
  box-shadow: 0 0 24px rgba(162, 255, 202, 0.12);
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.hero-model-load:hover,
.hero-model-load:focus-visible {
  border-color: #a2ffca;
  background: rgba(162, 255, 202, 0.12);
  outline: none;
}

.hero-model-load .material-symbols-outlined {
  font-size: 18px;
}

.hero-model-status {
  position: absolute;
  left: 50%;
  bottom: 1.45rem;
  transform: translateX(-50%);
  color: #849589;
  font: 10px/1.4 "JetBrains Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-model-stage.is-loading .hero-model-load {
  pointer-events: none;
  color: #71717A;
  border-color: rgba(113, 113, 122, 0.4);
}

.hero-model-stage.is-model-active .hero-model-poster,
.hero-model-stage.is-model-active .hero-model-load,
.hero-model-stage.is-model-active .hero-model-status {
  opacity: 0;
  pointer-events: none;
}

.hero-model-stage.is-loading .hero-model-poster {
  opacity: 1;
}

.hero-model model-viewer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  --poster-color: transparent;
  background: transparent;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.42));
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease;
}

.hero-model-stage.is-model-active model-viewer.is-loaded {
  opacity: 1;
  visibility: visible;
}

.hero-model-fallback {
  height: 100%;
  display: grid;
  place-items: center;
  color: #71717A;
  font: 12px/1.4 "JetBrains Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.workspace-status {
  transition: border-color 180ms ease, background 180ms ease;
}

.workspace-status .status-dot,
.workspace-status .status-ping,
.workspace-status .workspace-status-text {
  transition: background-color 180ms ease, color 180ms ease, opacity 180ms ease;
}

.workspace-status.is-ready {
  border-color: rgba(162, 255, 202, 0.35);
  background: rgba(162, 255, 202, 0.06);
}

.workspace-status.is-ready .status-dot,
.workspace-status.is-ready .status-ping {
  background: #a2ffca;
}

.workspace-status.is-ready .workspace-status-text {
  color: #a2ffca;
}

.model-attribution {
  color: #849589;
  font: 10px/1.45 "JetBrains Mono", monospace;
  grid-column: 1 / -1;
  justify-self: end;
  margin-top: -2.2rem;
  margin-right: 0.25rem;
  opacity: 0.55;
}

.model-attribution a {
  color: #bacbbe;
  text-decoration: underline;
  text-decoration-color: rgba(162, 255, 202, 0.35);
  text-underline-offset: 0.18em;
}

.model-attribution a:hover,
.model-attribution a:focus-visible {
  color: #a2ffca;
}

.nav-link.is-active {
  color: #dbe5dc;
  background: rgba(162, 255, 202, 0.05);
  border-left-color: #a2ffca;
}

.nav-link:not(.is-active) {
  border-left-color: transparent;
}

.route-flash {
  animation: routeFlash 180ms ease-out;
}

.motion-reveal {
  opacity: 0;
  transform: translateY(18px);
}

.motion-reveal.motion-visible {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 520ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--motion-delay, 0ms);
}

@keyframes routeFlash {
  0% {
    color: #a2ffca;
    text-shadow: 0 0 10px rgba(162, 255, 202, 0.55);
  }

  100% {
    color: #13ec9c;
    text-shadow: none;
  }
}

.ia-lab-section {
  position: relative;
  overflow: hidden;
}

.ia-lab-section::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: 6%;
  top: 12%;
  border-radius: 9999px;
  background: rgba(138, 43, 226, 0.18);
  filter: blur(120px);
  pointer-events: none;
  animation: aiGlowDrift 18s ease-in-out infinite alternate;
}

.vision-card-body {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(420px, 1.35fr);
  gap: clamp(1.5rem, 3vw, 2.25rem);
  align-items: center;
}

.vision-card-copy {
  min-width: 0;
}

.vision-card-copy .inline-flex {
  flex-wrap: nowrap;
}

.vision-scan {
  --cnn-start: 480ms;
  --cnn-run: 2.05s;
  position: relative;
  width: 100%;
  height: 16rem;
  overflow: hidden;
  border: 1px solid rgba(162, 255, 202, 0.14);
  border-radius: 0.25rem;
  background: linear-gradient(135deg, rgba(19, 236, 156, 0.08), rgba(10, 10, 12, 0.96) 46%, rgba(138, 43, 226, 0.1));
}

.vision-scan::before,
.vision-scan::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.vision-scan::before {
  background-image:
    linear-gradient(to right, rgba(162, 255, 202, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(162, 255, 202, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.5;
}

.vision-scan::after {
  background: linear-gradient(90deg, transparent, rgba(162, 255, 202, 0.12), transparent);
  width: 20%;
  transform: translateX(-120%);
}

.vision-scan.vision-sequence-visible::after {
  animation: cnnScan var(--cnn-start) cubic-bezier(0.2, 0.76, 0.25, 1) forwards;
}

.vision-cnn-stage {
  position: absolute;
  border: 1px solid rgba(162, 255, 202, 0.3);
  background: rgba(10, 10, 12, 0.58);
  box-shadow: inset 0 0 24px rgba(162, 255, 202, 0.06);
}

.vision-cnn-input {
  left: 5.5%;
  top: 18%;
  width: 25%;
  height: 60%;
  overflow: hidden;
  opacity: 0;
}

.vision-sequence-visible .vision-cnn-input {
  animation: stageAppear 180ms ease-out calc(var(--cnn-start) - 140ms) forwards;
}

.vision-cnn-input > span {
  position: absolute;
  display: block;
  opacity: 0;
}

.house-sky {
  inset: 0;
  background:
    linear-gradient(180deg, rgba(162, 255, 202, 0.08), transparent 58%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0 2px, transparent 2px 10px);
  filter: blur(1.8px) grayscale(0.6);
}

.house-roof {
  left: 20%;
  top: 13%;
  width: 58%;
  height: 32%;
  background: rgba(220, 184, 255, 0.6);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  filter: blur(2px) grayscale(0.35);
}

.house-body {
  left: 27%;
  top: 47%;
  width: 46%;
  height: 34%;
  background: rgba(219, 229, 220, 0.66);
  filter: blur(2px) grayscale(0.45);
}

.house-door {
  left: 44%;
  top: 61%;
  width: 12%;
  height: 20%;
  background: rgba(10, 10, 12, 0.62);
  filter: blur(1.4px);
}

.house-window {
  top: 55%;
  width: 9%;
  height: 9%;
  background: rgba(162, 255, 202, 0.68);
  filter: blur(1.3px);
}

.window-a { left: 34%; }
.window-b { right: 34%; }

.vision-sequence-visible .vision-cnn-input > span {
  animation: inputToFeatures var(--cnn-run) steps(1, end) var(--cnn-start) forwards;
}

.vision-kernel {
  position: absolute;
  left: 10%;
  top: 12%;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid rgba(220, 184, 255, 0.72);
  background:
    linear-gradient(to right, transparent 32%, rgba(220, 184, 255, 0.56) 32% 34%, transparent 34% 66%, rgba(220, 184, 255, 0.56) 66% 68%, transparent 68%),
    linear-gradient(to bottom, transparent 32%, rgba(220, 184, 255, 0.56) 32% 34%, transparent 34% 66%, rgba(220, 184, 255, 0.56) 66% 68%, transparent 68%),
    radial-gradient(circle at 17% 17%, rgba(162, 255, 202, 0.8) 0 4%, transparent 5%),
    radial-gradient(circle at 50% 17%, rgba(220, 184, 255, 0.8) 0 4%, transparent 5%),
    radial-gradient(circle at 83% 17%, rgba(162, 255, 202, 0.8) 0 4%, transparent 5%),
    radial-gradient(circle at 17% 50%, rgba(220, 184, 255, 0.8) 0 4%, transparent 5%),
    radial-gradient(circle at 50% 50%, rgba(219, 229, 220, 0.86) 0 5%, transparent 6%),
    radial-gradient(circle at 83% 50%, rgba(220, 184, 255, 0.8) 0 4%, transparent 5%),
    radial-gradient(circle at 17% 83%, rgba(162, 255, 202, 0.8) 0 4%, transparent 5%),
    radial-gradient(circle at 50% 83%, rgba(220, 184, 255, 0.8) 0 4%, transparent 5%),
    radial-gradient(circle at 83% 83%, rgba(162, 255, 202, 0.8) 0 4%, transparent 5%),
    rgba(49, 24, 75, 0.44);
  opacity: 0;
  box-shadow: 0 0 18px rgba(220, 184, 255, 0.16);
  z-index: 3;
}

.vision-sequence-visible .vision-kernel {
  animation: kernelRasterPass var(--cnn-run) steps(1, end) var(--cnn-start) forwards;
}

.vision-cnn-feature {
  width: 6%;
  height: 38%;
  top: 31%;
  opacity: 0;
}

.feature-a {
  left: 41%;
  background: rgba(10, 10, 12, 0.7);
}

.feature-b {
  left: 48.5%;
  background: rgba(10, 10, 12, 0.7);
}

.feature-c {
  left: 56%;
  background: rgba(10, 10, 12, 0.7);
}

.feature-a::before,
.feature-a::after,
.feature-b::before,
.feature-b::after,
.feature-c::before,
.feature-c::after {
  content: "";
  position: absolute;
  display: block;
}

.feature-a::before {
  display: none;
}

.feature-a::after {
  left: 24%;
  top: 48%;
  width: 52%;
  height: 32%;
  border: 1px solid rgba(162, 255, 202, 0.82);
}

.feature-b::before {
  left: 16%;
  top: 20%;
  width: 68%;
  height: 30%;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: repeating-linear-gradient(135deg, rgba(220, 184, 255, 0.62) 0 2px, transparent 2px 8px);
}

.feature-b::after {
  left: 18%;
  top: 47%;
  width: 64%;
  height: 2px;
  background: rgba(220, 184, 255, 0.72);
}

.feature-c::before,
.feature-c::after {
  top: 53%;
  width: 18%;
  height: 12%;
  border: 1px solid rgba(162, 255, 202, 0.82);
  background: rgba(162, 255, 202, 0.12);
}

.feature-c::before { left: 24%; }
.feature-c::after { right: 24%; }

.feature-c {
  box-shadow:
    inset 0 0 0 1px rgba(162, 255, 202, 0.16),
    inset 0 -2rem 0 rgba(162, 255, 202, 0.03);
}

.vision-sequence-visible .vision-cnn-feature {
  animation: featureResolve var(--cnn-run) steps(1, end) var(--cnn-start) forwards;
}

.vision-sequence-visible .feature-b { animation-delay: calc(var(--cnn-start) + 160ms); }
.vision-sequence-visible .feature-c { animation-delay: calc(var(--cnn-start) + 320ms); }

.vision-cnn-output {
  right: 4.5%;
  top: 16%;
  width: 24%;
  height: 64%;
  border: 1px solid rgba(162, 255, 202, 0.3);
  background: rgba(10, 10, 12, 0.42);
  box-shadow: inset 0 0 24px rgba(162, 255, 202, 0.04);
  opacity: 0;
  overflow: hidden;
}

.vision-sequence-visible .vision-cnn-output {
  animation: outputBoxReveal var(--cnn-run) steps(1, end) var(--cnn-start) forwards;
}

.rebuild-line,
.rebuild-shape {
  position: absolute;
  display: block;
  opacity: 0;
}

.rebuild-line {
  height: 2px;
  width: 58%;
  left: 21%;
  transform-origin: left center;
  background: linear-gradient(90deg, rgba(162, 255, 202, 0), rgba(162, 255, 202, 0.86), rgba(220, 184, 255, 0.2));
}

.line-a,
.line-b {
  display: none;
}

.line-c {
  left: 22%;
  top: 44%;
  width: 56%;
  transform: rotate(0deg) scaleX(0);
}

.vision-sequence-visible .rebuild-line {
  animation: pieceAppear var(--cnn-run) steps(1, end) var(--cnn-start) forwards;
}

.rebuild-shape {
  border: 2px solid rgba(162, 255, 202, 0.8);
  box-shadow: 0 0 18px rgba(162, 255, 202, 0.22);
  transform-origin: left center;
}

.shape-a {
  left: 27%;
  top: 47%;
  width: 46%;
  height: 34%;
  border-radius: 0;
  border-color: rgba(162, 255, 202, 0.72);
}

.shape-b {
  left: 20%;
  top: 13%;
  width: 58%;
  height: 32%;
  border-color: rgba(220, 184, 255, 0.75);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: repeating-linear-gradient(135deg, rgba(220, 184, 255, 0.2) 0 3px, transparent 3px 10px);
  --shape-rotate: 0deg;
  transform: rotate(var(--shape-rotate));
}

.shape-c {
  left: 44%;
  top: 61%;
  width: 12%;
  height: 20%;
  background: rgba(10, 10, 12, 0.3);
  border-color: rgba(219, 229, 220, 0.72);
}

.shape-a::before,
.shape-a::after {
  content: "";
  position: absolute;
  top: 22%;
  width: 18%;
  height: 18%;
  border: 1px solid rgba(162, 255, 202, 0.82);
  background: repeating-linear-gradient(45deg, rgba(162, 255, 202, 0.16) 0 2px, transparent 2px 7px);
  opacity: 0;
}

.shape-a::before { left: 17%; }
.shape-a::after { right: 17%; }

.vision-sequence-visible .shape-a::before,
.vision-sequence-visible .shape-a::after {
  animation: pieceAppear var(--cnn-run) steps(1, end) forwards;
  animation-delay: calc(var(--cnn-start) + 520ms);
}

.vision-sequence-visible .rebuild-shape {
  animation: pieceAppear var(--cnn-run) steps(1, end) var(--cnn-start) forwards;
}

.vision-sequence-visible .shape-b { animation-delay: var(--cnn-start); }
.vision-sequence-visible .line-c { animation-delay: calc(var(--cnn-start) + 140ms); }
.vision-sequence-visible .shape-a { animation-delay: calc(var(--cnn-start) + 280ms); }
.vision-sequence-visible .shape-c { animation-delay: calc(var(--cnn-start) + 420ms); }

.vision-cnn-label {
  position: absolute;
  color: rgba(219, 229, 220, 0.74);
  font: 10px/1.2 "JetBrains Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0;
  opacity: 0;
}

.label-input {
  left: 5.5%;
  bottom: 9%;
  width: 25%;
  text-align: center;
}

.label-kernel {
  left: 41%;
  bottom: 9%;
  width: 20%;
  color: rgba(220, 184, 255, 0.82);
  text-align: center;
}

.label-output {
  right: 4.5%;
  bottom: 9%;
  width: 24%;
  color: rgba(162, 255, 202, 0.86);
  text-align: center;
}

.vision-sequence-visible .vision-cnn-label {
  opacity: 1;
  transition: opacity 120ms ease-out calc(var(--cnn-start) - 80ms);
}

@keyframes cnnScan {
  0% { transform: translateX(-120%); opacity: 0; }
  12%, 82% { opacity: 1; }
  100% { transform: translateX(620%); opacity: 0; }
}

@keyframes stageAppear {
  to { opacity: 1; }
}

@keyframes inputToFeatures {
  0% { filter: blur(1.8px) grayscale(0.6); opacity: 0.95; }
  56% { filter: blur(1.8px) grayscale(0.6); opacity: 0.95; }
  64%, 100% { filter: blur(1.4px) grayscale(1) contrast(2.2); opacity: 0.34; }
}

@keyframes kernelPass {
  0% { transform: translateX(-2rem); opacity: 0; }
  15%, 72% { opacity: 1; }
  100% { transform: translateX(14rem); opacity: 0; }
}

@keyframes kernelRasterPass {
  0% { transform: translate(0, 0); opacity: 1; }
  5% { transform: translate(2.8rem, 0); opacity: 1; }
  10% { transform: translate(5.6rem, 0); opacity: 1; }
  15% { transform: translate(8.4rem, 0); opacity: 1; }
  20% { transform: translate(0, 2.15rem); opacity: 1; }
  25% { transform: translate(2.8rem, 2.15rem); opacity: 1; }
  30% { transform: translate(5.6rem, 2.15rem); opacity: 1; }
  35% { transform: translate(8.4rem, 2.15rem); opacity: 1; }
  40% { transform: translate(0, 4.3rem); opacity: 1; }
  45% { transform: translate(2.8rem, 4.3rem); opacity: 1; }
  50% { transform: translate(5.6rem, 4.3rem); opacity: 1; }
  56% { transform: translate(8.4rem, 4.3rem); opacity: 1; }
  57%, 100% { transform: translate(8.4rem, 4.3rem); opacity: 0; }
}

@keyframes featureResolve {
  0%, 58% { transform: translateX(-0.2rem); opacity: 0; }
  66%, 100% { transform: translateX(0); opacity: 0.82; }
}

@keyframes outputBoxReveal {
  0%, 80% { opacity: 0; }
  84%, 100% { opacity: 1; }
}

@keyframes pieceAppear {
  0%, 84% { opacity: 0; }
  85%, 100% { opacity: 1; }
}

.line-c { --line-angle: 0deg; }

@keyframes labelFade {
  0%, 44% { opacity: 0; transform: translateY(0.35rem); }
  100% { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .vision-card-body {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
}

@media (max-width: 560px) {
  .vision-scan {
    height: 14rem;
  }

  .vision-cnn-label {
    font-size: 8px;
  }

  .label-input { left: 5%; }
  .label-kernel { left: 32%; width: 36%; }
  .label-output { right: 4%; }
}

.section-title-cursor {
  display: inline-block;
  width: 0.16em;
  height: 0.72em;
  margin-left: 0.18em;
  background: #a2ffca;
  transform: translateY(0.04em);
  animation: sectionCursorBlink 1s step-end infinite;
}

@keyframes sectionCursorBlink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

@media (max-width: 767px) {
  .portfolio-section {
    padding: 1.25rem;
    scroll-margin-top: 4rem;
  }

  .hero-intro {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hero-model {
    min-height: 360px;
    transform: none;
  }

  .hero-model-stage {
    min-height: 360px;
    padding-bottom: 4.75rem;
  }

  .hero-model-poster {
    width: min(100%, 300px);
    align-self: start;
  }

  .hero-model model-viewer {
    height: 360px;
  }

  .model-attribution {
    justify-self: start;
    margin-top: -0.5rem;
  }
}

@media (min-width: 768px) and (max-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) and (max-width: 1100px) {
  body > nav {
    height: 100dvh !important;
    min-height: 100dvh !important;
    bottom: 0;
  }

  .single-page-main {
    min-height: 100dvh;
  }

  .portfolio-section {
    padding: 1.5rem 1.75rem;
  }

  .root-section {
    min-height: calc(100dvh - 3rem);
    padding-top: 1.5rem;
  }

  .hero-intro {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    align-items: start;
  }

  .root-section .hero-intro h1 {
    max-width: 11ch;
    font-size: clamp(3.25rem, 8vw, 4.25rem) !important;
    line-height: 0.98 !important;
  }

  .root-section .hero-intro p {
    max-width: 28rem;
  }

  .hero-model {
    min-height: 260px;
    align-self: center;
    justify-self: center;
    margin-top: -1.25rem;
    width: min(24rem, 72%);
  }

  .hero-model-stage,
  .hero-model model-viewer,
  .hero-model-poster {
    height: 300px;
  }

  .contact-section {
    min-height: auto;
    padding-bottom: 4rem;
  }

  .contact-section .max-w-6xl {
    max-width: 44rem;
  }

  .contact-section .glass-panel > div:last-child {
    flex-direction: column !important;
    gap: 1.5rem;
  }

  .contact-section .glass-panel > div:last-child > div {
    width: 100% !important;
  }

  .contact-section .glass-panel > div:last-child > div:first-child {
    flex-direction: row;
    align-items: center;
  }
}

.project-preview {
  height: 13rem;
  border-top: 1px solid #27272A;
  position: relative;
  overflow: hidden;
  padding: 1rem;
  background:
    linear-gradient(135deg, rgba(162, 255, 202, 0.06), transparent 42%),
    radial-gradient(circle at 78% 20%, rgba(138, 43, 226, 0.16), transparent 42%),
    #0A0A0C;
}

.project-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(162, 255, 202, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(162, 255, 202, 0.06) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.7;
}

.project-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(162, 255, 202, 0.16), transparent);
  opacity: 0;
  transform: translateY(-100%);
}

.group:hover .project-preview::after {
  animation: previewScan 900ms ease-out;
}

.preview-frame,
.phone-frame {
  position: relative;
  z-index: 1;
  height: 100%;
  border: 1px solid rgba(132, 149, 137, 0.28);
  background: rgba(19, 19, 23, 0.78);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 0 24px rgba(0, 255, 163, 0.05);
  transform: translateY(0);
  transition: transform 180ms ease, border-color 180ms ease;
}

.group:hover .preview-frame,
.group:hover .phone-frame {
  transform: translateY(-3px);
  border-color: rgba(162, 255, 202, 0.55);
}

.preview-topbar {
  height: 1.75rem;
  border-bottom: 1px solid #27272A;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0 0.65rem;
  color: #71717A;
  font: 10px/1 "JetBrains Mono", monospace;
}

.preview-topbar span {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: #849589;
}

.preview-topbar span:first-child {
  background: #ffb4ab;
}

.preview-topbar span:nth-child(2) {
  background: #ffc661;
}

.preview-topbar span:nth-child(3) {
  background: #a2ffca;
}

.preview-topbar em {
  font-style: normal;
  margin-left: auto;
}

.preview-body {
  height: calc(100% - 1.75rem);
  display: grid;
  grid-template-columns: 2.5rem 1fr;
}

.preview-sidebar {
  border-right: 1px solid #27272A;
  display: grid;
  align-content: start;
  gap: 0.55rem;
  padding: 0.65rem;
}

.preview-sidebar b {
  color: #0A0A0C;
  background: #a2ffca;
  width: 1.3rem;
  height: 1.3rem;
  display: grid;
  place-items: center;
  font: 700 11px/1 "Space Grotesk", sans-serif;
}

.preview-sidebar i,
.preview-table i,
.invoice-lines i,
.mobile-list i {
  display: block;
  background: rgba(186, 203, 190, 0.22);
}

.preview-sidebar i {
  height: 0.38rem;
}

.preview-content {
  padding: 0.75rem;
}

.preview-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
}

.preview-kpi-row strong {
  border: 1px solid rgba(132, 149, 137, 0.18);
  color: #a2ffca;
  padding: 0.45rem;
  font: 10px/1 "JetBrains Mono", monospace;
  background: rgba(162, 255, 202, 0.04);
}

.preview-chart {
  height: 3.2rem;
  margin-top: 0.65rem;
  border-left: 1px solid #27272A;
  border-bottom: 1px solid #27272A;
  display: flex;
  align-items: end;
  gap: 0.5rem;
  padding: 0 0.5rem;
}

.preview-chart span {
  width: 1rem;
  background: linear-gradient(to top, #13ec9c, rgba(19, 236, 156, 0.2));
  transform-origin: bottom;
  animation: chartPulse 4.8s ease-in-out infinite;
}

.preview-chart span:nth-child(1) {
  height: 42%;
  animation-delay: 0ms;
}

.preview-chart span:nth-child(2) {
  height: 70%;
  animation-delay: 320ms;
}

.preview-chart span:nth-child(3) {
  height: 54%;
  animation-delay: 640ms;
}

.preview-chart span:nth-child(4) {
  height: 88%;
  animation-delay: 960ms;
}

.preview-table {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.65rem;
}

.preview-table i,
.invoice-lines i,
.mobile-list i {
  height: 0.45rem;
  animation: lineActivity 4.4s ease-in-out infinite;
}

.invoice-preview {
  height: calc(100% - 1.75rem);
  padding: 0.75rem;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 0;
}

.invoice-head,
.invoice-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #dcb8ff;
  font: 700 12px/1 "Space Grotesk", sans-serif;
}

.invoice-head b {
  color: #E4E4E7;
  border: 1px solid rgba(220, 184, 255, 0.22);
  padding: 0.35rem;
}

.invoice-lines {
  display: grid;
  align-content: center;
  gap: 0.4rem;
  margin: 0.55rem 0;
  min-height: 0;
}

.invoice-lines i:nth-child(2) {
  width: 82%;
  animation-delay: 180ms;
}

.invoice-lines i:nth-child(3) {
  width: 68%;
  animation-delay: 360ms;
}

.invoice-lines i:nth-child(4) {
  width: 91%;
  animation-delay: 540ms;
}

.invoice-total {
  border-top: 1px dashed rgba(220, 184, 255, 0.28);
  padding-top: 0.45rem;
  min-height: 1rem;
}

.invoice-total strong {
  color: #a2ffca;
}

.phone-frame {
  width: 7.8rem;
  margin: 0 auto;
  border-radius: 1.1rem;
  padding: 0.9rem 0.65rem 0.65rem;
}

.phone-notch {
  position: absolute;
  top: 0.35rem;
  left: 50%;
  width: 2.2rem;
  height: 0.3rem;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #27272A;
}

.mobile-header {
  display: flex;
  justify-content: space-between;
  color: #ffc661;
  font: 700 10px/1 "Space Grotesk", sans-serif;
  margin: 0.55rem 0 0.8rem;
}

.mobile-header span {
  color: #0A0A0C;
  background: #ffc661;
  padding: 0.15rem 0.3rem;
}

.mobile-list {
  display: grid;
  gap: 0.45rem;
}

.mobile-list i {
  height: 1.1rem;
  border: 1px solid rgba(255, 198, 97, 0.12);
  background: rgba(255, 198, 97, 0.08);
  animation-name: mobileListPulse;
}

.mobile-list i:nth-child(2) {
  animation-delay: 220ms;
}

.mobile-list i:nth-child(3) {
  animation-delay: 440ms;
}

.mobile-list i:nth-child(4) {
  animation-delay: 660ms;
}

.mobile-nav {
  position: absolute;
  left: 0.65rem;
  right: 0.65rem;
  bottom: 0.55rem;
  display: flex;
  justify-content: space-around;
}

.mobile-nav span {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: rgba(255, 198, 97, 0.65);
}

.project-detail-link {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  transition: transform 160ms ease, opacity 160ms ease;
}

.project-detail-link:hover {
  transform: translateX(4px);
  opacity: 0.85;
}

.project-detail-stack {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.project-detail-panel {
  scroll-margin-top: 4.5rem;
  border: 1px solid #27272A;
  background: rgba(19, 19, 23, 0.72);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 0 24px rgba(0, 255, 163, 0.045);
  max-width: 72rem;
  margin-inline: auto;
}

.detail-header {
  min-height: 2.25rem;
  border-bottom: 1px solid #27272A;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.55rem 0.85rem;
  color: #71717A;
  font: 12px/1 "JetBrains Mono", monospace;
}

.detail-header a {
  color: #a2ffca;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 1fr);
  gap: 1.5rem;
  padding: 0 clamp(1.25rem, 3vw, 2rem) clamp(1.25rem, 3vw, 2rem);
}

.detail-kicker {
  color: #a2ffca;
  font: 700 12px/1 "JetBrains Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 1rem;
}

.project-detail-panel h3 {
  color: #E4E4E7;
  font: 700 clamp(1.6rem, 3vw, 2.35rem)/1.05 "Space Grotesk", sans-serif;
  margin: 0 0 1rem;
}

.project-detail-panel p {
  color: #bacbbe;
  line-height: 1.65;
}

.detail-list {
  display: grid;
  gap: 0.75rem;
}

.detail-list p {
  margin: 0;
  border-left: 1px solid rgba(162, 255, 202, 0.28);
  padding-left: 1rem;
}

.detail-list strong {
  display: block;
  color: #E4E4E7;
  font: 700 12px/1 "JetBrains Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}

.detail-list span {
  display: block;
  color: #bacbbe;
}

.project-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(220px, 0.75fr);
  grid-template-rows: repeat(2, 128px);
  gap: 0.85rem;
  padding: clamp(1rem, 2.4vw, 1.5rem);
  align-items: start;
}

.project-shot {
  position: relative;
  height: 128px;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(132, 149, 137, 0.24);
  background:
    radial-gradient(circle at 72% 18%, rgba(138, 43, 226, 0.18), transparent 36%),
    linear-gradient(135deg, rgba(162, 255, 202, 0.07), rgba(19, 19, 23, 0.82)),
    #0A0A0C;
}

.project-shot.main-shot {
  grid-row: span 2;
  height: 272px;
  min-height: 0;
}

.project-shot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 0.5rem;
  transition: transform 220ms ease, opacity 220ms ease;
  cursor: zoom-in;
}

.project-detail-panel:hover .project-shot img {
  transform: scale(1.018);
}

.project-shot.is-missing::before {
  content: attr(data-placeholder);
  position: absolute;
  inset: 1rem;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(162, 255, 202, 0.28);
  color: #849589;
  text-align: center;
  font: 12px/1.5 "JetBrains Mono", monospace;
  padding: 1rem;
}

.project-shot.is-missing::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(162, 255, 202, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(162, 255, 202, 0.055) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.mobile-gallery {
  grid-template-columns: repeat(3, minmax(150px, 210px));
  grid-template-rows: 300px;
  justify-content: center;
}

.mobile-gallery .project-shot {
  height: 300px;
  min-height: 0;
  max-height: 300px;
  background:
    radial-gradient(circle at 50% 0%, rgba(162, 255, 202, 0.08), transparent 44%),
    #0A0A0C;
}

.mobile-gallery .project-shot.main-shot {
  grid-row: auto;
}

.mobile-gallery .project-shot img {
  object-fit: contain;
  object-position: center top;
  padding: 0.5rem;
}

.taemoi-gallery {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: 245px 175px;
  align-items: stretch;
}

.taemoi-gallery .main-shot {
  grid-column: 1 / -1;
  grid-row: auto;
  height: 245px;
  overflow: hidden;
}

.taemoi-gallery .main-shot img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center top;
  padding: 0;
}

.taemoi-gallery .project-shot:not(.main-shot) {
  height: 175px;
  background: rgba(10, 10, 12, 0.65);
}

.taemoi-gallery .project-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  padding: 0;
}

.mixed-gallery {
  grid-template-columns: minmax(0, 1.65fr) minmax(150px, 0.52fr) minmax(150px, 0.52fr);
  grid-template-rows: 325px;
  align-items: stretch;
}

.mixed-gallery .project-shot {
  height: 325px;
  min-height: 0;
}

.mixed-gallery .landscape-shot {
  aspect-ratio: auto;
}

.mixed-gallery .portrait-shot {
  aspect-ratio: auto;
  max-height: none;
}

.mixed-gallery .project-shot img {
  object-fit: contain;
  object-position: center;
  padding: 0.5rem;
}

.easybill-gallery {
  grid-template-columns: minmax(0, 1.45fr) minmax(250px, 0.7fr);
  grid-template-rows: repeat(2, 176px);
  align-items: stretch;
}

.easybill-gallery .project-shot {
  height: 176px;
}

.easybill-gallery .document-shot {
  grid-column: 2;
  grid-row: 1 / span 2;
  height: 368px;
}

.easybill-gallery .easybill-screen {
  background: #f4f4f5;
}

.easybill-gallery .easybill-screen img {
  object-fit: cover;
  object-position: center top;
  padding: 0;
}

.easybill-gallery .document-shot img {
  object-position: center top;
  padding: 0.35rem;
}

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

.gallery-card {
  min-height: 22rem;
  display: grid;
  grid-template-rows: 14.5rem auto;
  border: 1px solid #27272A;
  background: rgba(19, 19, 23, 0.72);
  backdrop-filter: blur(12px);
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.gallery-card:hover {
  transform: translateY(-4px);
  border-color: rgba(162, 255, 202, 0.5);
  background: rgba(21, 29, 24, 0.78);
}

.gallery-card figure {
  position: relative;
  height: 14.5rem;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 20%, rgba(138, 43, 226, 0.2), transparent 38%),
    linear-gradient(135deg, rgba(162, 255, 202, 0.08), rgba(10, 10, 12, 0.9)),
    #0A0A0C;
}

.gallery-card figure::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid transparent;
  background:
    linear-gradient(to bottom, rgba(162, 255, 202, 0.1), transparent 28%),
    linear-gradient(to right, transparent, rgba(162, 255, 202, 0.08), transparent);
  opacity: 0;
  transform: translateY(-10%);
  transition: opacity 180ms ease, transform 180ms ease;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 0.65rem;
  transition: transform 220ms ease, opacity 220ms ease;
  cursor: zoom-in;
}

.gallery-card:hover img {
  transform: scale(1.025);
}

.gallery-card:hover figure::after,
.gallery-card:focus-visible figure::after {
  opacity: 1;
  transform: translateY(0);
}

.gallery-card figure.is-missing::before {
  content: attr(data-placeholder);
  position: absolute;
  inset: 1rem;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(162, 255, 202, 0.28);
  color: #849589;
  text-align: center;
  font: 12px/1.5 "JetBrains Mono", monospace;
  padding: 1rem;
}

.gallery-card figure.is-missing::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(162, 255, 202, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(162, 255, 202, 0.055) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.gallery-card>div {
  padding: 1.25rem;
  border-top: 1px solid #27272A;
}

.gallery-card span {
  display: block;
  color: #849589;
  font: 12px/1 "JetBrains Mono", monospace;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.gallery-card strong {
  display: block;
  color: #E4E4E7;
  font: 700 1.65rem/1.05 "Space Grotesk", sans-serif;
  margin-bottom: 0.5rem;
}

.gallery-card p {
  color: #bacbbe;
  line-height: 1.55;
  margin: 0;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(5, 8, 6, 0.88);
  backdrop-filter: blur(14px);
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-width: min(94vw, 1200px);
  max-height: 88vh;
  object-fit: contain;
  border: 1px solid rgba(162, 255, 202, 0.28);
  background: #0A0A0C;
  box-shadow: 0 0 48px rgba(0, 255, 163, 0.12);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;

  width: 2.5rem;
  height: 2.5rem;
  box-sizing: border-box;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0 0 2px;
  margin: 0;
  border: 1px solid rgba(162, 255, 202, 0.3);

  color: #a2ffca;
  background: rgba(19, 19, 23, 0.8);

  font: 400 1.5rem/1 Arial, Helvetica, sans-serif;

  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

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

  .project-gallery,
  .mobile-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .project-shot,
  .project-shot.main-shot,
  .mobile-gallery .project-shot,
  .taemoi-gallery .project-shot,
  .taemoi-gallery .main-shot {
    height: 220px;
    min-height: 0;
    grid-row: auto;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-card {
    min-height: 22rem;
    grid-template-rows: 15rem auto;
  }

  .gallery-card figure {
    height: 15rem;
    min-height: 0;
  }

  .mixed-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .taemoi-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .taemoi-gallery .main-shot {
    height: 220px;
  }

  .mixed-gallery .landscape-shot,
  .mixed-gallery .portrait-shot {
    aspect-ratio: auto;
    height: 220px;
    max-height: none;
  }

  .easybill-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .easybill-gallery .project-shot,
  .easybill-gallery .document-shot {
    grid-column: auto;
    grid-row: auto;
    height: 220px;
  }

  .detail-header {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* ================================
   Font fix final
================================ */

html,
body,
.single-page-main,
.portfolio-section {
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

.single-page-main p,
.single-page-main a,
.single-page-main div,
.font-body-md,
.font-body-lg,
.text-body-md,
.text-body-lg {
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

.single-page-main span:not(.material-symbols-outlined) {
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

.font-headline-xl,
.font-headline-lg,
.font-headline-xl-mobile,
.font-headline-lg-mobile,
.single-page-main h1,
.single-page-main h2,
.single-page-main h3,
.single-page-main h4 {
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

.font-code-md,
.font-code-md *,
pre,
code,
.terminal-log,
.terminal-log *,
.detail-header,
.detail-kicker,
.detail-list strong,
.preview-topbar,
.gallery-card span {
  font-family: "JetBrains Mono", monospace !important;
}

.experience-section .git-line {
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 720ms cubic-bezier(0.16, 1, 0.3, 1);
}

.experience-section.section-motion-visible .git-line {
  transform: scaleY(1);
}

.experience-section .git-node {
  overflow: visible;
}

.experience-section .git-node::after {
  content: "";
  position: absolute;
  inset: -0.45rem;
  border: 1px solid rgba(162, 255, 202, 0.35);
  border-radius: 9999px;
  opacity: 0;
  transform: scale(0.72);
  pointer-events: none;
}

.experience-section.section-motion-visible .git-node::after {
  animation: gitNodePing 820ms ease-out both;
}

.experience-section.section-motion-visible .relative.group:nth-child(2) .git-node::after {
  animation-delay: 120ms;
}

.experience-section.section-motion-visible .relative.group:nth-child(3) .git-node::after {
  animation-delay: 240ms;
}

.experience-section.section-motion-visible .relative.group:nth-child(4) .git-node::after {
  animation-delay: 360ms;
}

.contact-section a[href^="mailto"],
.contact-section a[href*="github"] {
  position: relative;
  isolation: isolate;
}

.contact-section a[href^="mailto"]::after,
.contact-section a[href*="github"]::after {
  content: "";
  position: absolute;
  inset: -1px;
  border: 1px solid rgba(162, 255, 202, 0.35);
  opacity: 0;
  transform: scaleX(0.96);
  transition: opacity 160ms ease, transform 160ms ease;
  pointer-events: none;
}

.contact-section a[href^="mailto"]:hover::after,
.contact-section a[href*="github"]:hover::after,
.contact-section a[href^="mailto"]:focus-visible::after,
.contact-section a[href*="github"]:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

@keyframes previewScan {
  0% {
    opacity: 0;
    transform: translateY(-100%);
  }

  20%,
  65% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateY(100%);
  }
}

@keyframes chartPulse {
  0%,
  100% {
    transform: scaleY(0.86);
    opacity: 0.68;
  }

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

@keyframes lineActivity {
  0%,
  100% {
    transform: scaleX(0.7);
    transform-origin: left;
    opacity: 0.55;
  }

  45%,
  70% {
    transform: scaleX(1);
    opacity: 1;
  }
}

@keyframes mobileListPulse {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.58;
  }

  50% {
    transform: translateY(-2px);
    opacity: 1;
  }
}

@keyframes gitNodePing {
  0% {
    opacity: 0.8;
    transform: scale(0.72);
  }

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

@keyframes aiGlowDrift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(-7%, 5%, 0) scale(1.08);
  }
}

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

  .motion-reveal,
  .motion-reveal.motion-visible {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }

  .route-flash,
  .ia-lab-section::before,
  .vision-sequence-visible::after,
  .vision-sequence-visible .vision-cnn-input span,
  .vision-sequence-visible .vision-kernel,
  .vision-sequence-visible .vision-cnn-feature,
  .vision-sequence-visible .vision-cnn-output,
  .vision-sequence-visible .rebuild-line,
  .vision-sequence-visible .rebuild-shape,
  .vision-sequence-visible .vision-cnn-label,
  .preview-chart span,
  .preview-table i,
  .invoice-lines i,
  .mobile-list i,
  .experience-section.section-motion-visible .git-node::after,
  .section-title-cursor {
    animation: none;
  }

  .vision-sequence-visible .vision-cnn-input span {
    filter: blur(2px) grayscale(1) contrast(2.3);
    opacity: 0.32;
  }

  .vision-sequence-visible .vision-kernel {
    opacity: 0;
  }

  .vision-sequence-visible .vision-cnn-feature {
    opacity: 0.82;
  }

  .vision-sequence-visible .vision-cnn-output,
  .vision-sequence-visible .rebuild-line,
  .vision-sequence-visible .rebuild-shape,
  .vision-sequence-visible .vision-cnn-label {
    opacity: 1;
  }

  .vision-sequence-visible .rebuild-line {
    transform: rotate(var(--line-angle, 0deg)) scaleX(1);
  }

  .experience-section .git-line {
    transform: none;
    transition: none;
  }

  .project-preview::after,
  .gallery-card figure::after {
    display: none;
  }
}

/* ================================
   Material Symbols fix
================================ */

.material-symbols-outlined,
.material-symbols-outlined.fill {
  font-family: "Material Symbols Outlined" !important;
  font-weight: normal !important;
  font-style: normal !important;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal !important;
  text-transform: none !important;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-feature-settings: "liga" !important;
  -webkit-font-feature-settings: "liga" !important;
  -webkit-font-smoothing: antialiased;
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24 !important;
}

.material-symbols-outlined.fill {
  font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24 !important;
}
