/* =====================================================================
   THEME — change these colors to restyle the whole site
   ===================================================================== */
:root {
  --bg: #ffffff;             /* white page */
  --bg-alt: #121214;          /* semi-black sections (Skills, Videos, Reviews) */
  --surface: #ffffff;         /* cards */
  --surface-2: #ececee;       /* bar tracks */
  --field: #f4f4f5;           /* form boxes */
  --border: rgba(0, 0, 0, 0.09);
  --text: #18181b;            /* semi-black text */
  --muted: #5f5f66;
  --accent: #c8102e;          /* crimson red */
  --accent-rgb: 200, 16, 46;  /* same red as numbers, used for see-through tints */
  --accent-2: #e5283f;        /* brighter red */
  --accent-3: #18181b;        /* black */
  --gradient: linear-gradient(120deg, #8f0a1f, var(--accent) 55%, var(--accent-2));
  --radius: 18px;
  --shadow: 0 22px 50px -24px rgba(0, 0, 0, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-head: "Playfair Display", Georgia, serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --nav-h: 72px;
}

/* =====================================================================
   BASE
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-loading, body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
::selection { background: var(--accent); color: #fff; }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; font-variant-numeric: lining-nums; }
/* Small card titles read better in the clean body font */
h3 { font-family: var(--font-body); font-weight: 700; letter-spacing: -0.01em; }

.section { padding: clamp(80px, 12vw, 130px) 0; position: relative; }
.section--alt {
  --surface: #1b1b1e; --surface-2: #2c2c30; --text: #f4f4f5; --muted: #a1a1aa;
  --border: rgba(255, 255, 255, 0.09); --shadow: 0 22px 50px -24px rgba(0, 0, 0, 0.8);
  background: var(--bg-alt); color: var(--text);
}
.section__head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section__title { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 14px; }
.section__title em { font-style: italic; color: var(--accent); }
.section__sub { color: var(--muted); }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 12px;
}

/* =====================================================================
   BUTTONS
   ===================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px; font-weight: 700; letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s, border-color .35s;
  position: relative; overflow: hidden; isolation: isolate;
}
.btn svg { transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--glow { background: var(--gradient); background-size: 200% 100%; color: #fff; box-shadow: 0 10px 30px -10px var(--accent); }
.btn--glow:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -12px var(--accent-2); background-position: 100% 0; }
.btn--glow::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.35), transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn--glow:hover::after { transform: translateX(120%); }
.btn--ghost { border-color: var(--border); background: rgba(255,255,255,0.7); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-3px); }
.btn--small { padding: 9px 20px; font-size: .9rem; background: var(--gradient); color: #fff !important; }
.btn--small::after { display: none; }
.btn--full { width: 100%; }

/* =====================================================================
   LOADER
   ===================================================================== */
.loader {
  position: fixed; inset: 0; z-index: 999; background: var(--bg);
  display: grid; place-content: center; gap: 22px; justify-items: center;
  transition: opacity .6s var(--ease), visibility .6s;
}
.loader__logo { width: 150px; color: var(--text); display: block; }
.loader__bar { width: 140px; height: 3px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.loader__bar span { display: block; height: 100%; width: 40%; background: var(--gradient); animation: loadbar 1s var(--ease) infinite; }
body:not(.is-loading) .loader { opacity: 0; visibility: hidden; }
.welcome__glow, .welcome__burst { display: none; }

/* ---------- Welcome screen: the signature "C" is the Enter button ---------- */
.loader.is-welcome { background: #0b0b0d; overflow: hidden; }
.loader.is-welcome .loader__logo {
  width: clamp(190px, 26vw, 260px); color: #fff; position: relative; z-index: 1; padding: 18px; border-radius: 28px;
  cursor: default; transition: transform .6s var(--ease), filter .6s var(--ease);
}
.loader.is-welcome .loader__bar { background: rgba(255, 255, 255, .12); }
.loader.is-welcome.is-ready .loader__bar { visibility: hidden; }
.loader.is-welcome.is-ready .loader__logo { cursor: pointer; }
.loader.is-welcome.is-ready .loader__logo:hover { transform: scale(1.06) rotate(-3deg); filter: drop-shadow(0 0 24px rgba(var(--accent-rgb), .55)); }
.loader.is-welcome .loader__logo:focus-visible { outline: 2px solid rgba(255, 255, 255, .6); outline-offset: 6px; }
/* once ready, the red dot gently beats like a pulse: the only hint that the C is clickable */
.loader.is-welcome.is-ready .sig circle { transform: scale(1); animation: dotBeat 1.6s ease-in-out infinite; }
@keyframes dotBeat { 0%, 100% { transform: scale(1); } 30% { transform: scale(1.45); } 55% { transform: scale(.95); } }

/* Breathing crimson light behind the signature */
.loader.is-welcome .welcome__glow {
  display: block; position: absolute; inset: -20%; pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%, rgba(var(--accent-rgb), .42), transparent 38%),
    conic-gradient(from 0deg at 50% 50%, transparent, rgba(var(--accent-rgb), .16), transparent 30%, rgba(255, 255, 255, .04), transparent 60%, rgba(var(--accent-rgb), .14), transparent);
  filter: blur(30px); animation: glowBreathe 6s ease-in-out infinite, glowSpin 28s linear infinite;
}
@keyframes glowBreathe { 50% { opacity: .55; } }
@keyframes glowSpin { to { transform: rotate(360deg); } }

/* Leaving: a red burst floods out from the C, then dissolves into the site */
.loader.is-welcome .welcome__burst {
  display: block; position: absolute; left: var(--bx, 50%); top: var(--by, 50%); width: 66px; height: 66px; margin: -33px 0 0 -33px;
  border-radius: 50%; background: var(--gradient); transform: scale(0); pointer-events: none; z-index: 2;
}
.loader.is-leaving .welcome__burst { transition: transform .85s cubic-bezier(.7, 0, .3, 1); transform: scale(var(--burst, 40)); }
.loader.is-leaving .loader__logo { transition: opacity .4s ease, transform .6s var(--ease); opacity: 0; transform: scale(.94); }
body:not(.is-loading) .loader.is-welcome { transition: opacity .8s ease .1s, visibility .9s; }

@keyframes loadbar { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

/* Elements that animate in once the page has loaded */
.load-in { opacity: 0; transform: translateY(30px); }
body.loaded .load-in { animation: loadIn 1s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes loadIn { to { opacity: 1; transform: none; } }

/* =====================================================================
   NAVIGATION
   ===================================================================== */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  transition: background .4s, box-shadow .4s, transform .4s var(--ease);
}
.nav.is-scrolled { background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--border); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav__logo { display: block; width: 62px; color: var(--text); transition: transform .4s var(--ease); }
.nav__logo:hover { transform: rotate(-4deg) scale(1.06); }

/* Signature "C": the pen strokes draw themselves, then the red dot pops in */
.sig { display: block; width: 100%; height: auto; overflow: visible; }
.sig path { stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; }   /* hidden until its stroke starts, so the round pen tips don't show as dots */
.sig circle { transform-box: fill-box; transform-origin: center; transform: scale(0); }
.sig--loader path, body.loaded .nav__logo .sig path { animation: sign .55s cubic-bezier(.6, .05, .3, 1) forwards; animation-delay: calc(var(--i) * .32s + var(--start, 0s)); }
.sig--loader circle, body.loaded .nav__logo .sig circle { animation: dotPop .4s var(--ease) forwards; animation-delay: calc(1.35s + var(--start, 0s)); }
body.loaded .nav__logo .sig { --start: .5s; }
@keyframes sign { from { stroke-dashoffset: 1; opacity: 1; } to { stroke-dashoffset: 0; opacity: 1; } }
@keyframes dotPop { 60% { transform: scale(1.4); } to { transform: scale(1); } }
.nav__links { display: flex; align-items: center; gap: 30px; font-size: .95rem; }
.nav__links a:not(.btn) { color: var(--muted); position: relative; transition: color .3s; }
.nav__links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 100%;
  background: var(--gradient); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.nav__links a:not(.btn):hover, .nav__links a.is-active { color: var(--text); }
.nav__links a:not(.btn):hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__toggle { display: none; width: 44px; height: 44px; position: relative; z-index: 60; }
.nav__toggle span { position: absolute; left: 11px; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .4s var(--ease), opacity .3s; }
.nav__toggle span:nth-child(1) { top: 15px; }
.nav__toggle span:nth-child(2) { top: 21px; }
.nav__toggle span:nth-child(3) { top: 27px; }
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* =====================================================================
   HERO
   ===================================================================== */
.hero { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; position: relative; overflow: hidden; padding: calc(var(--nav-h) + 30px) 0 80px; }
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(100px); opacity: .08; will-change: transform; }
.blob--1 { width: 480px; height: 480px; background: var(--accent); top: -120px; left: -120px; animation: drift 14s ease-in-out infinite alternate; }
.blob--2 { width: 420px; height: 420px; background: var(--accent-3); bottom: -140px; right: -80px; animation: drift 18s ease-in-out infinite alternate-reverse; opacity: .1; }
.blob--3 { width: 260px; height: 260px; background: var(--accent); top: 40%; left: 45%; opacity: .06; animation: drift 12s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(60px, 40px) scale(1.15); } }
.grid-lines {
  position: absolute; inset: -20%;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 65%);
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 60px; }
.hero__hello { font-size: 1.15rem; color: var(--muted); margin-bottom: 14px; }
.hero__hello strong { color: var(--text); }
.wave { display: inline-block; animation: wave 2.4s ease-in-out infinite; transform-origin: 70% 70%; }
@keyframes wave { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(16deg); } 20% { transform: rotate(-8deg); } }
.hero__title { font-size: clamp(2.8rem, 7vw, 5.2rem); font-weight: 700; font-style: italic; letter-spacing: -0.02em; line-height: 1.08; min-height: 2.3em; margin-bottom: 22px; }
.typed { padding-right: .08em; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.caret { display: inline-block; width: 4px; height: .9em; margin-left: 6px; vertical-align: -0.05em; background: var(--accent-2); border-radius: 2px; animation: blink .9s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero__pitch { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 520px; margin-bottom: 34px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero__location { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .95rem; }

.hero__photo { position: relative; justify-self: center; width: min(430px, 100%); }
.portrait { position: relative; aspect-ratio: 767 / 1024; }
.portrait__arch {
  position: absolute; inset: 0; border-radius: 999px 999px 28px 28px;
  background: radial-gradient(circle at 30% 25%, var(--accent-2), transparent 55%), var(--gradient);
  box-shadow: 0 40px 80px -30px rgba(var(--accent-rgb), .6);
}
.portrait__arch::after {
  content: ""; position: absolute; inset: -14px -14px 14px 14px; border: 2px solid #18181b;
  border-radius: inherit; z-index: -1;
}
.portrait img {
  position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px);
  object-fit: cover; object-position: top; border-radius: 999px 999px 20px 20px;
}
.float-badge {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 10px 16px;
  background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 14px;
  font-size: .88rem; font-weight: 500; white-space: nowrap; box-shadow: var(--shadow);
  animation: float 5s ease-in-out infinite;
}
.float-badge b { color: var(--accent); font-weight: 800; }
/* Cards sit on the frame's edges: top corner, shoulder level, bottom edge (never over the face) */
.float-badge--1 { top: 5%; left: -16%; }
.float-badge--2 { top: 70%; right: -18%; animation-delay: -2.5s; }
.float-badge--3 { bottom: -4%; left: -12%; animation-delay: -1.2s; }

.scroll-hint { position: absolute; bottom: 28px; left: 50%; translate: -50% 0; width: 26px; height: 42px; border: 2px solid var(--muted); border-radius: 20px; opacity: .7; }
.scroll-hint span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--text); animation: scrolldot 1.8s var(--ease) infinite; }
@keyframes scrolldot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* =====================================================================
   ABOUT
   ===================================================================== */
