/* ═══════════════════════════════════════════════
   ANIMATIONS — Arina Portfolio
   ═══════════════════════════════════════════════ */

/* ── Hide default cursor on pointer devices ── */

@media (hover: hover) and (pointer: fine) {
  body,
  a,
  button,
  .work-card,
  .work-preview,
  [role="button"] {
    cursor: none;
  }
}

/* ── Custom cursor ── */

.c-cursor {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9990;
}

/* Touch / coarse pointer: never show the desktop cursor chrome */
@media (hover: none), (pointer: coarse) {
  .c-cursor {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .c-cursor {
    display: none !important;
  }
}

.c-cursor__dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  transform: translate(-50%, -50%);
  will-change: transform;
  transition: width 0.3s, height 0.3s, opacity 0.3s;
}

.c-cursor__ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(230, 59, 59, 0.5);
  transform: translate(-50%, -50%);
  will-change: transform;
  transition:
    width 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.3s,
    background 0.3s;
}

body.cursor-hover .c-cursor__dot {
  /* Keep the red dot visible — hiding it made the cursor look "gone"
     on red UI (work overlays, pie chart, links). */
  width: 5px;
  height: 5px;
  opacity: 1;
}

body.cursor-hover .c-cursor__ring {
  width: 58px;
  height: 58px;
  border-width: 2px;
  border-color: var(--red);
  background: rgba(230, 59, 59, 0.1);
}

.c-cursor__emoji {
  position: fixed;
  top: 0;
  left: 0;
  opacity: 0;
  will-change: transform, opacity;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.c-cursor__emoji-inner {
  display: block;
  font-size: 1.75rem;
  line-height: 1;
  transform: scale(0.4) rotate(-12deg);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
}

body.cursor-smiley .c-cursor__dot,
body.cursor-smiley .c-cursor__ring {
  opacity: 0;
}

body.cursor-smiley .c-cursor__emoji {
  opacity: 1;
}

body.cursor-smiley .c-cursor__emoji-inner {
  transform: scale(1) rotate(0deg);
  animation: anim-cursor-smile-wiggle 0.55s ease-in-out infinite alternate;
}

/* ── Scroll progress bar ── */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--red);
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 9998;
  transition: transform 0.06s linear;
}

/* ── Grain overlay ── */

.page-grain {
  position: fixed;
  inset: 0;
  z-index: 9989;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.68' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
  opacity: 0.04;
  mix-blend-mode: overlay;
}

/* ── Nav intro ── */

