
:root {
  --cyan: #06b6d4;          /* main color: buttons, links */
  --cyan-rgb: 6, 182, 212;
  --cyan-deep: #0e7490;     /* darker cyan for text so it stays readable */
  --sky: #7dd3fc;           /* soft light blue */
  --ice: #effaff;           /* light blue section background */
  --mist: #dff5fd;          /* slightly stronger light blue */
  --blush: #fbcfe8;         /* tiny touch of pink */
  --white: #ffffff;
  --text: #0c2a3b;
  --muted: #557488;
  --border: rgba(12, 42, 59, 0.09);
  --gradient: linear-gradient(135deg, #0891b2, #22c3e6 55%, #67d5f5);
  --radius: 24px;
  --shadow: 0 24px 50px -28px rgba(8, 102, 140, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Nunito", system-ui, sans-serif;
  --font-script: "Great Vibes", cursive;
  --font-caps: "Cinzel", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font: 400 1.02rem/1.7 var(--font-body); color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.no-scroll, body.is-loading { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
p { margin: 0 0 14px; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
.container { width: min(1140px, 100% - 40px); margin-inline: auto; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.logo__script { font-family: var(--font-script); font-size: 104px; }
.logo__caps { font-family: var(--font-caps); font-size: 15px; font-weight: 600; letter-spacing: 7px; }
.script { font-family: var(--font-script); font-weight: 400; color: var(--cyan); }

/* Highlighted word: soft light-blue marker under the text */
mark {
  background: linear-gradient(transparent 60%, rgba(var(--cyan-rgb), .22) 60%, rgba(var(--cyan-rgb), .22) 92%, transparent 92%);
  color: inherit; padding: 0 .08em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 28px; border-radius: 999px;
  background: var(--gradient); color: #fff; font-weight: 800; box-shadow: 0 14px 28px -12px rgba(var(--cyan-rgb), .75);
  transition: transform .4s var(--bounce), box-shadow .35s;
}
.btn:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 20px 34px -12px rgba(var(--cyan-rgb), .85); }
.btn--small { padding: 10px 20px; font-size: .92rem; }
.btn--light { background: #fff; color: var(--cyan-deep); box-shadow: 0 0 0 1.5px rgba(var(--cyan-rgb), .35) inset; }
.btn--light:hover { background: var(--ice); box-shadow: 0 0 0 1.5px var(--cyan) inset; }
.btn--full { width: 100%; }

/* =====================================================================
   INTRO: the big C you click to open the site
   ===================================================================== */
.intro {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; align-content: center; gap: 26px;
  background: radial-gradient(circle at 50% 45%, #ffffff 0%, #eefaff 45%, #d6f3fc 100%); overflow: hidden;
}
body:not(.is-loading) .intro { opacity: 0; visibility: hidden; transition: opacity .8s ease .15s, visibility .9s; }
.intro__c { width: min(260px, 62vw); position: relative; z-index: 2; transition: transform .5s var(--bounce), filter .4s; }
.intro__c svg { display: block; width: 100%; height: auto; overflow: visible; }
.intro__sweep { stroke-dasharray: 1; stroke-dashoffset: 1; }
/* Starts once the page is ready (main.js adds .is-writing) */
.intro.is-writing .intro__sweep { animation: write 1.7s cubic-bezier(.55, .1, .3, 1) forwards; }
@keyframes write { to { stroke-dashoffset: 0; } }
.intro.is-ready .intro__sweep { stroke-dashoffset: 0; }
.intro.is-ready .intro__c { animation: breathe 2.6s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
.intro.is-ready .intro__c:hover { animation: none; transform: scale(1.07) rotate(-4deg); filter: drop-shadow(0 10px 30px rgba(var(--cyan-rgb), .45)); }
.intro__c:focus-visible { outline: 2px dashed var(--cyan); outline-offset: 8px; }
.intro__hint { margin: 0; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; font-size: .78rem; color: var(--muted); opacity: 0; transition: opacity .6s; position: relative; z-index: 2; }
.intro__hint span { font-family: var(--font-script); text-transform: none; font-size: 1.7rem; letter-spacing: 0; color: var(--cyan); margin: 0 .35em 0 .15em; }
.intro.is-ready .intro__hint { opacity: 1; animation: nudge 2.4s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
/* Floating bubbles behind the C */
.intro__bubbles span { position: absolute; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #fff, rgba(125, 211, 252, .45)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8); animation: drift 9s ease-in-out infinite; }
.intro__bubbles span:nth-child(1) { width: 140px; height: 140px; left: 12%; top: 18%; }
.intro__bubbles span:nth-child(2) { width: 70px; height: 70px; right: 16%; top: 22%; animation-delay: -3s; }
.intro__bubbles span:nth-child(3) { width: 200px; height: 200px; right: 8%; bottom: 8%; animation-delay: -5s; opacity: .7; }
.intro__bubbles span:nth-child(4) { width: 46px; height: 46px; left: 22%; bottom: 20%; animation-delay: -2s; }
.intro__bubbles span:nth-child(5) { width: 90px; height: 90px; left: 48%; top: 6%; animation-delay: -7s; opacity: .6; }
@keyframes drift { 0%, 100% { translate: 0 0; } 50% { translate: 12px -22px; } }
/* Leaving: a light-blue circle grows out of the C and fills the screen */
.intro__burst { position: absolute; left: var(--bx, 50%); top: var(--by, 50%); width: 60px; height: 60px; margin: -30px 0 0 -30px; border-radius: 50%; background: var(--gradient); transform: scale(0); z-index: 1; }
.intro.is-leaving .intro__burst { transition: transform .8s cubic-bezier(.7, 0, .3, 1); transform: scale(var(--burst, 40)); }
.intro.is-leaving .intro__c, .intro.is-leaving .intro__hint { transition: opacity .35s, transform .5s var(--ease); opacity: 0; transform: scale(.9); }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: 76px; }
.nav::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s; background: rgba(255, 255, 255, .85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 10px 30px -20px rgba(8, 102, 140, .4); }
.nav.is-scrolled::before { opacity: 1; }
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav__logo svg { display: block; height: 56px; width: auto; overflow: visible; transition: transform .4s var(--bounce); }
.nav__logo:hover svg { transform: rotate(-4deg) scale(1.05); }
.nav__links { display: flex; align-items: center; gap: 30px; color: var(--muted); font-weight: 700; font-size: .96rem; }
.nav__links a:not(.btn) { position: relative; }
.nav__links a:not(.btn)::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--cyan); transform: scale(0); transition: transform .3s var(--bounce); }
.nav__links a:not(.btn):hover, .nav__links a.is-active { color: var(--cyan-deep); }
.nav__links a.is-active::after, .nav__links a:not(.btn):hover::after { transform: scale(1); }
.nav__toggle { display: none; width: 46px; height: 46px; position: relative; z-index: 2; border-radius: 50%; background: #fff; box-shadow: var(--shadow); }
.nav__toggle span { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: var(--cyan-deep); transition: transform .35s var(--ease); }
.nav__toggle span:first-child { top: 19px; }
.nav__toggle span:last-child { top: 26px; }
.nav.is-open .nav__toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 130px 0 0; overflow: hidden; isolation: isolate; background: linear-gradient(180deg, #f2fbff 0%, #ffffff 100%); }
.blobs span { position: absolute; z-index: -1; border-radius: 50%; filter: blur(50px); opacity: .7; animation: drift 12s ease-in-out infinite; }
.blobs span:nth-child(1) { width: 460px; height: 460px; right: -80px; top: -60px; background: #bdeefc; }
.blobs span:nth-child(2) { width: 320px; height: 320px; left: -120px; bottom: 40px; background: #d5f1ff; animation-delay: -4s; }
.blobs span:nth-child(3) { width: 200px; height: 200px; left: 46%; top: 30%; background: #fde2f1; opacity: .45; animation-delay: -8s; }
.hero__inner > *, .about > *, .contact > * { min-width: 0; }
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; padding-bottom: 70px; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid rgba(var(--cyan-rgb), .25); font-size: .88rem; font-weight: 700; color: var(--cyan-deep); margin-bottom: 18px; box-shadow: 0 8px 20px -14px rgba(var(--cyan-rgb), .6); }
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .2); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(34, 197, 94, .08); } }
.hero__hi { font: 600 clamp(1.3rem, 2.4vw, 1.6rem) var(--font-head); margin: 0 0 4px; }
.hero__hi .script { font-size: 2.3em; line-height: .8; vertical-align: -.12em; display: inline-block; animation: wave 2.8s ease-in-out 1s 2; transform-origin: 30% 80%; }
@keyframes wave { 0%, 100% { rotate: 0deg; } 25% { rotate: -6deg; } 75% { rotate: 4deg; } }
.hero__title { font-size: clamp(2rem, 3.9vw, 3rem); margin-bottom: 20px; }
.hero__title mark { background: none; color: var(--cyan-deep); position: relative; white-space: nowrap; }
.hero__title mark::after { content: ""; position: absolute; left: 0; right: 0; bottom: .04em; height: .3em; z-index: -1; border-radius: 1em; background: rgba(125, 211, 252, .55); transform: scaleX(0); transform-origin: left; animation: underline 1s .4s var(--ease) forwards; }
body.is-loading .hero__title mark::after { animation-play-state: paused; }
@keyframes underline { to { transform: scaleX(1); } }
.hero__intro { font-size: 1.1rem; color: var(--muted); max-width: 520px; margin-bottom: 28px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero__stats { display: flex; gap: 14px; flex-wrap: wrap; }
.stat { padding: 14px 20px; border-radius: 20px; background: #fff; border: 1px solid var(--border); box-shadow: 0 12px 30px -24px rgba(8, 102, 140, .6); transition: transform .4s var(--bounce); }
.stat:hover { transform: translateY(-4px) rotate(-1deg); }
.stat__num { font: 700 1.9rem/1 var(--font-head); color: var(--cyan-deep); }
.stat__num span { color: var(--cyan); }
.stat__label { font-size: .84rem; color: var(--muted); margin-top: 6px; font-weight: 600; }

.hero__photo { position: relative; justify-self: center; width: min(420px, 100%); }
.photo-ring { position: relative; border-radius: 50%; padding: 12px; background: conic-gradient(from 0deg, #67d5f5, #fff, #06b6d4, #bdeefc, #67d5f5); animation: spin 14s linear infinite; }
.photo-ring img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 8px solid #fff; background: var(--ice); animation: spin 14s linear infinite reverse; }
@keyframes spin { to { rotate: 360deg; } }
.chip { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: #fff; color: var(--text); font-size: .88rem; font-weight: 800; box-shadow: var(--shadow); animation: float 5s ease-in-out infinite; white-space: nowrap; }
.chip--status { top: 6%; left: -6%; }
.chip--status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .18); }
.chip--status:empty { display: none; }
.chip--loc { bottom: 8%; right: -4%; color: var(--cyan-deep); animation-delay: -2.5s; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.sparkle { position: absolute; fill: var(--cyan); animation: twinkle 2.6s ease-in-out infinite; }
.sparkle--1 { width: 30px; right: 6%; top: 2%; }
.sparkle--2 { width: 20px; left: 4%; bottom: 14%; fill: #f9a8d4; animation-delay: -1.3s; }
@keyframes twinkle { 0%, 100% { transform: scale(1) rotate(0); opacity: 1; } 50% { transform: scale(.55) rotate(45deg); opacity: .6; } }

/* Tools strip at the bottom of the hero */
.tools-strip { padding: 20px 0 26px; overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.tools-strip__track { display: flex; gap: 12px; width: max-content; animation: marquee 60s linear infinite; }
.tools-strip__track span { padding: 8px 18px; border-radius: 999px; background: #fff; border: 1px solid rgba(var(--cyan-rgb), .22); color: var(--cyan-deep); font-weight: 700; font-size: .92rem; white-space: nowrap; }
.tools-strip:hover .tools-strip__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(76px, 10vw, 112px) 0; position: relative; }
.section--tint { background: var(--ice); }
.section--sky { background: linear-gradient(160deg, #e3f7fe, #f4fcff 60%, #fdf2f8); }
.head { text-align: center; max-width: 640px; margin: 0 auto 50px; }
.eyebrow { display: inline-block; font: 400 1.9rem/1 var(--font-script); color: var(--cyan); margin-bottom: 6px; }
.title { font-size: clamp(1.9rem, 4vw, 2.9rem); }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
.about__text .title { margin-bottom: 22px; }
.about__text p { color: var(--muted); font-size: 1.06rem; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.fact { display: flex; gap: 16px; align-items: center; padding: 20px 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--border); box-shadow: 0 16px 36px -28px rgba(8, 102, 140, .55); transition: transform .4s var(--bounce); }
.fact:nth-child(2) { margin-left: 28px; }
.fact:hover { transform: translateX(6px); }
.fact__icon { flex: none; width: 50px; height: 50px; display: grid; place-items: center; border-radius: 16px; background: var(--mist); color: var(--cyan-deep); }
.fact h3 { font-size: 1.05rem; margin-bottom: 2px; }
.fact p { margin: 0; color: var(--muted); font-size: .94rem; line-height: 1.5; }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service { position: relative; padding: 30px 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--border); transition: transform .45s var(--bounce), box-shadow .45s; }
.service:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.service__icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 18px; background: var(--mist); color: var(--cyan-deep); margin-bottom: 18px; transition: background .4s, color .4s, transform .5s var(--bounce); }
.service:hover .service__icon { background: var(--gradient); color: #fff; transform: rotate(-8deg) scale(1.08); }
.service h3 { font-size: 1.22rem; margin-bottom: 8px; }
.service p { color: var(--muted); font-size: .96rem; margin: 0; }

/* ---------- Skills ---------- */
.skills { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.skill { padding: 26px 24px; border-radius: var(--radius); background: linear-gradient(170deg, var(--ice), #fff 70%); border: 1px solid rgba(var(--cyan-rgb), .18); }
.skill h3 { font-size: 1.2rem; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.skill h3::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--gradient); box-shadow: 0 0 0 5px rgba(var(--cyan-rgb), .15); }
.skill ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.skill li { padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--border); font-size: .88rem; font-weight: 600; transition: background .3s, color .3s; }
.skill li:hover { background: var(--cyan); color: #fff; border-color: var(--cyan); }

/* ---------- Experience timeline ---------- */
.timeline { list-style: none; margin: 0 auto; padding: 0; max-width: 900px; position: relative; }
.timeline::before { content: ""; position: absolute; top: 8px; bottom: 8px; left: 50%; width: 3px; translate: -1.5px 0; border-radius: 3px; background: linear-gradient(var(--cyan), rgba(var(--cyan-rgb), .1)); }
.job { position: relative; width: calc(50% - 40px); padding: 24px 26px; margin-bottom: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--border); box-shadow: 0 16px 40px -30px rgba(8, 102, 140, .55); transition: transform .4s var(--bounce); }
.job:hover { transform: translateY(-4px); }
.job:nth-child(odd) { margin-right: auto; }
.job:nth-child(even) { margin-left: auto; }
.job::before { content: ""; position: absolute; top: 28px; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 4px solid var(--cyan); box-shadow: 0 0 0 6px var(--ice); }
.job:nth-child(odd)::before { right: -50px; }
.job:nth-child(even)::before { left: -50px; }
.job:first-child::before { background: var(--cyan); animation: pulseRing 2s ease-in-out infinite; }
@keyframes pulseRing { 50% { box-shadow: 0 0 0 10px rgba(var(--cyan-rgb), .15); } }
.job__dates { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--mist); color: var(--cyan-deep); font-size: .8rem; font-weight: 800; margin-bottom: 10px; }
.job h3 { font-size: 1.15rem; }
.job__company { font-weight: 800; color: var(--cyan-deep); margin: 4px 0 10px; font-size: .95rem; }
.job p:last-child { color: var(--muted); font-size: .94rem; margin: 0; }

/* ---------- Work ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: -20px 0 34px; }
.filter { padding: 9px 20px; border-radius: 999px; background: var(--ice); font-weight: 700; font-size: .92rem; color: var(--cyan-deep); transition: all .3s var(--bounce); }
.filter:hover { transform: translateY(-2px); background: var(--mist); }
.filter.is-active { background: var(--gradient); color: #fff; box-shadow: 0 10px 20px -10px rgba(var(--cyan-rgb), .8); }
.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.work { position: relative; display: block; text-align: left; width: 100%; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--border); padding: 8px; transition: transform .4s var(--bounce); box-shadow: 0 16px 36px -28px rgba(8, 102, 140, .6); animation: workIn .55s var(--bounce) both; animation-delay: var(--d, 0s); }
@keyframes workIn { from { opacity: 0; transform: translateY(20px) scale(.96); } }
.work.is-hidden { display: none; }
.work:hover { transform: translateY(-6px) rotate(-.6deg); }
.work img { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; object-position: top; border-radius: 18px; background: var(--ice); transition: transform .8s var(--ease); }
.work--contain img { object-fit: contain; background: #fff; }
.work:hover img { transform: scale(1.03); }
.work__info { padding: 12px 10px 6px; }
.work__info span { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); }
.work__info h3 { font: 700 1rem/1.3 var(--font-body); color: var(--text); }
.work__play { position: absolute; left: 50%; top: 38%; width: 58px; height: 58px; margin: -29px 0 0 -29px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--cyan); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .4); transition: transform .4s var(--bounce); }
.work:hover .work__play { transform: scale(1.15); }
.more { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 60px 20px 30px; background: rgba(224, 246, 253, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: fadeIn .3s ease; }
@keyframes fadeIn { from { opacity: 0; } }
.lightbox figure { margin: 0; max-width: min(960px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; animation: workIn .45s var(--bounce); }
.lightbox img { max-height: calc(100vh - 150px); width: auto; border-radius: 18px; box-shadow: var(--shadow); background: #fff; }
.lightbox figcaption { font: 700 1.05rem var(--font-body); color: var(--cyan-deep); }
.lightbox__close { position: absolute; top: 16px; right: 16px; width: 46px; height: 46px; border-radius: 50%; background: #fff; font-size: 1.8rem; line-height: 1; color: var(--cyan-deep); box-shadow: var(--shadow); }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; list-style: none; margin: 0; padding: 0; position: relative; }
.process::before { content: ""; position: absolute; top: 32px; left: 12%; right: 12%; height: 2px; background: repeating-linear-gradient(90deg, rgba(var(--cyan-rgb), .45) 0 8px, transparent 8px 16px); }
.step { position: relative; text-align: center; padding: 0 8px; }
.step__num { width: 64px; height: 64px; margin: 0 auto 20px; display: grid; place-items: center; border-radius: 50%; background: #fff; border: 2px solid var(--sky); font: 700 1.3rem var(--font-head); color: var(--cyan-deep); box-shadow: 0 0 0 8px rgba(var(--cyan-rgb), .1); position: relative; transition: all .4s var(--bounce); }
.step:hover .step__num { background: var(--gradient); color: #fff; border-color: transparent; transform: scale(1.1) rotate(-6deg); }
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .95rem; }

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; max-width: 920px; margin: 0 auto; }
.review { padding: 32px; border-radius: var(--radius); background: #fff; border: 1px solid var(--border); }
.review__stars { color: #f5b301; letter-spacing: 3px; margin-bottom: 14px; }
.review blockquote { margin: 0 0 22px; font-size: 1.05rem; }
.review__who { display: flex; align-items: center; gap: 12px; }
.review__avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--gradient); color: #fff; font: 700 1rem var(--font-head); }
.review__who strong { display: block; }
.review__who span { color: var(--muted); font-size: .9rem; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact__info .title { margin-bottom: 18px; }
.contact__info > p { color: var(--muted); }
.contact__email { display: inline-block; margin: 10px 0 22px; font: 700 clamp(1.1rem, 2.4vw, 1.4rem) var(--font-body); color: var(--cyan-deep); border-bottom: 2px solid rgba(var(--cyan-rgb), .35); word-break: break-all; }
.contact__email:hover { color: var(--cyan); }
.contact__phone { display: flex; align-items: center; gap: 8px; margin: -8px 0 24px; font-weight: 700; }
.contact__phone svg { color: var(--cyan); }
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.social { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: var(--ice); font-weight: 700; transition: all .35s var(--bounce); }
.social:hover { background: var(--cyan); color: #fff; transform: translateY(-3px); }
.social svg { color: var(--cyan); transition: color .3s; }
.social:hover svg { color: #fff; }
.form { padding: clamp(26px, 4vw, 40px); border-radius: 30px; background: var(--ice); border: 1px solid rgba(var(--cyan-rgb), .15); }
.field { display: block; margin-bottom: 16px; }
.field span { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.field input, .field textarea { width: 100%; padding: 14px 18px; border-radius: 16px; border: 1.5px solid transparent; background: #fff; font: inherit; color: var(--text); transition: border-color .3s, box-shadow .3s; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(var(--cyan-rgb), .15); }
.field.is-error input, .field.is-error textarea { border-color: #e11d48; }
.form__status { margin: 12px 0 0; text-align: center; font-size: .92rem; min-height: 1.4em; }
.form__status.ok { color: #15803d; }
.form__status.err { color: #e11d48; }

/* ---------- Footer ---------- */
.footer { background: linear-gradient(180deg, #fff, var(--ice)); border-top: 1px solid var(--border); color: var(--muted); padding: 34px 0 30px; font-size: .92rem; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer__logo { width: 210px; height: auto; overflow: visible; }
.footer p { margin: 0; }
.footer__credit { font-size: .78rem; opacity: .8; margin-top: 4px !important; }
.footer a { font-weight: 700; color: var(--cyan-deep); }
.footer a:hover { color: var(--cyan); }

/* ---------- Music button ---------- */
.music { position: fixed; left: 20px; bottom: 20px; z-index: 40; display: flex; align-items: center; gap: 10px; }
.music__btn { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: #fff; border: 1.5px solid rgba(var(--cyan-rgb), .35); box-shadow: var(--shadow); transition: transform .4s var(--bounce); }
.music__btn:hover { transform: scale(1.1) rotate(-6deg); }
.music.is-playing .music__btn { background: var(--gradient); border-color: transparent; animation: musicPulse 2s ease-in-out infinite; }
@keyframes musicPulse { 50% { box-shadow: 0 0 0 10px rgba(var(--cyan-rgb), .15); } }
.music__bars { display: flex; align-items: flex-end; gap: 3px; height: 18px; }
.music__bars i { width: 3px; height: 30%; border-radius: 2px; background: var(--cyan); transition: height .3s; }
.music.is-playing .music__bars i { background: #fff; 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; }
@keyframes eq { 0%, 100% { height: 25%; } 50% { height: 100%; } }
.music__label { padding: 7px 14px; border-radius: 999px; background: #fff; box-shadow: var(--shadow); font-size: .85rem; font-weight: 700; color: var(--cyan-deep); white-space: nowrap; opacity: 0; transform: translateX(-8px); transition: opacity .35s, transform .35s var(--ease); pointer-events: none; }
.music:hover .music__label, .music.show-label .music__label { opacity: 1; transform: none; }

/* Image not added yet: show a soft blue box with the file name */
.img-missing { position: relative; }
.img-missing img { opacity: 0; }
.img-missing::after {
  content: attr(data-file) "\A add this image to the folder"; white-space: pre; position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  font: 600 .85rem/1.5 var(--font-body); color: var(--cyan-deep); border-radius: inherit;
  background: repeating-linear-gradient(135deg, var(--ice) 0 14px, var(--mist) 14px 28px);
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Tablet & phone ---------- */
@media (max-width: 960px) {
  .skills { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 26px; font-size: 1.3rem;
    background: linear-gradient(160deg, #fff, var(--ice)); clip-path: circle(0 at calc(100% - 43px) 38px); transition: clip-path .6s var(--ease);
  }
  .nav.is-open .nav__links { clip-path: circle(150% at calc(100% - 43px) 38px); }
  .nav.is-open::before { opacity: 0; }
  .hero__inner, .about, .contact { grid-template-columns: 1fr; }
  .hero { padding-top: 110px; }
  .hero__inner { gap: 46px; padding-bottom: 50px; }
  .hero__photo { width: min(340px, 82%); order: -1; }
  .services, .works { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .process::before { display: none; }
  .about { gap: 40px; }
  .fact:nth-child(2) { margin-left: 0; }
  .timeline::before { left: 8px; }
  .job, .job:nth-child(odd), .job:nth-child(even) { width: auto; margin-left: 38px; margin-right: 0; }
  .job:nth-child(odd)::before, .job:nth-child(even)::before { left: -39px; right: auto; }
}
@media (max-width: 600px) {
  .container { width: calc(100% - 32px); }
  .services, .works, .process, .skills { grid-template-columns: 1fr; }
  .hero__stats { gap: 10px; }
  .stat { padding: 12px 14px; flex: 1; }
  .stat__num { font-size: 1.6rem; }
  .chip { font-size: .78rem; padding: 8px 12px; }
  .chip--status { left: -8%; }
  .chip--loc { right: -6%; }
  .nav__logo svg { height: 48px; }
  .footer__inner { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