.about { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 70px; align-items: center; }
.about__photo { position: relative; }
/* Two big photos side by side, the second one set a little lower */
.about__photo--pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; padding-bottom: 20px; }
.about:has(.about__photo--pair) { grid-template-columns: 1.15fr 1fr; gap: 60px; }
.about__photo--pair img { height: auto !important; aspect-ratio: 3 / 4 !important; transition: transform .6s var(--ease); }
.about__photo--pair img:hover { transform: translateY(-6px); }
.about__photo--pair .about__photo2 { margin-top: 56px; }
.about__photo img { width: 100%; aspect-ratio: 6 / 7; object-fit: cover; object-position: center 72%; height: auto; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.about__photo::before { content: ""; position: absolute; inset: 24px -24px -24px 24px; border: 2px solid var(--accent); border-radius: var(--radius); z-index: -1; opacity: .5; }
.about__stats {
  position: absolute; left: 50%; bottom: -34px; translate: -50% 0; width: 88%;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
  background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border); border-radius: 16px; padding: 16px 10px; text-align: center; box-shadow: var(--shadow);
}
.stat__num { font: 800 1.7rem var(--font-head); font-variant-numeric: lining-nums; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__label { font-size: .75rem; color: var(--muted); line-height: 1.3; }
.about__text p { color: var(--muted); margin-bottom: 16px; }
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 28px 0 34px; }
.service { padding: 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); transition: transform .4s var(--ease), border-color .4s; }
.service:hover { transform: translateY(-5px); border-color: rgba(var(--accent-rgb), .5); }
.service__icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--text); color: #fff; margin-bottom: 10px; transition: background .4s; }
.service:hover .service__icon { background: var(--accent); }
.service h3 { font-size: 1.05rem; margin-bottom: 4px; }
.service p { font-size: .88rem; margin: 0 !important; }
.about__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* =====================================================================
   SKILLS
   ===================================================================== */
