/* ============================================================================
   EFX STUDIO — STYLESHEET
   Liquid-glass design system: frosted translucent panels, drifting aurora
   light, soft depth. Sections blur-in / blur-out on scroll, tiles spring on
   hover with a cursor-following glow, and a soft orb trails the pointer.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --bg: #0a0b10;
  --bg-2: #0e1018;

  --ink: #f2f4f8;
  --ink-2: #b8bdc9;
  --ink-3: #8289a0;

  --glass: rgba(255, 255, 255, 0.055);
  --glass-strong: rgba(255, 255, 255, 0.09);
  --line: rgba(255, 255, 255, 0.12);
  --line-soft: rgba(255, 255, 255, 0.07);

  --violet: #8b6bff;
  --cyan: #43c6ff;
  --gold: #e0d098;

  --grad-accent: linear-gradient(100deg, var(--violet), var(--cyan));

  --font-display: "Space Grotesk", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "SF Pro Text", "Segoe UI", system-ui, sans-serif;

  --radius: 22px;
  --radius-sm: 14px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --header-h: 84px;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* While the custom cursor is active (fine pointers only) we hide the native one */
html.custom-cursor, html.custom-cursor * { cursor: none !important; }

img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 700; }
h3 { font-size: 1.35rem; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; }

::selection { background: rgba(139, 107, 255, 0.45); color: #fff; }

.container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }

.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 300;
  padding: 10px 18px; border-radius: 10px;
  background: #fff; color: #000; font-weight: 600;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 6px; }

/* ==========================================================================
   BACKGROUND SCENE — aurora blobs + grain (the "liquid" in liquid glass)
   ========================================================================== */
.bg-scene { position: fixed; inset: 0; z-index: -2; overflow: hidden; background:
  radial-gradient(120% 90% at 70% -10%, #12141f 0%, var(--bg) 55%),
  var(--bg);
}

.blob {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: 0.5; mix-blend-mode: screen;
  will-change: transform;
}
.blob-1 { width: 560px; height: 560px; top: -160px; left: -120px;
  background: radial-gradient(circle at 35% 35%, rgba(139, 107, 255, 0.55), transparent 65%);
  animation: drift-1 46s ease-in-out infinite alternate; }
.blob-2 { width: 480px; height: 480px; top: 30%; right: -160px;
  background: radial-gradient(circle at 60% 40%, rgba(67, 198, 255, 0.4), transparent 65%);
  animation: drift-2 58s ease-in-out infinite alternate; }
.blob-3 { width: 420px; height: 420px; bottom: -140px; left: 28%;
  background: radial-gradient(circle at 50% 50%, rgba(224, 208, 152, 0.22), transparent 65%);
  animation: drift-3 52s ease-in-out infinite alternate; }
.blob-4 { width: 380px; height: 380px; top: 55%; left: -120px;
  background: radial-gradient(circle at 50% 50%, rgba(139, 107, 255, 0.3), transparent 65%);
  animation: drift-2 64s ease-in-out infinite alternate-reverse; }

@keyframes drift-1 { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(90px, 70px, 0) scale(1.15); } }
@keyframes drift-2 { from { transform: translate3d(0, 0, 0) scale(1.1); } to { transform: translate3d(-110px, -60px, 0) scale(0.95); } }
@keyframes drift-3 { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(70px, -80px, 0) scale(1.12); } }

.grain {
  position: absolute; inset: -50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='128'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='128' height='128' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.05;
}

/* ==========================================================================
   LIQUID GLASS PANEL
   ========================================================================== */
.glass {
  position: relative;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.028) 55%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),   /* light catching the top edge */
    inset 0 -1px 0 rgba(255, 255, 255, 0.04),
    0 24px 60px rgba(0, 0, 0, 0.42);
}

/* soft specular highlight pooled in the top-left corner */
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(60% 45% at 18% 0%, rgba(255, 255, 255, 0.12), transparent 60%);
}

.glass-chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-soft);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  font-size: 0.82rem; font-weight: 500; color: var(--ink-2);
}

/* ==========================================================================
   CUSTOM CURSOR — soft orb that lags behind the pointer + precise dot
   ========================================================================== */