.site-nav {
  animation: anim-nav-in 0.6s 0.05s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes anim-nav-in {
  from { opacity: 0; transform: translateY(-100%); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Hero: initial hidden state ── */

.hero-topline,
.hero-portfolio,
.hero-name,
.hero-meta,
.hero-portrait img,
.hero-badge,
.hero-floats {
  opacity: 0;
}

/* ── Hero load sequence ── */

.is-loaded .hero-topline {
  animation: anim-line-grow 0.95s 0.15s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.is-loaded .hero-portfolio {
  animation: anim-fade 0.9s 0.38s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.is-loaded .hero-portrait img {
  animation: anim-fade-up 1.05s 0.52s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.is-loaded .hero-name--left {
  animation: anim-slide-right 0.9s 0.64s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.is-loaded .hero-name--right {
  animation: anim-slide-left 0.9s 0.72s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.is-loaded .hero-meta {
  animation: anim-fade-up 0.75s 0.92s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.is-loaded .hero-floats {
  animation: anim-fade 1.2s 1.1s ease forwards;
}

.is-loaded .hero-badge {
  animation: anim-fade 0.9s 1.2s ease forwards;
}

.is-loaded .hero-badge svg {
  animation: anim-badge-spin 22s 2.2s linear infinite;
}

/* ── Hero: topline needs transform-origin ── */

.hero-topline {
  transform-origin: left center;
}

/* ── Load keyframes ── */

@keyframes anim-line-grow {
  from { opacity: 0; transform: scaleX(0); }
  to   { opacity: 1; transform: scaleX(1); }
}

@keyframes anim-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes anim-fade-up {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes anim-slide-right {
  from { opacity: 0; transform: translateX(-52px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes anim-slide-left {
  from { opacity: 0; transform: translateX(52px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Hero badge (fixed WhatsApp CTA) ── */

.hero-badge {
  position: fixed;
  top: calc(var(--nav-height) + 0.75rem);
  right: clamp(0.75rem, 3.5vw, 2.5rem);
  width: clamp(101px, 12.1vw, 145px);
  height: clamp(101px, 12.1vw, 145px);
  z-index: 99;
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s ease;
}

.hero-badge:hover {
  transform: scale(1.06);
  filter: drop-shadow(0 6px 18px rgba(230, 59, 59, 0.28));
}

.hero-badge:active {
  transform: scale(0.97);
}

.hero-badge svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  transform-origin: 50% 50%;
  will-change: transform;
}

.hero-badge:hover svg {
  animation-duration: 10s !important;
}

/* Keep centre icon fixed while ring of words orbits around it */
.hero-badge-icon,
.hero-badge-pop {
  z-index: 1;
}

.hero-badge-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  line-height: 1;
  pointer-events: none;
  transition:
    opacity 0.28s ease,
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-badge-icon--star {
  font-size: clamp(0.99rem, 2.2vw, 1.48rem);
  color: var(--red);
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.hero-badge-icon--smile {
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.35) rotate(-18deg);
}

.hero-badge:hover .hero-badge-icon--star {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.35) rotate(18deg);
}

.hero-badge:hover .hero-badge-icon--smile {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1) rotate(0deg);
  animation: anim-badge-smile-pop 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-badge-pop {
  position: absolute;
  top: 50%;
  left: 50%;
  font-size: clamp(0.85rem, 1.8vw, 1.1rem);
  line-height: 1;
  opacity: 0;
  pointer-events: none;
}

.hero-badge:hover .hero-badge-pop--1 {
  animation: anim-smile-float 0.85s 0.05s ease-out forwards;
}

.hero-badge:hover .hero-badge-pop--2 {
  animation: anim-smile-float 0.9s 0.12s ease-out forwards;
}

.hero-badge:hover .hero-badge-pop--3 {
  animation: anim-smile-float 0.8s 0.2s ease-out forwards;
}

@keyframes anim-cursor-smile-wiggle {
  from { transform: scale(1) rotate(-8deg); }
  to   { transform: scale(1.12) rotate(8deg); }
}

@keyframes anim-badge-smile-pop {
  0%   { transform: translate(-50%, -50%) scale(0.2) rotate(-20deg); }
  65%  { transform: translate(-50%, -50%) scale(1.18) rotate(6deg); }
  100% { transform: translate(-50%, -50%) scale(1) rotate(0deg); }
}

@keyframes anim-smile-float {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.4);
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--pop-x, 0px)), calc(-50% + var(--pop-y, -36px))) scale(1.1);
  }
}

.hero-badge-pop--1 { --pop-x: -34px; --pop-y: -42px; }
.hero-badge-pop--2 { --pop-x: 38px;  --pop-y: -28px; }
.hero-badge-pop--3 { --pop-x: 8px;   --pop-y: 44px; }

@keyframes anim-badge-spin {
  to { transform: rotate(360deg); }
}

/* ── Hero floating dots ── */

.hero-floats {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.hf {
  position: absolute;
  border-radius: 50%;
}

.hf--1 { width: 7px;  height: 7px;  background: var(--red);   top: 21%;    left: 6%;   opacity: 0.18; animation: anim-float-a 6.5s ease-in-out infinite; }
.hf--2 { width: 4px;  height: 4px;  background: var(--black); top: 40%;    left: 10%;  opacity: 0.14; animation: anim-float-b 8.5s 1s ease-in-out infinite; }
.hf--3 { width: 9px;  height: 9px;  background: var(--red);   top: 13%;    right: 15%; opacity: 0.13; animation: anim-float-a 7.2s 0.6s ease-in-out infinite; }
.hf--4 { width: 3px;  height: 3px;  background: var(--black); bottom: 27%; right: 8%;  opacity: 0.16; animation: anim-float-b 5.8s 2s ease-in-out infinite; }
.hf--5 { width: 5px;  height: 5px;  background: var(--red);   bottom: 35%; left: 14%;  opacity: 0.11; animation: anim-float-a 9.5s 3.2s ease-in-out infinite; }

@keyframes anim-float-a {
  0%, 100% { transform: translate(0, 0); }
  33%       { transform: translate(7px, -16px); }
  66%       { transform: translate(-5px, 7px); }
}

@keyframes anim-float-b {
  0%, 100% { transform: translate(0, 0); }
  50%       { transform: translate(-9px, -12px); }
}

/* ── Marquee strip ── */

.marquee-strip {
  background: var(--black);
  overflow: hidden;
  padding: 0.95rem 0;
  /* Sit exactly midway between About Me and My Professional Skills */
  margin-block: calc(var(--block-gap) / 2);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: anim-marquee 26s linear infinite;
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-right: 2rem;
  flex-shrink: 0;
}

.marquee-content span {
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 300;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  white-space: nowrap;
}

.mq-dot {
  font-size: 0.48rem !important;
  color: var(--red) !important;
  letter-spacing: 0 !important;
  opacity: 0.85;
}

@keyframes anim-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Scroll reveal ── */

[data-reveal] {
  opacity: 0;
  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal="fade-up"]    { transform: translateY(48px); }
[data-reveal="fade-left"]  { transform: translateX(48px); }

[data-reveal="fade-left"].portrait-zone:not(.is-visible) {
  transform: translateX(48px);
}

[data-reveal="fade-left"].portrait-zone.is-visible {
  transform: none;
}
[data-reveal="fade-right"] { transform: translateX(-48px); }
[data-reveal="scale"]      { transform: scale(0.84); }

[data-reveal="scale"].skills-chart:not(.is-visible) {
  transform: scale(0.84);
}

[data-reveal="scale"].skills-chart.is-visible {
  transform: scale(1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ── Section header animated underline ── */

.section-header {
  position: relative;
  padding-bottom: 1.5rem;
  margin-bottom: 2.5rem;
}

.section-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 1px;
  width: 0;
  background: var(--red);
  transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1) 0.25s;
}

.section-header.is-visible::after {
  width: 100%;
}

/* ── Work cards ── */

.work-card {
  overflow: hidden;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.work-card:hover {
  transform: translate(-6px, -6px);
}

.work-card-overlay {
  position: absolute;
  inset: 0;
  background: var(--red);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  opacity: 0;
  transition: opacity 0.38s ease;
  pointer-events: none;
}

.work-card:hover .work-card-overlay {
  opacity: 0.94;
}

.work-card-label {
  font-family: var(--font-display);
  font-size: clamp(0.78rem, 1.5vw, 0.98rem);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
  padding: 0 1rem;
}

.work-card-arrow {
  font-size: 1.9rem;
  color: #fff;
  line-height: 1;
  display: block;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.work-card:hover .work-card-arrow {
  transform: translate(5px, -5px);
}

.work-preview {
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.work-preview:hover,
.work-preview:focus-visible {
  transform: translate(-6px, -6px);
  outline: none;
}

.work-preview:focus-visible .work-preview__inner {
  box-shadow: 0 0 0 2px var(--red);
}

/* ── Skills chart segments ── */

.chart-seg {
  transform-origin: 100px 100px;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.skills-chart:hover:not(.is-scrolling) .chart-seg--1 { transform: translate(5px, -5px); }
.skills-chart:hover:not(.is-scrolling) .chart-seg--2 { transform: translate(5px,  5px); }
.skills-chart:hover:not(.is-scrolling) .chart-seg--3 { transform: translate(-5px, 5px); }
.skills-chart:hover:not(.is-scrolling) .chart-seg--4 { transform: translate(-5px, -5px); }

@keyframes chart-center-hint-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.12); }
}

@keyframes chart-illustration-eject {
  0% {
    opacity: 0;
    transform: translate(var(--illustration-pos-start), calc(-1 * var(--illustration-pos-start))) scale(0.22) rotate(-4deg);
  }
  14% {
    opacity: 0.65;
  }
  100% {
    opacity: 1;
    transform: translate(var(--illustration-pos-end), calc(-1 * var(--illustration-pos-end))) scale(1) rotate(-10deg);
  }
}

.skills-chart.chart-letters-play .chart-illustration-eject__img {
  animation: chart-illustration-eject 0.92s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}

@keyframes chart-branding-eject {
  0% {
    opacity: 0;
    transform: translate(var(--branding-pos-start), var(--branding-pos-start)) scale(0.22) rotate(4deg);
  }
  14% {
    opacity: 0.65;
  }
  100% {
    opacity: 1;
    transform: translate(var(--branding-pos-end), var(--branding-pos-end)) scale(1) rotate(10deg);
  }
}

.skills-chart.chart-letters-play .chart-branding-eject__img {
  animation: chart-branding-eject 0.92s cubic-bezier(0.22, 1, 0.36, 1) 0.18s forwards;
}

@keyframes chart-packaging-eject {
  0% {
    opacity: 0;
    transform: translate(calc(-1 * var(--packaging-pos-start)), var(--packaging-pos-start)) scale(0.22) rotate(-4deg);
  }
  14% {
    opacity: 0.65;
  }
  100% {
    opacity: 1;
    transform: translate(calc(-1 * var(--packaging-pos-end)), var(--packaging-pos-end)) scale(1) rotate(-10deg);
  }
}

.skills-chart.chart-letters-play .chart-packaging-eject__img {
  animation: chart-packaging-eject 0.92s cubic-bezier(0.22, 1, 0.36, 1) 0.26s forwards;
}

@keyframes chart-editorial-eject {
  0% {
    opacity: 0;
    transform: translate(calc(-1 * var(--editorial-pos-start)), calc(-1 * var(--editorial-pos-start))) scale(0.22) rotate(4deg);
  }
  14% {
    opacity: 0.65;
  }
  100% {
    opacity: 1;
    transform: translate(calc(-1 * var(--editorial-pos-end)), calc(-1 * var(--editorial-pos-end))) scale(1) rotate(10deg);
  }
}

.skills-chart.chart-letters-play .chart-editorial-eject__img {
  animation: chart-editorial-eject 0.92s cubic-bezier(0.22, 1, 0.36, 1) 0.34s forwards;
}

@keyframes chart-letter-fly {
  0% {
    opacity: 0.85;
    transform: translate(100px, 100px) scale(0.3);
  }
  100% {
    opacity: 1;
    transform: translate(var(--tx), var(--ty)) scale(1);
  }
}

.skills-chart.chart-letters-play .chart-letter {
  animation: chart-letter-fly 0.58s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(var(--word-delay, 0s) + var(--i, 0) * 0.045s);
}

.skills-chart.chart-letters-play .chart-label--1 .chart-letter { --word-delay: 0.04s; }
.skills-chart.chart-letters-play .chart-label--2 .chart-letter { --word-delay: 0.15s; }
.skills-chart.chart-letters-play .chart-label--3 .chart-letter { --word-delay: 0.28s; }
.skills-chart.chart-letters-play .chart-label--4 .chart-letter { --word-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  .skills-chart.chart-letters-play .chart-letter {
    animation: none;
    opacity: 1;
    transform: translate(var(--tx), var(--ty)) scale(1);
  }

  .skills-chart.chart-letters-play .chart-illustration-eject__img {
    animation: none;
    opacity: 1;
    transform: translate(var(--illustration-pos-end), calc(-1 * var(--illustration-pos-end))) scale(1) rotate(-10deg);
  }

  .skills-chart.chart-letters-play .chart-branding-eject__img {
    animation: none;
    opacity: 1;
    transform: translate(var(--branding-pos-end), var(--branding-pos-end)) scale(1) rotate(10deg);
  }

  .skills-chart.chart-letters-play .chart-packaging-eject__img {
    animation: none;
    opacity: 1;
    transform: translate(calc(-1 * var(--packaging-pos-end)), var(--packaging-pos-end)) scale(1) rotate(-10deg);
  }

  .skills-chart.chart-letters-play .chart-editorial-eject__img {
    animation: none;
    opacity: 1;
    transform: translate(calc(-1 * var(--editorial-pos-end)), calc(-1 * var(--editorial-pos-end))) scale(1) rotate(10deg);
  }

  .chart-center-hint__icon {
    animation: none;
  }
}

/* ── Skill pill grow on reveal ── */

.skill-pill {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.skill-item.is-visible .skill-pill {
  transform: scaleX(1);
}

/* ── Scroll depth focus (blur only in lower viewport band) ── */

.scroll-focus-target {
  transition:
    filter 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: filter, opacity;
}

body.work-lightbox-open .scroll-focus-target,
body.illustration-lightbox-open .scroll-focus-target,
body.branding-lightbox-open .scroll-focus-target,
body.packaging-lightbox-open .scroll-focus-target,
body.editorial-lightbox-open .scroll-focus-target {
  filter: none !important;
  opacity: 1 !important;
}

/* ── Portrait frame hover scale ── */

.portrait-frame {
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: center center;
}

.portrait-zone:hover .portrait-frame {
  transform: translateY(-5%) scale(1.04);
}

/* ── Software icons hover scale ── */

.software-icon {
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: center center;
}

.software-icon:hover {
  transform: scale(1.08);
}

/* ── Experience items ── */

.exp-item {
  transition: border-color 0.3s ease;
}

.exp-item:hover {
  border-bottom-color: rgba(230, 59, 59, 0.5);
}

.exp-year {
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), color 0.3s ease;
}

.exp-item:hover .exp-year {
  transform: translateX(8px);
}

/* ── Footer email hover ── */

.site-footer a {
  transition: color 0.2s;
}

.site-footer__email:hover,
.site-footer__email:focus-visible {
  text-decoration: underline;
}

/* ═══════════════════════════════════════════════
   GRADIENT + 3D TEXT
   ═══════════════════════════════════════════════ */

/* ── Display titles: gradient face + deep red extrusion ── */

.display-title {
  background: linear-gradient(
    148deg,
    #120505   0%,
    #1c0808  28%,
    #2a0a0a  55%,
    #3a0c0c  76%,
    #4a1010 100%
  );
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter:
    drop-shadow(1px 1px 0px rgba(100, 10, 10, 0.75))
    drop-shadow(2px 2px 0px rgba(80,   8,  8, 0.62))
    drop-shadow(3px 3px 0px rgba(60,   6,  6, 0.50))
    drop-shadow(4px 4px 0px rgba(42,   4,  4, 0.38))
    drop-shadow(5px 5px 0px rgba(26,   2,  2, 0.26))
    drop-shadow(7px 7px 12px rgba(0,   0,  0, 0.18));
  animation: anim-gradient-shift 7s ease-in-out infinite;
}

/* ── Hero names: deeper dark-red gradient ── */

.hero-name {
  background: linear-gradient(
    148deg,
    #181010   0%,
    #140606  20%,
    #280808  52%,
    #3a0c0c  78%,
    #4a1010 100%
  );
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter:
    drop-shadow(1px 1px 0px rgba(95,  10, 10, 0.65))
    drop-shadow(2px 2px 0px rgba(72,   8,  8, 0.52))
    drop-shadow(3px 3px 0px rgba(52,   6,  6, 0.40))
    drop-shadow(4px 4px 0px rgba(34,   4,  4, 0.28))
    drop-shadow(6px 6px 10px rgba(0,   0,  0, 0.15));
  animation: anim-gradient-shift 9s 1.5s ease-in-out infinite;
}

/* ── Experience year: compact 3D accent ── */

.exp-year {
  background: linear-gradient(
    135deg,
    #2a0a0a  0%,
    #3a0c0c 50%,
    #4a1010 100%
  );
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter:
    drop-shadow(1px 1px 0px rgba(90,  10, 10, 0.55))
    drop-shadow(2px 2px 0px rgba(62,   6,  6, 0.38))
    drop-shadow(3px 3px 6px  rgba(0,   0,  0, 0.14));
  animation: anim-gradient-shift 8s 0.8s ease-in-out infinite;
}

/* ── Shared gradient animation ── */

@keyframes anim-gradient-shift {
  0%   { background-position: 0%   40%; }
  50%  { background-position: 100% 60%; }
  100% { background-position: 0%   40%; }
}

/* ── Skill item headings: subtle dark gradient ── */

.skill-item h3 {
  background: linear-gradient(
    135deg,
    #120505  0%,
    #280808 55%,
    #3a0c0c 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(1px 1px 0px rgba(80, 8, 8, 0.35))
          drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.12));
}

/* Move pill + title together on hover (hover lives on the heading
   group, not the h3 alone, so the color pill rides along). */
.skill-heading {
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.skill-item:hover .skill-heading {
  transform: translateX(clamp(6px, 0.55vw, 10px));
}

/* ── Reduced motion fallback ── */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .hero-topline,
  .hero-portfolio,
  .hero-name,
  .hero-meta,
  .hero-portrait img,
  .hero-badge,
  .hero-floats {
    opacity: 1 !important;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .scroll-progress,
  .page-grain,
  .c-cursor {
    display: none;
  }

  .scroll-focus-target {
    filter: none !important;
    opacity: 1 !important;
    will-change: auto;
  }

  /* Gradient text stays (it's static) but animation stops */
  .display-title,
  .hero-name,
  .exp-year {
    background-position: 0% 40% !important;
  }
}