.skills { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.skill-card {
  position: relative; padding: 32px 28px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.skill-card::before {
  content: ""; position: absolute; inset: 0; padding: 1px; border-radius: inherit;
  background: var(--gradient); opacity: 0; transition: opacity .5s;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.skill-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.skill-card:hover::before { opacity: 1; }
.skill-card__head { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.skill-card__icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--gradient); color: #fff; }
.skill-card h3 { font-size: 1.3rem; }
.skill { margin-bottom: 18px; }
.skill:last-child { margin-bottom: 0; }
.skill__row { display: flex; justify-content: space-between; font-size: .92rem; margin-bottom: 8px; }
.skill__row span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; }
.skill__bar { height: 8px; border-radius: 8px; background: var(--surface-2); overflow: hidden; }
.skill__fill { height: 100%; width: 0; border-radius: inherit; background: var(--gradient); background-size: 200% 100%; transition: width 1.6s var(--ease); position: relative; }
.skill__fill::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent); animation: shimmer 2.4s infinite; }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* =====================================================================
   CERTIFICATIONS
   ===================================================================== */
.certs { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.cert {
  text-align: left; border-radius: var(--radius); overflow: hidden; background: var(--surface);
  border: 1px solid var(--border); transition: transform .5s var(--ease), box-shadow .5s, border-color .5s;
}
.cert:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: rgba(var(--accent-rgb), .5); }
.cert__img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.cert__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.cert:hover .cert__img img { transform: scale(1.07); }
.zoom-icon {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(15, 15, 17, .5); opacity: 0; transition: opacity .4s;
}
.zoom-icon span { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--gradient); color: #fff; transform: scale(.6); transition: transform .5s var(--ease); }
.cert:hover .zoom-icon, .work:hover .zoom-icon { opacity: 1; }
.cert:hover .zoom-icon span, .work:hover .zoom-icon span { transform: scale(1); }
.cert__body { padding: 18px 20px 22px; }
.cert__body h3 { font-size: 1.1rem; margin-bottom: 6px; }
.cert__meta { display: flex; justify-content: space-between; gap: 10px; font-size: .85rem; color: var(--muted); }