.cursor-orb, .cursor-dot {
  position: fixed; top: 0; left: 0; z-index: 400;
  pointer-events: none; opacity: 0;
  transform: translate(-100px, -100px);
}
.cursor-orb {
  width: 46px; height: 46px; margin: -23px 0 0 -23px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(160, 140, 255, 0.4), rgba(124, 92, 255, 0.14) 55%, transparent 72%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: opacity 0.3s ease, width 0.25s var(--ease-out), height 0.25s var(--ease-out), margin 0.25s var(--ease-out);
}
.cursor-dot {
  width: 6px; height: 6px; margin: -3px 0 0 -3px;
  border-radius: 50%; background: rgba(255, 255, 255, 0.85);
  transition: opacity 0.3s ease;
}
html.cursor-active .cursor-orb, html.cursor-active .cursor-dot { opacity: 1; }
/* Orb swells over anything interactive; dot tucks in */
html.cursor-hover .cursor-orb { width: 66px; height: 66px; margin: -33px 0 0 -33px; background: radial-gradient(closest-side, rgba(160, 140, 255, 0.5), rgba(124, 92, 255, 0.18) 58%, transparent 75%); }
html.cursor-hover .cursor-dot { transform: scale(0.5); }
html.cursor-down .cursor-orb { width: 38px; height: 38px; margin: -19px 0 0 -19px; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(12, 13, 20, 0.62);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  backdrop-filter: blur(20px) saturate(170%);
  border-bottom-color: var(--line-soft);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.header-inner {
  width: min(1280px, calc(100% - 48px));
  margin-inline: auto;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  position: relative;
}

.logo { flex-shrink: 0; display: inline-flex; }
.logo img { height: 46px; width: auto; } /* clearly legible, not dominating */

/* nav centered in the header regardless of logo / CTA widths */
.site-nav { position: absolute; left: 50%; transform: translateX(-50%); }
.site-nav ul { display: flex; gap: 8px; }
.site-nav a {
  position: relative; display: inline-block; padding: 10px 18px;
  font-weight: 500; font-size: 0.95rem; color: var(--ink-2);
  border-radius: 999px; transition: color 0.25s ease, background 0.25s ease;
}
.site-nav a::after {
  content: ""; position: absolute; left: 50%; bottom: 4px; height: 2px; width: 0;
  transform: translateX(-50%); border-radius: 2px;
  background: var(--grad-accent); transition: width 0.3s var(--ease-out);
}
.site-nav a:hover { color: var(--ink); }
.site-nav a.active { color: var(--ink); }
.site-nav a.active::after, .site-nav a:hover::after { width: 20px; }

.header-actions { display: flex; align-items: center; gap: 14px; }

/* Hamburger (mobile only) */
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-soft); background: rgba(255,255,255,0.05); position: relative; }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform 0.3s var(--ease-out), top 0.3s var(--ease-out); }
.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 25px; }
.nav-open .nav-toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 30px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.98rem;
  letter-spacing: 0.01em; color: var(--ink);
  border: 1px solid transparent; white-space: nowrap;
  transition: transform 0.45s var(--ease-spring), box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  will-change: transform;
}
.btn:hover { transform: translateY(-3px) scale(1.02); }
.btn:active { transform: translateY(0) scale(0.98); }

.btn-primary {
  background: var(--grad-accent);
  box-shadow: 0 10px 30px rgba(124, 92, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-primary:hover { box-shadow: 0 16px 44px rgba(124, 92, 255, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.35); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.22); }

.btn-sm { padding: 11px 24px; font-size: 0.9rem; }
.btn-wide { width: 100%; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); font-size: 0.95rem; }
.link-arrow svg { width: 15px; height: 15px; transition: transform 0.3s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ==========================================================================
   SECTIONS & HEADS
   ========================================================================== */
.section { padding: 110px 0; position: relative; }
.hero + .section { padding-top: 40px; }

.section-head { max-width: 640px; margin-bottom: 54px; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 14px;
}
.kicker::before { content: ""; width: 26px; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); }
.section-intro { margin-top: 14px; color: var(--ink-3); font-size: 1.02rem; }

/* Scroll reveal: gentle slide + soft blur that clears as the section settles */
.reveal {
  opacity: 0;
  transform: translateY(46px) scale(0.985);
  filter: blur(14px);
  transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out), filter 1.1s var(--ease-out);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform, filter;
}
.reveal.is-in { opacity: 1; transform: none; filter: blur(0); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { padding: calc(var(--header-h) + 64px) 0 90px; position: relative; }

.hero-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: clamp(40px, 6vw, 84px); align-items: center; }

