/* ============================================================
   Pol Comas — Portfolio. Vanilla CSS, dark premium.
   Paleta navy + accent indigo/violeta. Sense dependències.
   ============================================================ */
:root {
  --bg: #070a12;
  --bg-2: #0b1020;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.10);
  --text: #e9ecf4;
  --text-soft: #9aa3b8;
  --text-dim: #6b7488;
  --accent: #6366f1;
  --accent-2: #8b5cf6;
  --accent-glow: rgba(99, 102, 241, 0.35);
  --radius: 18px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
@media (pointer: fine) { body { cursor: none; } }

a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.05; letter-spacing: -0.02em; }
img { max-width: 100%; display: block; }
::selection { background: var(--accent); color: #fff; }

/* ---------- Background: shader + orbs + grain ---------- */
.bg-shader { position: fixed; inset: 0; z-index: -3; width: 100%; height: 100%; display: block; }
.ambient { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; opacity: .55; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; will-change: transform; }
.orb-1 { width: 50vw; height: 50vw; background: radial-gradient(circle, var(--accent), transparent 70%); top: -15vw; left: -10vw; }
.orb-2 { width: 45vw; height: 45vw; background: radial-gradient(circle, var(--accent-2), transparent 70%); bottom: -10vw; right: -10vw; opacity: 0.35; }
.orb-3 { width: 30vw; height: 30vw; background: radial-gradient(circle, #1e293b, transparent 70%); top: 40%; left: 55%; opacity: 0.6; }
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Custom cursor ---------- */
.cursor, .cursor-dot { position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none; border-radius: 50%; mix-blend-mode: difference; }
.cursor { width: 34px; height: 34px; border: 1.5px solid #fff; transform: translate(-50%, -50%); transition: width .25s var(--ease), height .25s var(--ease), background .25s; }
.cursor-dot { width: 5px; height: 5px; background: #fff; transform: translate(-50%, -50%); }
.cursor.is-active { width: 64px; height: 64px; background: rgba(255, 255, 255, 0.12); border-color: transparent; }
@media (pointer: coarse) { .cursor, .cursor-dot { display: none; } }

/* ---------- Scroll progress bar ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; z-index: 200; background: linear-gradient(90deg, var(--accent), var(--accent-2)); box-shadow: 0 0 12px var(--accent-glow); transform-origin: left; transition: width .1s linear; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px clamp(20px, 5vw, 56px);
  backdrop-filter: blur(12px);
  background: linear-gradient(to bottom, rgba(7, 10, 18, 0.7), transparent);
  transition: background .3s, padding .3s;
}
.site-header.scrolled { background: rgba(7, 10, 18, 0.85); padding-top: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; font-size: 13px; box-shadow: 0 4px 18px var(--accent-glow); }
.brand-name { font-size: 15px; letter-spacing: -0.01em; }
.nav { display: flex; gap: 28px; }
.nav a { font-size: 14px; color: var(--text-soft); position: relative; transition: color .2s; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 1.5px; background: var(--accent); transition: width .3s var(--ease); }
.nav a:hover, .nav a.active { color: var(--text); }
.nav a:hover::after, .nav a.active::after { width: 100%; }
.lang { display: flex; gap: 2px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 3px; }
.lang button { font: 600 12px var(--font-body); color: var(--text-dim); background: none; border: none; padding: 5px 10px; border-radius: 999px; transition: all .2s; }
.lang button.active { background: var(--accent); color: #fff; }
@media (max-width: 760px) { .nav { display: none; } }

/* ---------- Layout ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(80px, 12vh, 160px) clamp(20px, 5vw, 56px); }
.section-head { margin-bottom: 56px; }
.section-index { font-family: var(--font-display); font-size: 13px; color: var(--accent); letter-spacing: 0.2em; }
.section-head h2 { font-size: clamp(30px, 5vw, 52px); margin-top: 10px; }
.section-sub { color: var(--text-soft); margin-top: 14px; max-width: 48ch; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 0 clamp(20px, 5vw, 56px); overflow: hidden; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-inner { position: relative; z-index: 2; max-width: 980px; }
.eyebrow { font-family: var(--font-display); font-size: 13px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--accent); margin-bottom: 26px; }
.hero-title { font-size: clamp(40px, 9vw, 104px); font-weight: 700; line-height: 0.98; background: linear-gradient(180deg, #fff 40%, #aab0c4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: clamp(16px, 2.2vw, 21px); color: var(--text-soft); max-width: 56ch; margin: 28px auto 0; }
.hero-cta { display: flex; gap: 16px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.scroll-hint { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 2; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-dim); }
.scroll-hint::after { content: ""; display: block; width: 1px; height: 34px; margin: 10px auto 0; background: linear-gradient(var(--text-dim), transparent); animation: scrollpulse 2s var(--ease) infinite; }
@keyframes scrollpulse { 0%, 100% { opacity: .3; transform: scaleY(.6); } 50% { opacity: 1; transform: scaleY(1); } }

/* Split text — cada caràcter s'anima en entrar. El gradient s'aplica per
   caràcter (si es deixés a l'h1, el clip es trencaria amb els spans fills). */
.char { display: inline-block; will-change: transform, opacity; opacity: 0; transform: translateY(0.6em); transition: opacity .55s var(--ease), transform .55s var(--ease); }
[data-split].split-in .char { opacity: 1; transform: none; }
.hero-title .char, .contact-title .char {
  background: linear-gradient(180deg, #fff 40%, #aab0c4);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
/* fallback sense JS: si no s'ha partit, mostra el text */
.hero-title:not(.split-in), .contact-title:not(.split-in) { }

/* ---------- Buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; gap: 8px; font: 600 15px var(--font-body); padding: 14px 26px; border-radius: 999px; border: 1px solid transparent; overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s, background .25s; }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 8px 30px var(--accent-glow); }
.btn-primary:hover { box-shadow: 0 12px 40px var(--accent-glow); }
.btn-ghost { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-lg { padding: 17px 34px; font-size: 16px; }
.btn .ripple { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.4); transform: translate(-50%, -50%) scale(0); animation: ripple .6s var(--ease) forwards; pointer-events: none; }
@keyframes ripple { to { transform: translate(-50%, -50%) scale(18); opacity: 0; } }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; }
.about-copy p { font-size: clamp(17px, 2vw, 20px); color: var(--text); margin-bottom: 20px; }
.about-copy p + p { color: var(--text-soft); }
.caps-label { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 16px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { font-size: 13px; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--text-soft); transition: all .25s var(--ease); }
.chips li:hover { color: var(--text); border-color: var(--accent); transform: translateY(-2px); }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- Projects ---------- */
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  transform-style: preserve-3d; transition: border-color .3s, box-shadow .3s;
  will-change: transform; cursor: pointer;
}
.card:hover { border-color: rgba(99, 102, 241, 0.5); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(99, 102, 241, 0.2); }
.card-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-2); }
.card-media img, .card-media video { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s var(--ease); transform: translateZ(0); display: block; }
.card:hover .card-media img, .card:hover .card-media video { transform: scale(1.05); }
.card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(7, 10, 18, 0.85), transparent 55%); }
.card-status { position: absolute; top: 14px; left: 14px; z-index: 2; }
.badge { font: 600 11px var(--font-body); letter-spacing: 0.04em; padding: 6px 11px; border-radius: 999px; text-transform: uppercase; background: rgba(6, 9, 16, 0.62); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, 0.14); color: #fff; }
.badge-live { color: #4ade80; border-color: rgba(52, 211, 153, 0.55); }
.badge-case { color: #c2c4ff; border-color: rgba(124, 122, 255, 0.6); }
.badge-dev { color: #fcd34d; border-color: rgba(245, 158, 11, 0.6); }
.badge-soft { color: #cfd6e6; text-transform: none; }
.card-body { padding: 24px 24px 26px; transform: translateZ(40px); }
.card-body h3 { font-size: 22px; margin-bottom: 10px; }
.card-blurb { color: var(--text-soft); font-size: 15px; }
.card-foot { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.card-link { font-size: 13px; font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; gap: 5px; }
.card-link:hover { color: var(--accent-2); }
.card-arrow { margin-left: auto; color: var(--text-dim); transition: transform .3s var(--ease), color .3s; }
.card:hover .card-arrow { color: var(--text); transform: translateX(4px); }
@media (max-width: 820px) { .projects-grid { grid-template-columns: 1fr; } }

/* Galeria horitzontal a desktop: el track es desplaça en horitzontal amb l'scroll (GSAP) */
@media (min-width: 901px) {
  .work { max-width: none; padding: 0; }
  .work-inner { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; gap: 30px; }
  .work-inner .section-head { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 5vw, 56px); margin-bottom: 0; }
  .work .projects-grid {
    display: flex; flex-wrap: nowrap; width: max-content; grid-template-columns: none; gap: 28px; will-change: transform;
    /* la primera card s'alinea amb la columna de contingut del títol */
    padding-left: max(clamp(20px, 5vw, 56px), calc(50vw - (var(--maxw) / 2) + clamp(20px, 5vw, 56px)));
    padding-right: clamp(20px, 5vw, 56px);
  }
  .work .card { flex: 0 0 clamp(420px, 46vw, 560px); opacity: 1 !important; translate: 0 !important; }

  /* "Una secció = una pantalla" per a Sobre mi i Com penso (eviten barreja).
     Contacte queda a alçada natural perquè es vegi el footer just a sota. */
  .section.about, .section.approach {
    min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
  }
  /* Com penso amb més presència perquè no es vegi buit */
  .approach .approach-grid { gap: 28px; }
  .approach .approach-card { padding: 40px 34px; min-height: 260px; display: flex; flex-direction: column; }
  .approach .approach-card h3 { font-size: 21px; margin-top: 18px; }
  .approach .approach-card p { font-size: 16px; margin-top: auto; }
}

/* ---------- Approach ---------- */
.approach-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.approach-card { padding: 30px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: transform .3s var(--ease), border-color .3s; }
.approach-card:hover { transform: translateY(-4px); border-color: rgba(99, 102, 241, 0.4); }
.approach-num { font-family: var(--font-display); font-size: 13px; color: var(--accent); }
.approach-card h3 { font-size: 18px; margin: 14px 0 10px; }
.approach-card p { color: var(--text-soft); font-size: 14.5px; }
@media (max-width: 820px) { .approach-grid { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact { text-align: center; }
.contact-inner { max-width: 680px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.contact-title { font-size: clamp(36px, 7vw, 76px); }
.contact-text { color: var(--text-soft); font-size: 18px; max-width: 44ch; }
.contact .btn { margin-top: 12px; }
.socials { list-style: none; display: flex; gap: 24px; margin-top: 26px; }
.socials a { font-size: 14px; color: var(--text-soft); transition: color .2s; }
.socials a:hover { color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer { max-width: var(--maxw); margin: 0 auto; padding: 40px clamp(20px, 5vw, 56px); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--border); color: var(--text-dim); font-size: 13px; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 24px; opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s; }
.modal.open { opacity: 1; visibility: visible; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(4, 6, 12, 0.7); backdrop-filter: blur(8px); }
.modal-panel { position: relative; z-index: 2; width: min(920px, 100%); max-height: 88vh; overflow-y: auto; border-radius: 22px; background: linear-gradient(180deg, #0e1424, #0a0e1a); border: 1px solid var(--border); transform: translateY(24px) scale(.98); transition: transform .4s var(--ease); }
.modal.open .modal-panel { transform: none; }
.modal-close { position: absolute; top: 16px; right: 16px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; background: rgba(0, 0, 0, 0.4); border: 1px solid var(--border); color: #fff; font-size: 22px; line-height: 1; }
.modal-media { aspect-ratio: 16 / 8; overflow: hidden; background: var(--bg-2); }
.modal-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.modal-body { padding: 28px clamp(24px, 4vw, 44px) 40px; }
.modal-body h3 { font-size: clamp(24px, 4vw, 36px); margin: 14px 0 14px; }
.modal-body > p { color: var(--text-soft); font-size: 17px; }
.modal-body .badge + .badge { margin-left: 8px; }
.modal-label { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-dim); margin: 26px 0 10px; }
#modal-highlights { list-style: none; display: grid; gap: 10px; }
#modal-highlights li { position: relative; padding-left: 22px; color: var(--text); font-size: 15px; }
#modal-highlights li::before { content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.modal-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 8px; }
.modal-meta p { color: var(--text-soft); font-size: 15px; }
.modal-meta .modal-label { margin-top: 18px; }
.modal-links { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
@media (max-width: 600px) { .modal-meta { grid-template-columns: 1fr; } }

/* ---------- Reveal animation ---------- */
/* Entrada amb `translate` (no `transform`) per deixar `transform` lliure per al tilt */
.reveal, .card, .approach-card { opacity: 0; translate: 0 30px; transition: opacity .8s var(--ease), translate .8s var(--ease); }
.reveal.in, .card.in, .approach-card.in { opacity: 1; translate: 0 0; }
/* Cards: tilt àgil (transform ràpid) + entrada lenta separada */
.card { transition: opacity .8s var(--ease), translate .8s var(--ease), transform .35s var(--ease), border-color .3s, box-shadow .3s; }
/* Entrada escalonada: les cards i els blocs d'approach apareixen un darrere l'altre */
.projects-grid .card:nth-child(2), .approach-grid .approach-card:nth-child(2) { transition-delay: .1s; }
.projects-grid .card:nth-child(3), .approach-grid .approach-card:nth-child(3) { transition-delay: .2s; }
.projects-grid .card:nth-child(4) { transition-delay: .3s; }

/* ============================================================
   Components afegits a la v2 (portfolio personal)
   ============================================================ */

/* ---------- Preloader / intro (boot en codi) ---------- */
.preloader { position: fixed; inset: 0; z-index: 10000; background: #05070e; display: grid; place-items: center; transition: opacity .7s var(--ease), visibility .7s, transform .7s var(--ease); }
.preloader.done { opacity: 0; visibility: hidden; transform: scale(1.12); } /* zoom de sortida: sensació d'entrar */
body.loading { overflow: hidden; }

.boot { width: min(560px, 90vw); border-radius: 14px; border: 1px solid var(--border); background: rgba(12, 16, 28, 0.9); box-shadow: 0 40px 90px -30px #000, 0 0 0 1px rgba(99,102,241,0.12); overflow: hidden; animation: boot-in .5s var(--ease) both; }
@keyframes boot-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.boot-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--border); background: rgba(255,255,255,0.03); }
.boot-bar span { width: 11px; height: 11px; border-radius: 50%; }
.boot-bar span:nth-child(1) { background: #ff5f57; }
.boot-bar span:nth-child(2) { background: #febc2e; }
.boot-bar span:nth-child(3) { background: #28c840; }
.boot-bar b { margin-left: 10px; font: 500 12px var(--font-body); color: var(--text-dim); }
.boot-screen { padding: 22px; margin: 0; min-height: 168px; font: 14px/1.75 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.boot-line { white-space: pre-wrap; }
.boot-line.cmd { color: var(--text); }
.boot-line.out { color: var(--accent); }
.boot-line.dim { color: var(--text-dim); }
.boot-line.bar { color: var(--accent-2); letter-spacing: 1px; }
.boot-line.typing::after { content: "▋"; margin-left: 1px; color: var(--accent); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.boot-skip { position: absolute; bottom: 26px; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-dim); opacity: 0; animation: pl-fade .5s ease 1.4s forwards; }
@keyframes pl-fade { to { opacity: .7; } }

/* ---------- Hero (v2: nom + rol) ---------- */
.hero-greeting { font-family: var(--font-display); font-size: clamp(15px, 2.4vw, 20px); color: var(--accent); letter-spacing: 0.04em; margin-bottom: 6px; }
.hero-name { font-size: clamp(52px, 13vw, 150px); font-weight: 700; line-height: 0.92; letter-spacing: -0.03em; background: linear-gradient(180deg, #fff 45%, #9aa3c4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-role { margin-top: 22px; font-size: clamp(16px, 2.4vw, 22px); color: var(--text); font-weight: 500; }
.hero-tagline { margin-top: 12px; font-size: clamp(14px, 1.8vw, 17px); color: var(--text-soft); max-width: 50ch; margin-left: auto; margin-right: auto; }
.hero-cta { margin-top: 34px; }
.scramble { font-variant-ligatures: none; }

/* ---------- Marquee de tecnologies ---------- */
.marquee { position: relative; overflow: hidden; padding: 22px 0; display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(255,255,255,0.015); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-row { overflow: hidden; }
.marquee-track { display: flex; width: max-content; animation: marquee 34s linear infinite; will-change: transform; }
.marquee-track.marquee-reverse { animation-duration: 42s; animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: inline-flex; align-items: center; padding: 0 26px; font-family: var(--font-display); font-size: clamp(16px, 2.3vw, 27px); font-weight: 600; color: var(--text-dim); white-space: nowrap; }
.marquee-item::after { content: "✦"; color: var(--accent); font-size: 0.42em; margin-left: 26px; }
.marquee-item:nth-child(even) { color: rgba(255,255,255,0.20); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- About (v2: foto + bio + facts) ---------- */
.about-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.about-photo { position: relative; }
.about-photo-inner { position: relative; aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; border: 1px solid var(--border); background: var(--bg-2); transform: perspective(900px); transition: transform .3s var(--ease); will-change: transform; }
.about-photo-inner img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .5s var(--ease), transform .6s var(--ease); }
.about-photo-inner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(150deg, rgba(99,102,241,0.45), transparent 55%), linear-gradient(330deg, rgba(139,92,246,0.4), transparent 55%); mix-blend-mode: screen; opacity: .9; transition: opacity .5s var(--ease); }
.about-photo:hover .about-photo-inner img { filter: grayscale(0) contrast(1); transform: scale(1.04); }
.about-photo:hover .about-photo-inner::after { opacity: 0; }
.about-photo-ring { position: absolute; inset: -12px; border-radius: 26px; border: 1px solid rgba(99,102,241,0.25); pointer-events: none; z-index: -1; }
.about-copy p { font-size: clamp(16px, 1.8vw, 19px); color: var(--text); margin-bottom: 18px; }
.about-copy p + p { color: var(--text-soft); }
.about-personal { color: var(--text-soft); font-style: italic; }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.facts li { display: flex; flex-direction: column; gap: 4px; padding: 14px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); min-width: 150px; }
.fact-label { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); }
.fact-val { font-size: 15px; color: var(--text); font-weight: 500; }
@media (max-width: 820px) { .about-layout { grid-template-columns: 1fr; } .about-photo { max-width: 320px; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: .01ms !important; }
  .reveal, .card, .approach-card { opacity: 1; transform: none; }
  body { cursor: auto; }
  .cursor, .cursor-dot, .hero-canvas { display: none; }
  .preloader { display: none !important; }
  .preloader-name { transform: none; }
  html { scroll-behavior: auto; }
}