/* =====================================================================
   VIDEOS
   ===================================================================== */
.filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filter {
  padding: 10px 22px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
  color: var(--muted); font-weight: 500; transition: all .35s var(--ease);
}
.filter:hover { color: var(--text); border-color: var(--accent); }
.filter.is-active { background: var(--gradient); color: #fff; border-color: transparent; box-shadow: 0 10px 24px -12px var(--accent); }
.filter .count { opacity: .7; font-size: .8em; margin-left: 4px; }
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.video { border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--border); transition: transform .5s var(--ease), opacity .4s, box-shadow .5s; }
.video:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.video.is-hiding { opacity: 0; transform: scale(.94); }
.video[hidden] { display: none; }
.video__frame { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.video__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), opacity .4s; opacity: .85; }
.video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__play { position: absolute; inset: 0; display: grid; place-items: center; width: 100%; }
.video__play span {
  width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gradient); color: #fff; box-shadow: 0 0 0 0 rgba(var(--accent-rgb), .6);
  animation: ping 2.2s infinite; transition: transform .4s var(--ease);
}
.video:hover .video__frame img { transform: scale(1.06); opacity: 1; }
.video:hover .video__play span { transform: scale(1.12); }
@keyframes ping { 70% { box-shadow: 0 0 0 18px rgba(var(--accent-rgb), 0); } 100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0); } }
.video__body { padding: 16px 20px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.video__body h3 { font-size: 1.05rem; }
.tag { flex-shrink: 0; font-size: .75rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; background: rgba(var(--accent-rgb), .2); color: #ff6b78; }

/* =====================================================================
   OTHER WORKS (masonry-style gallery)
   ===================================================================== */
.works { columns: 3 280px; column-gap: 20px; }
.work {
  position: relative; display: block; width: 100%; margin-bottom: 20px; break-inside: avoid;
  border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--border);
}
.work img { width: 100%; height: auto; min-height: 180px; object-fit: cover; transition: transform .8s var(--ease); }
.work:hover img { transform: scale(1.06); }
.work__caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px; text-align: left;
  background: linear-gradient(transparent, rgba(15, 15, 17, .9)); color: #fff;
  transform: translateY(30%); opacity: 0; transition: transform .5s var(--ease), opacity .5s;
}
.work:hover .work__caption, .work:focus-visible .work__caption { transform: none; opacity: 1; }
.work__caption h3 { font-size: 1.05rem; }
.work__caption p { font-size: .85rem; color: rgba(255,255,255,.8); }