/* Portrait / brand panel */
.hero-visual { position: relative; }
.portrait-frame {
  aspect-ratio: 4 / 4.7;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.portrait-frame > img {
  width: 62%; height: auto; object-fit: cover;
  filter: drop-shadow(0 24px 50px rgba(0, 0, 0, 0.55));
  animation: mark-float 7s ease-in-out infinite;
}
.portrait-frame.is-photo > img { width: 100%; height: 100%; animation: none; border-radius: calc(var(--radius) - 8px); }

@keyframes mark-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* rotating light ring behind the mark */
.frame-ring {
  position: absolute; inset: 8%; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0%, rgba(139, 107, 255, 0.5) 12%, transparent 26%, transparent 55%, rgba(67, 198, 255, 0.4) 66%, transparent 80%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
  animation: ring-spin 14s linear infinite; opacity: 0.9;
}
@keyframes ring-spin { to { transform: rotate(360deg); } }

/* inner glow pooling under the mark */
.portrait-frame::after {
  content: ""; position: absolute; left: 15%; right: 15%; bottom: 8%; height: 30%;
  background: radial-gradient(50% 100% at 50% 100%, rgba(139, 107, 255, 0.28), transparent 70%);
  pointer-events: none;
}

/* floating glass chips (live outside the clipped frame so they can overhang) */
.hero-chips { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.hero-chip {
  position: absolute; padding: 9px 16px;
  font-size: 0.8rem; font-weight: 500; color: var(--ink); white-space: nowrap;
  background: rgba(16, 18, 28, 0.55);
  -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--line); border-radius: 999px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  animation: chip-bob 6s ease-in-out infinite;
}
.hero-chip:nth-child(1) { top: 5%; right: -4%; animation-delay: 0s; }
.hero-chip:nth-child(2) { bottom: 21%; left: -7%; animation-delay: 1.4s; }
.hero-chip:nth-child(3) { bottom: 2%; right: 5%; animation-delay: 2.6s; }
@keyframes chip-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* Hero copy */
.availability { margin-bottom: 22px; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #7be0a2; position: relative; flex-shrink: 0; }
.pulse-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid rgba(123, 224, 162, 0.6); animation: pulse 2.2s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(0.6); opacity: 1; } 100% { transform: scale(1.9); opacity: 0; } }

.hero-title { font-size: clamp(2.4rem, 4.2vw, 3.4rem); font-weight: 700; }
.hero-greeting { display: block; margin-bottom: 6px; }
.hero-role-line { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 0 12px; color: var(--ink-2); font-weight: 600; }

/* Cycling role word — box is sized by JS so the width glides between words */
.cycle { position: relative; display: inline-flex; justify-content: flex-start; overflow: hidden; transition: width 0.55s var(--ease-out); }
.cycle-word {
  position: absolute; left: 0; bottom: 0; white-space: nowrap;
  background: var(--grad-accent);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 24px rgba(124, 92, 255, 0.35));
}
.cycle-word.animate-in { animation: word-in 0.65s var(--ease-out) both; }
.cycle-word.animate-out { animation: word-out 0.65s var(--ease-out) both; }
@keyframes word-in { from { opacity: 0; transform: translateY(105%); filter: blur(8px); } to { opacity: 1; transform: translateY(0); filter: blur(0); } }
@keyframes word-out { from { opacity: 1; transform: translateY(0); filter: blur(0); } to { opacity: 0; transform: translateY(-105%); filter: blur(8px); } }

.hero-bio { margin-top: 26px; max-width: 520px; display: grid; gap: 12px; }
.hero-bio .bio-lead { font-size: 1.22rem; font-weight: 600; color: var(--ink); font-family: var(--font-display); }
.hero-bio .bio-tail { font-weight: 600; color: var(--gold); font-family: var(--font-display); font-size: 1.05rem; }

.hero-ctas { margin-top: 36px; display: flex; gap: 16px; flex-wrap: wrap; }

/* Featured strip */
.featured { margin-top: 110px; }
.featured-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.featured-head .kicker { margin-bottom: 0; }

/* ==========================================================================
   PROJECT TILES (shared by featured strip + projects grid)
   ========================================================================== */