/* =====================================================================
   TESTIMONIALS SLIDER
   ===================================================================== */
.slider { max-width: 820px; margin: 0 auto; overflow: hidden; touch-action: pan-y; }
.slider__track { display: flex; transition: transform .8s var(--ease); }
.testimonial { flex: 0 0 100%; padding: 8px; }
.testimonial__card {
  position: relative; padding: clamp(32px, 5vw, 52px); border-radius: 24px; text-align: center;
  background: var(--surface); border: 1px solid var(--border);
}
.testimonial__card::before { content: "\201C"; position: absolute; top: -10px; left: 28px; font: 800 7rem/1 var(--font-head); background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .6; }
.stars { color: var(--accent-2); letter-spacing: 4px; margin-bottom: 18px; }
.testimonial__quote { font-size: clamp(1.05rem, 2vw, 1.3rem); line-height: 1.7; margin-bottom: 28px; }
.testimonial__person { display: inline-flex; align-items: center; gap: 14px; text-align: left; }
.avatar { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: var(--gradient); color: #fff; font: 700 1.1rem var(--font-head); flex-shrink: 0; }
.testimonial__person strong { display: block; }
.testimonial__person span { color: var(--muted); font-size: .9rem; }
.slider__controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 28px; }
.slider__arrow { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--border); background: var(--surface); transition: all .35s var(--ease); }
.slider__arrow:hover { background: var(--gradient); border-color: transparent; transform: scale(1.08); }
.slider__dots { display: flex; gap: 8px; }
.slider__dots button { width: 10px; height: 10px; border-radius: 10px; background: var(--surface-2); transition: width .4s var(--ease), background .4s; }
.slider__dots button.is-active { width: 30px; background: var(--gradient); }

/* =====================================================================
   CONTACT
   ===================================================================== */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 70px; align-items: start; }
.contact__info > p { color: var(--muted); margin-bottom: 24px; }
.contact__email { display: inline-block; font: 600 clamp(1.1rem, 2.4vw, 1.5rem) var(--font-head); margin-bottom: 30px; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; border-bottom: 2px solid rgba(var(--accent-rgb), .4); padding-bottom: 4px; word-break: break-all; }
.socials { display: flex; flex-wrap: wrap; gap: 12px; }
.contact__email { position: relative; }
.contact__photo {
  width: min(300px, 78%); height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: center 30%; margin-top: 40px; border-radius: 18px;
  border: 6px solid #fff; box-shadow: 14px 14px 0 -2px var(--accent), var(--shadow);
  rotate: -3deg; transition: rotate .6s var(--ease), scale .6s var(--ease);
}
.contact__photo:hover { rotate: 0deg; scale: 1.03; }
.contact__email[data-copied]::after {
  content: attr(data-copied); position: absolute; left: 0; top: calc(100% + 8px); white-space: nowrap;
  padding: 5px 12px; border-radius: 999px; background: #18181b; color: #fff; -webkit-text-fill-color: #fff;
  font: 600 .78rem var(--font-body); animation: fadeIn .3s ease;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(-4px); } }