.featured-grid, .projects-grid { display: grid; gap: 22px; }
/* column counts adapt to the number of projects (set from content.js) */
.featured-grid { grid-template-columns: repeat(var(--feat-cols, 4), 1fr); }
.projects-grid { grid-template-columns: repeat(var(--proj-cols, 3), 1fr); }

.tile {
  position: relative; display: flex; flex-direction: column; text-align: left;
  border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025) 60%);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--line-soft);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition:
    transform 0.55s var(--ease-spring),
    box-shadow 0.4s ease,
    border-color 0.4s ease;
  will-change: transform;
}
/* light bounce / spring on hover (overshoot comes from the spring easing) */
.tile:hover, .tile:focus-visible {
  transform: translateY(-8px) scale(1.025);
  border-color: var(--line);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
/* keep both the scroll-reveal and the springy hover working on the same element */
.tile.reveal {
  transform: translateY(26px);
  transition:
    opacity 1.1s var(--ease-out), transform 0.6s var(--ease-spring), filter 1.1s var(--ease-out),
    box-shadow 0.4s ease, border-color 0.4s ease;
}
.tile.reveal.is-in { transform: none; }

.tile-media {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  background: #0c0d14;
}
.tile-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out); }
.tile:hover .tile-media img { transform: scale(1.06); }

/* Branded gradient placeholder used when a project has no thumbnail yet */
.tile-ph {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(120% 120% at 20% 0%, hsla(var(--hue), 85%, 62%, 0.5), transparent 55%),
    radial-gradient(120% 120% at 90% 100%, hsla(calc(var(--hue) + 40), 85%, 55%, 0.35), transparent 55%),
    linear-gradient(160deg, hsl(var(--hue), 42%, 16%), #0b0c12 70%);
}
.tile-ph svg { width: 44px; height: 44px; opacity: 0.9; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.5)); }
.tile-ph::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.09) 48%, transparent 62%);
  transform: translateX(-120%);
  animation: sheen 5.5s ease-in-out infinite;
}
@keyframes sheen { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }

/* play badge */
.tile-play {
  position: absolute; right: 14px; bottom: 14px;
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(14, 15, 22, 0.6);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  opacity: 0; transform: translateY(8px) scale(0.85);
  transition: opacity 0.35s ease, transform 0.5s var(--ease-spring);
}
.tile-play svg { width: 16px; height: 16px; margin-left: 2px; }
.tile:hover .tile-play, .tile:focus-visible .tile-play { opacity: 1; transform: translateY(0) scale(1); }

.tile-cat {
  position: absolute; top: 14px; left: 14px;
  padding: 6px 12px; border-radius: 999px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em;
  color: #fff;
  background: rgba(12, 13, 20, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}

.tile-body { padding: 20px 22px 24px; display: grid; gap: 6px; }
.tile-title { font-family: var(--font-display); font-size: 1.08rem; font-weight: 600; color: var(--ink); }
.tile-desc { font-size: 0.92rem; color: var(--ink-3); }

/* Soft radial glow that follows the cursor across the tile face */
.tile-glow {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  opacity: 0; transition: opacity 0.4s ease;
  background:
    radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%),
      hsla(var(--glow-hue, 262), 90%, 70%, 0.28),
      hsla(var(--glow-hue, 262), 90%, 65%, 0.08) 45%,
      transparent 70%);
}
.tile:hover .tile-glow, .tile:focus-visible .tile-glow { opacity: 1; }

/* brief highlight pulse when arriving from a featured tile */
@keyframes tile-pulse {
  0% { box-shadow: 0 0 0 0 rgba(139, 107, 255, 0.55); }
  100% { box-shadow: 0 0 0 26px rgba(139, 107, 255, 0); }
}
.tile.pulse { animation: tile-pulse 1.1s ease-out 2; }

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 26px; align-items: start; }

.about-card { padding: clamp(30px, 4vw, 52px); }
.about-card .statement {
  font-family: var(--font-display); font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 600; color: var(--ink); line-height: 1.3; margin-bottom: 26px;
}
.about-card .statement em { font-style: normal; background: var(--grad-accent); -webkit-background-clip: text; background-clip: text; color: transparent; }
.about-card p + p { margin-top: 16px; }
.about-card .belief { font-size: 1.05rem; }
.about-card .belief strong { color: var(--ink); }
.about-card .closer { font-family: var(--font-display); color: var(--ink); font-size: 1.12rem; font-weight: 600; }
.about-sign {
  margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line-soft);
  font-family: var(--font-display); font-size: 1rem; color: var(--gold); font-weight: 600; letter-spacing: 0.02em;
}

.about-side { display: grid; gap: 22px; }
.about-facts, .about-cta, .contact-card { padding: 28px; }
.facts-label { font-family: var(--font-display); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 16px; }
.focus-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.focus-pills li {
  padding: 8px 15px; border-radius: 999px; font-size: 0.85rem; font-weight: 500; color: var(--ink-2);
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-soft);
  transition: border-color 0.3s ease, color 0.3s ease, transform 0.4s var(--ease-spring);
}
.focus-pills li:hover { border-color: rgba(139, 107, 255, 0.5); color: var(--ink); transform: translateY(-2px); }
.about-cta .btn { width: 100%; }

/* ==========================================================================
   FILTER BAR
   ========================================================================== */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.filter-pill {
  padding: 11px 22px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.9rem;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-soft);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: color 0.3s ease, background 0.3s ease, border-color 0.3s ease, transform 0.4s var(--ease-spring), box-shadow 0.3s ease;
}
.filter-pill:hover { color: var(--ink); transform: translateY(-2px); }
.filter-pill.active {
  color: #fff; background: var(--grad-accent);
  border-color: transparent;
  box-shadow: 0 10px 28px rgba(124, 92, 255, 0.4);
}

/* reflow animation when the grid filters */
.tile.filter-in { animation: filter-in 0.6s var(--ease-out) both; }
@keyframes filter-in { from { opacity: 0; transform: translateY(24px) scale(0.97); filter: blur(8px); } to { opacity: 1; transform: none; filter: blur(0); } }

/* ==========================================================================
   PRICING
   ========================================================================== */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }

.price-card {
  position: relative; display: flex; flex-direction: column;
  padding: 34px 30px 30px;
  transition: transform 0.55s var(--ease-spring), box-shadow 0.4s ease, border-color 0.4s ease;
}
.price-card:hover { transform: translateY(-8px) scale(1.015); box-shadow: 0 34px 80px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.18); }
.price-card.reveal {
  transition:
    opacity 1.1s var(--ease-out), transform 0.6s var(--ease-spring), filter 1.1s var(--ease-out),
    box-shadow 0.4s ease;
}

.price-card.price-featured {
  background: linear-gradient(160deg, rgba(139, 107, 255, 0.2), rgba(67, 198, 255, 0.08) 55%, rgba(255, 255, 255, 0.03));
  border-color: rgba(139, 107, 255, 0.45);
  box-shadow: 0 30px 70px rgba(90, 60, 220, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.price-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  padding: 7px 18px; border-radius: 999px; white-space: nowrap;
  font-family: var(--font-display); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: #fff; background: var(--grad-accent);
  box-shadow: 0 10px 26px rgba(124, 92, 255, 0.5);
}

.price-name { font-family: var(--font-display); font-size: 1rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); }
.price-amount { font-family: var(--font-display); font-size: 3.4rem; font-weight: 700; color: var(--ink); line-height: 1.1; margin: 10px 0 4px; }
.price-amount.is-word { font-size: 2.5rem; }
.price-unit { font-size: 1.15rem; font-weight: 600; color: var(--ink-3); margin-left: 6px; letter-spacing: 0; }
.price-tagline { font-size: 0.92rem; color: var(--ink-3); font-style: italic; min-height: 2.6em; }

.price-specs { margin: 22px 0; padding: 18px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); display: grid; gap: 9px; }
.price-specs li { display: flex; gap: 10px; font-size: 0.88rem; color: var(--ink-2); }
.price-specs svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 4px; color: var(--cyan); }

.price-features { display: grid; gap: 10px; margin-bottom: 28px; }
.price-features li { display: flex; gap: 10px; font-size: 0.94rem; }
.price-features svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 5px; color: var(--violet); }
.price-features .plus { font-weight: 600; }
.price-card .btn { margin-top: auto; }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 26px; align-items: start; }