.social {
  display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border); font-size: .92rem; font-weight: 500;
  transition: transform .4s var(--ease), border-color .4s, background .4s;
}
.social:hover { transform: translateY(-4px); border-color: var(--accent); color: var(--accent); }
.social svg { color: var(--accent-2); }

.form { padding: clamp(26px, 4vw, 40px); border-radius: 24px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.field { position: relative; margin-bottom: 18px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 22px 16px 10px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--field); outline: none; transition: border-color .3s, box-shadow .3s; resize: vertical;
}
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235f5f66' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.field select option { background: var(--surface); }
.field label { position: absolute; left: 17px; top: 16px; color: var(--muted); pointer-events: none; transition: all .3s var(--ease); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .15); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field .label--fixed { top: 6px; font-size: .72rem; color: var(--accent); }
.field.has-error input, .field.has-error textarea { border-color: #e03131; }
.hp { position: absolute; left: -9999px; }
.form__status { margin-top: 14px; font-size: .92rem; min-height: 1.4em; text-align: center; }
.form__status.ok { color: #15803d; }
.form__status.err { color: #c81e1e; }
#formBtn.is-sending span::after { content: ""; display: inline-block; width: 14px; height: 14px; margin-left: 10px; border: 2px solid #fff; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; vertical-align: -2px; }

/* =====================================================================
   FOOTER, BACK-TO-TOP
   ===================================================================== */
.footer { padding: 30px 0; background: var(--bg-alt); color: #a1a1aa; font-size: .9rem; }
.footer__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer__top:hover { color: #fff; }
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; background: var(--gradient); color: #fff; box-shadow: var(--shadow);
  opacity: 0; transform: translateY(20px) scale(.8); pointer-events: none; transition: all .45s var(--ease);
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { transform: translateY(-4px); }

/* =====================================================================
   MUSIC BUTTON
   ===================================================================== */
.music { position: fixed; left: 22px; bottom: 22px; z-index: 40; display: flex; align-items: center; gap: 10px; }
.music__btn {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: #18181b; border: 2px solid var(--accent); box-shadow: var(--shadow);
  transition: transform .4s var(--ease), background .4s;
}
.music__btn:hover { transform: scale(1.08); }
.music.is-playing .music__btn { background: var(--gradient); border-color: transparent; animation: musicPulse 2s infinite; }
.music__bars { display: flex; align-items: flex-end; gap: 3px; height: 18px; }
.music__bars i { width: 3px; height: 30%; border-radius: 2px; background: #fff; transition: height .3s; }
.music.is-playing .music__bars i { animation: eq 1s ease-in-out infinite; }
.music.is-playing .music__bars i:nth-child(2) { animation-delay: -.3s; }
.music.is-playing .music__bars i:nth-child(3) { animation-delay: -.6s; }
.music.is-playing .music__bars i:nth-child(4) { animation-delay: -.15s; }
.music__label {
  padding: 8px 14px; border-radius: 999px; background: #18181b; color: #fff; font-size: .82rem; font-weight: 600; white-space: nowrap;
  opacity: 0; transform: translateX(-10px); pointer-events: none; transition: opacity .35s, transform .35s var(--ease);
}
.music:hover .music__label, .music.show-label .music__label, .music.needs-tap .music__label { opacity: 1; transform: none; }
.music.needs-tap .music__btn { animation: musicPulse 1.6s infinite; }
@keyframes eq { 0%, 100% { height: 25%; } 50% { height: 100%; } }
@keyframes musicPulse { 0% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), .5); } 70% { box-shadow: 0 0 0 14px rgba(var(--accent-rgb), 0); } 100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0); } }

/* =====================================================================
   LIGHTBOX
   ===================================================================== */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 60px 70px;
  background: rgba(10, 10, 12, 0.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__figure { max-width: 1000px; text-align: center; transform: scale(.92); transition: transform .5s var(--ease); }
.lightbox.is-open .lightbox__figure { transform: none; }
.lightbox__figure img { max-height: 78vh; width: auto; margin: 0 auto; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lightbox__figure figcaption { margin-top: 16px; color: #c4c4c8; }
.lightbox__figure figcaption strong { color: #fff; display: block; font-size: 1.1rem; }
.lightbox__close { position: absolute; top: 16px; right: 22px; font-size: 2.4rem; line-height: 1; color: #fff; transition: transform .3s; }
.lightbox__close:hover { transform: rotate(90deg); }
.lightbox__nav { position: absolute; top: 50%; translate: 0 -50%; width: 52px; height: 52px; border-radius: 50%; font-size: 2rem; line-height: 1; background: var(--surface); border: 1px solid var(--border); transition: background .3s; }
.lightbox__nav:hover { background: var(--accent); color: #fff; }
.lightbox__nav--prev { left: 14px; }
.lightbox__nav--next { right: 14px; }

/* =====================================================================
   SCROLL-REVEAL
   ===================================================================== */
.reveal { opacity: 0; transform: translateY(50px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal--left { transform: translateX(-60px); }
.reveal--right { transform: translateX(60px); }
.reveal--zoom { transform: scale(.88); }
.reveal.is-visible { opacity: 1; transform: none; }

/* =====================================================================
   EXTRA RED
   ===================================================================== */
/* Red bar under every section title */
.section__head .section__title::after,
.about__text .section__title::after,
.contact__info .section__title::after {
  content: ""; display: block; width: 64px; height: 5px; border-radius: 5px;
  background: var(--gradient); margin-top: 16px;
}
.section__head .section__title::after { margin-inline: auto; }

/* Red top edge on cards */
.skill-card, .cert, .video, .service, .form, .testimonial__card { border-top: 3px solid var(--accent); }

.hero__hello strong { color: var(--accent); }

/* Full red section (Testimonials) */
.section--red {
  --text: #ffffff; --muted: rgba(255, 255, 255, 0.78); --border: rgba(255, 255, 255, 0.22);
  --surface: rgba(0, 0, 0, 0.18); --surface-2: rgba(255, 255, 255, 0.3);
  background: radial-gradient(circle at 15% 20%, #e5283f, transparent 45%), linear-gradient(135deg, #8f0a1f, var(--accent));
  color: var(--text);
}
.section--red .eyebrow { background: none; color: #fff; opacity: .85; }
.section--red .section__title::after { background: #fff; }
.section--red .section__title em { color: #fff; }
.section--red .testimonial__card { border-top-color: #fff; }
.section--red .testimonial__card::before { background: none; color: #fff; -webkit-text-fill-color: #fff; opacity: .35; }
.section--red .stars { color: #fff; }
.section--red .avatar { background: #fff; color: var(--accent); }
.section--red .slider__arrow:hover { background: #fff; color: var(--accent); }
.section--red .slider__dots button.is-active { background: #fff; }

/* Red details */
.nav.is-scrolled { box-shadow: 0 2px 0 var(--accent); }
.footer { border-top: 4px solid var(--accent); }
.nav__links a:not(.btn):hover, .nav__links a.is-active { color: var(--accent); }
.section--alt .skill-card__icon, .section--alt .filter.is-active { box-shadow: 0 0 24px -4px rgba(var(--accent-rgb), .6); }
.section--alt { background: radial-gradient(circle at 85% 0%, rgba(var(--accent-rgb), .22), transparent 40%), var(--bg-alt); }
html { scrollbar-color: var(--accent) #f1f1f3; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #f1f1f3; }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 10px; }

/* =====================================================================
   DECORATION
   ===================================================================== */
/* Giant outlined name behind the hero photo */
.hero__watermark {
  position: absolute; right: -2%; bottom: 4%; font: italic 700 clamp(6rem, 17vw, 15rem)/1 var(--font-head);
  color: transparent; -webkit-text-stroke: 1.5px rgba(var(--accent-rgb), .16); white-space: nowrap; letter-spacing: -0.02em;
  user-select: none;
}

/* Slim scrolling ribbon of services */
.ribbon { position: relative; z-index: 3; background: #18181b; padding: 12px 0; overflow: hidden; border-top: 3px solid var(--accent); }
.ribbon__track { display: flex; align-items: center; gap: 26px; width: max-content; animation: ribbon 45s linear infinite; }
.ribbon__track span { font: italic 600 1.05rem var(--font-head); color: #fff; white-space: nowrap; letter-spacing: .01em; }
.ribbon__track i { font-style: normal; color: var(--accent-2); font-size: .85rem; }
@keyframes ribbon { to { transform: translateX(-50%); } }

/* Numbered section labels: 01 — About me */
main { counter-reset: section; }
main > .section { counter-increment: section; }
main > .section .eyebrow:first-child::before,
main > .section .section__head .eyebrow::before { content: counter(section, decimal-leading-zero) " — "; }
.section--red .eyebrow::before { color: #fff; }

/* Red dot grids peeking out from behind */
.about__photo::after,
.contact::before {
  content: ""; position: absolute; width: 150px; height: 150px; z-index: -1;
  background-image: radial-gradient(rgba(var(--accent-rgb), .55) 2px, transparent 2.5px); background-size: 16px 16px;
}
.about__photo::after { left: -40px; bottom: -40px; }
.contact { position: relative; isolation: isolate; }
.contact::before { right: -30px; top: 40px; }

/* Giant outlined word behind section headings */
.section { overflow-x: clip; }
.section__head { position: relative; isolation: isolate; }
.section__head[data-watermark]::before {
  content: attr(data-watermark); position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); z-index: -1;
  font: italic 700 clamp(4.5rem, 13vw, 10.5rem)/1 var(--font-head); white-space: nowrap; pointer-events: none;
  color: transparent; -webkit-text-stroke: 1.5px rgba(var(--accent-rgb), .13);
}
.section--alt .section__head[data-watermark]::before { -webkit-text-stroke-color: rgba(255, 255, 255, .08); }
.section--red .section__head[data-watermark]::before { -webkit-text-stroke-color: rgba(255, 255, 255, .22); }

/* Soft red glow in the corners of white sections */
main > .section:not(.section--alt):not(.section--red) {
  background:
    radial-gradient(circle at 0% 0%, rgba(var(--accent-rgb), .07), transparent 32%),
    radial-gradient(circle at 100% 100%, rgba(var(--accent-rgb), .05), transparent 30%),
    var(--bg);
}

/* Rings on the red Reviews section */
.section--red::before, .section--red::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
}
.section--red::before { width: 520px; aspect-ratio: 1; left: -170px; top: -230px; border: 1.5px solid rgba(255, 255, 255, .2); }
.section--red::after { width: 380px; aspect-ratio: 1; right: -110px; bottom: -190px; border: 1.5px dashed rgba(255, 255, 255, .25); }

/* "Certified" seal on certificate cards */
.cert__seal {
  position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 11px; border-radius: 999px; background: var(--accent); color: #fff;
  font-size: .72rem; font-weight: 700; letter-spacing: .04em; box-shadow: 0 6px 16px -6px rgba(var(--accent-rgb), .7);
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1024px) {


}

@media (max-width: 860px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 26px; font-size: 1.3rem;
    background: rgba(255, 255, 255, 0.97); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    clip-path: circle(0 at calc(100% - 42px) 36px); transition: clip-path .7s var(--ease);
  }
  .nav.is-open .nav__links { clip-path: circle(150% at calc(100% - 42px) 36px); }
  .nav.is-open { background: transparent; box-shadow: none; backdrop-filter: none; }

  .hero__inner, .about, .contact { grid-template-columns: 1fr; }
  .hero__inner { text-align: center; gap: 50px; }
  .hero__text { order: 2; }
  .hero__photo { order: 1; width: min(340px, 78%); }

  .about__photo--pair { gap: 10px; }
  .about__photo--pair .about__photo2 { margin-top: 36px; }
  .hero__pitch { margin-inline: auto; }
  .hero__cta { justify-content: center; }
  .scroll-hint { display: none; }

  .about, .about:has(.about__photo--pair) { grid-template-columns: 1fr; gap: 80px; }
  .about__photo { max-width: 560px; margin: 0 auto; width: 100%; }
  .about__photo::before { inset: 16px -12px -12px 16px; }
  .contact { gap: 50px; }
}

@media (max-width: 600px) {
  .container { width: calc(100% - 32px); }
  .skills, .services { grid-template-columns: 1fr; }
  .videos { grid-template-columns: 1fr; }
  .float-badge { font-size: .74rem; padding: 7px 11px; }
  .stat__num { font-size: 1.35rem; }
  .lightbox { padding: 60px 12px; }
  .lightbox__nav { top: auto; bottom: 18px; translate: none; }
  .lightbox__nav--prev { left: calc(50% - 64px); }
  .lightbox__nav--next { right: calc(50% - 64px); }
  .btn { padding: 13px 22px; }
}

/* Respect people who turn off animations in their device settings */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal, .load-in { opacity: 1; transform: none; }
  .sig path { stroke-dashoffset: 0; opacity: 1; }
  .sig circle { transform: none; }
}