.contact-form { padding: clamp(28px, 3.4vw, 44px); display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { font-family: var(--font-display); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.field input, .field textarea {
  width: 100%; padding: 15px 18px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line-soft);
  color: var(--ink); font: inherit; font-size: 0.96rem;
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field input:focus, .field textarea:focus {
  outline: none; border-color: rgba(139, 107, 255, 0.6);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 4px rgba(139, 107, 255, 0.15);
}
.field input.invalid, .field textarea.invalid { border-color: rgba(255, 110, 110, 0.65); }

.form-note { font-size: 0.82rem; color: var(--ink-3); }
.form-status { font-size: 0.92rem; min-height: 1.4em; font-weight: 500; }
.form-status.ok { color: #7be0a2; }
.form-status.err { color: #ff9c9c; }

.contact-side { display: grid; gap: 22px; }
.contact-side-copy { font-size: 0.94rem; color: var(--ink-3); margin-bottom: 22px; }

/* prominent WhatsApp card */
.whatsapp-card { padding: 28px; }
.whatsapp-card .wa-copy { font-size: 0.94rem; color: var(--ink-3); margin-bottom: 18px; }
.btn-whatsapp {
  background: linear-gradient(100deg, #2fe06f, #17b857);
  color: #fff;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-whatsapp:hover { box-shadow: 0 16px 44px rgba(37, 211, 102, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.btn-whatsapp svg { width: 19px; height: 19px; fill: currentColor; }

/* Icon-only social marks */
.social-row { display: flex; gap: 14px; }
.social-icon {
  width: 52px; height: 52px; border-radius: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-soft);
  transition: transform 0.5s var(--ease-spring), color 0.3s ease, border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.social-icon svg { width: 21px; height: 21px; fill: currentColor; }
.social-icon:hover {
  transform: translateY(-5px) scale(1.06); color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(139, 107, 255, 0.55);
  box-shadow: 0 16px 36px rgba(124, 92, 255, 0.3);
}

.availability-card { display: flex; align-items: center; gap: 14px; font-size: 0.94rem; color: var(--ink-2); }

/* email icon: confirms the address was copied */
.social-email { position: relative; }
.social-email.copied::after {
  content: "Email copied ✓";
  position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  padding: 6px 12px; border-radius: 8px; white-space: nowrap;
  font-size: 0.74rem; font-weight: 600; color: #0b0c12; background: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
  animation: fade-in 0.2s ease both;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  margin-top: 60px; padding: 56px 0 34px;
  border-top: 1px solid var(--line-soft);
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.025));
  position: relative;
}
.site-footer::before {
  content: ""; position: absolute; top: -1px; left: 20%; right: 20%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 107, 255, 0.6), rgba(67, 198, 255, 0.6), transparent);
}
.footer-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand { display: grid; gap: 14px; max-width: 320px; }
.footer-brand img { height: 52px; width: auto; }
.footer-brand p { font-size: 0.9rem; color: var(--ink-3); }
.footer-nav ul { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { color: var(--ink-2); font-size: 0.94rem; transition: color 0.25s ease; }
.footer-nav a:hover { color: var(--ink); }
.footer-social { display: flex; gap: 12px; }
.footer-social .social-icon { width: 46px; height: 46px; border-radius: 14px; }
.footer-bottom { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line-soft); }
.footer-bottom p { font-size: 0.84rem; color: var(--ink-3); }

/* ==========================================================================
   PROJECT MODAL
   ========================================================================== */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(6, 7, 11, 0.7);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  animation: fade-in 0.35s ease both;
}
.modal-panel {
  position: relative; width: min(920px, 100%);
  max-height: calc(100vh - 48px); overflow-y: auto;
  padding: 0;
  animation: modal-in 0.5s var(--ease-spring) both;
}
@keyframes fade-in { from { opacity: 0; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(40px) scale(0.96); filter: blur(10px); } }

.modal-close {
  position: absolute; top: 16px; right: 16px; z-index: 5;
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; background: rgba(12, 13, 20, 0.65);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: transform 0.4s var(--ease-spring), background 0.3s ease;
}
.modal-close:hover { transform: rotate(90deg); background: rgba(12, 13, 20, 0.9); }
.modal-close svg { width: 17px; height: 17px; }

.modal-media { position: relative; aspect-ratio: 16 / 9; background: #05060a; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }
.modal-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.modal-media video { width: 100%; height: 100%; object-fit: cover; }
/* soft top scrim — fades YouTube's title overlay into the player instead of hiding the frame */
.player-scrim {
  position: absolute; top: 0; left: 0; right: 0; height: 90px; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 6, 10, 0.72), rgba(5, 6, 10, 0.25) 55%, transparent);
}
/* while the player is open the native cursor returns (the orb would freeze over the iframe) */
html.modal-open .cursor-orb, html.modal-open .cursor-dot { opacity: 0 !important; }
html.custom-cursor.modal-open .modal-panel, html.custom-cursor.modal-open .modal-panel * { cursor: auto !important; }
.modal-media-note {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  margin: 0; padding: 9px 18px; width: max-content; max-width: calc(100% - 32px);
  font-size: 0.82rem; color: var(--ink-2); text-align: center;
  background: rgba(12, 13, 20, 0.72);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: 999px;
}

.modal-body { padding: 30px clamp(24px, 4vw, 40px) 36px; }
.modal-category { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.modal-desc { margin-top: 12px; color: var(--ink-2); }
.modal-watch {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 12px;
  font-size: 0.88rem; font-weight: 600; color: var(--gold);
}
.modal-watch svg { width: 14px; height: 14px; transition: transform 0.3s var(--ease-out); }
.modal-watch:hover svg { transform: translateX(4px); }
.modal-watch[hidden] { display: none; }
.modal-highlights { margin: 20px 0 4px; display: grid; gap: 10px; }
.modal-highlights li { position: relative; padding-left: 22px; font-size: 0.95rem; }
.modal-highlights li::before { content: ""; position: absolute; left: 0; top: 9px; width: 10px; height: 10px; border-radius: 3px; background: var(--grad-accent); transform: rotate(45deg); }
.modal-tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 26px; }
.modal-tools span { padding: 7px 14px; border-radius: 999px; font-size: 0.8rem; color: var(--ink-2); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-soft); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1080px) {
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .price-tagline { min-height: 0; }
}

@media (max-width: 920px) {
  :root { --header-h: 72px; }
  .logo img { height: 38px; }

  /* nav collapses into a glass dropdown panel */
  .site-nav {
    position: fixed; top: calc(var(--header-h) + 8px); left: 16px; right: 16px;
    transform: none; z-index: 99;
    background: rgba(14, 15, 22, 0.85);
    -webkit-backdrop-filter: blur(26px) saturate(170%); backdrop-filter: blur(26px) saturate(170%);
    border: 1px solid var(--line); border-radius: 20px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
    opacity: 0; pointer-events: none; translate: 0 -12px;
    transition: opacity 0.35s ease, translate 0.35s var(--ease-out);
  }
  .nav-open .site-nav { opacity: 1; pointer-events: auto; translate: 0 0; }
  .site-nav ul { flex-direction: column; padding: 14px; gap: 4px; }
  .site-nav a { display: block; padding: 14px 18px; font-size: 1.02rem; }
  .site-nav a::after { display: none; }
  .nav-toggle { display: block; }

  .hero { padding-top: calc(var(--header-h) + 40px); }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .portrait-frame { max-width: 420px; margin-inline: auto; aspect-ratio: 4 / 4.2; }
  .hero-chip:nth-child(1) { right: 2%; }
  .hero-chip:nth-child(2) { left: 0; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .section { padding: 84px 0; }
  .featured { margin-top: 84px; }
}

@media (max-width: 640px) {
  .container { width: calc(100% - 36px); }
  .logo img { height: 30px; }
  .header-actions { gap: 10px; }
  .header-actions .btn { padding: 9px 16px; font-size: 0.8rem; }
  .featured-grid, .projects-grid { grid-template-columns: 1fr; }
  .hero-ctas .btn { flex: 1; }
  .modal { padding: 12px; }
  .footer-inner { flex-direction: column; gap: 32px; }
}

/* ==========================================================================
   REDUCED MOTION — everything settles instantly, no blur travel
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .blob, .frame-ring, .portrait-frame > img, .hero-chip, .tile-ph::after { animation: none !important; }
  .cycle-word.animate-in, .cycle-word.animate-out { animation-duration: 0.01s; }
  .tile, .btn, .price-card, .social-icon { transition-duration: 0.01s; }
  .tile-glow { display: none; }
}
