/* =========================================================
   DailyFlutterUI — Clean & Simple Light Theme
   ========================================================= */

:root {
  --bg:        #ffffff;
  --bg-soft:   #f7f7f9;
  --surface:   #ffffff;
  --surface-2: #f2f2f5;
  --border:    #e8e8ee;
  --border-2:  #d9d9e2;
  --text:      #111114;
  --muted:     #5c5f6b;
  --faint:     #8b8e9a;
  --accent:    #1161a5;
  --accent-soft: rgba(17, 97, 165, 0.10);
  --dark:      #18181b;
  --radius:    16px;
  --radius-lg: 22px;
  --radius-sm: 11px;
  --maxw:      1100px;
  --shadow:    0 1px 2px rgba(17,17,20,.05), 0 12px 28px -14px rgba(17,17,20,.14);
  --ease:      cubic-bezier(.21, .8, .35, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

h1, h2, h3 { font-family: 'Sora', sans-serif; line-height: 1.12; letter-spacing: -0.03em; font-weight: 800; color: var(--text); }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.accent { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 600; font-size: .95rem; padding: .82rem 1.5rem;
  border-radius: 10px; transition: transform .2s var(--ease), background .2s, border-color .2s, color .2s;
  white-space: nowrap; border: 1px solid transparent;
}
.btn--sm { padding: .55rem 1.05rem; font-size: .88rem; }
.btn--primary { background: var(--dark); color: #fff; }
.btn--primary:hover { background: #000; transform: translateY(-2px); }
.btn--ghost { border-color: var(--border-2); color: var(--text); background: #fff; }
.btn--ghost:hover { background: var(--surface-2); border-color: var(--faint); transform: translateY(-2px); }
.btn svg { width: 17px; height: 17px; }

/* ---------- Navbar ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 0; transition: background .3s, padding .3s, border-color .3s, box-shadow .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--border); padding: 11px 0;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-family: 'Sora'; font-weight: 700; font-size: 1.1rem; letter-spacing: -.02em; }
.nav__links { display: flex; align-items: center; gap: .2rem; }
.nav__links a:not(.btn) {
  position: relative; color: var(--muted); font-weight: 500; font-size: .94rem;
  padding: .5rem .85rem; transition: color .2s;
}
.nav__links a:not(.btn)::after {
  content: ''; position: absolute; left: .85rem; right: .85rem; bottom: .15rem; height: 2px;
  background: var(--accent); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav__links a:not(.btn):hover { color: var(--text); }
.nav__links a:not(.btn):hover::after,
.nav__links a:not(.btn).active::after { transform: scaleX(1); }
.nav__links a:not(.btn).active { color: var(--text); }
.nav__links .btn { margin-left: .5rem; }

/* simple blue "BUY NOW" text link in the navbar */
.nav__links a.nav__buy { color: var(--accent); font-weight: 600; }
.nav__links a.nav__buy:hover { color: var(--accent); }

.nav__toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav__toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s var(--ease); }
.nav__toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.active span:nth-child(2) { opacity: 0; }
.nav__toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Sections ---------- */
.section { padding: 100px 0; position: relative; }
section[id] { scroll-margin-top: 80px; }   /* keep titles clear of the fixed navbar */
.section--alt { background: var(--bg-soft); border-block: 1px solid var(--border); }
.section__head { max-width: 600px; margin: 0 auto 56px; text-align: center; }
.section__title { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
.section__lead { color: var(--muted); margin-top: 1rem; font-size: 1.05rem; }

/* ---------- Hero ---------- */
.hero { padding-top: 150px; padding-bottom: 90px; }
.hero__inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero__greet {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: 1rem; color: var(--muted); font-weight: 500; margin-bottom: 1.1rem;
}
.hero__greet .wave { font-size: 1.15rem; }

.hero__title { font-size: clamp(2.6rem, 6vw, 4.2rem); letter-spacing: -.035em; }
.hero__sub { color: var(--muted); font-size: 1.12rem; margin-top: 1.4rem; max-width: 460px; line-height: 1.7; }
.hero__sub strong { color: var(--text); font-weight: 600; }
.hero__cta { display: flex; gap: .8rem; margin-top: 2.2rem; flex-wrap: wrap; }


/* Hero visual — circular framed photo with accent ring */
.hero__visual { display: flex; justify-content: center; }
.photo {
  width: min(280px, 70vw); aspect-ratio: 1 / 1; border-radius: 50%;
  overflow: hidden; padding: 6px;
  border: 2px solid var(--accent);
  background: var(--bg);
}
.photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* ---------- Card base ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-2); box-shadow: var(--shadow); }

/* Skills — lets the browser animate a custom % property smoothly (used by the ring) */
@property --pct {
  syntax: '<number>';
  inherits: true;
  initial-value: 0;
}

/* Skills — sliding-pill filter tabs */
.skills-tabs {
  position: relative; display: inline-flex; flex-wrap: wrap; gap: .1rem;
  padding: .3rem; margin: -0.4rem 0 2.4rem; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border);
}
.skills-tabs__pill {
  position: absolute; top: .3rem; bottom: .3rem; left: 0; width: 0;
  border-radius: 999px; background: var(--dark);
  box-shadow: 0 6px 16px -6px rgba(17,17,20,.4);
  transition: left .4s var(--ease), width .4s var(--ease);
  z-index: 0;
}
.skill-tab {
  position: relative; z-index: 1;
  font-family: 'Sora', sans-serif; font-size: .82rem; font-weight: 600; letter-spacing: -0.01em;
  padding: .58rem 1.15rem; border-radius: 999px; color: var(--muted);
  transition: color .3s var(--ease);
}
.skill-tab:hover { color: var(--text); }
.skill-tab.active { color: #fff; }

/* Skill card grid — mosaic of card sizes so mastered skills read as mastered */
.skills-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-flow: dense;
}
.skill-card--lg { grid-column: span 2; }

/* Skill card — glass tile with a cursor-tracked glow and a slight 3D tilt */
.skill-card {
  --cat: var(--accent);
  --mx: 50%; --my: 30%;
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 1.1rem;
  padding: 1.3rem 1.35rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  transform: perspective(700px) rotateX(0) rotateY(0);
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
  will-change: transform;
}
.skill-card::before {
  content: ''; position: absolute; inset: 0; z-index: 0; opacity: 0;
  background: radial-gradient(220px circle at var(--mx) var(--my), color-mix(in srgb, var(--cat) 16%, transparent), transparent 70%);
  transition: opacity .4s var(--ease);
}
.skill-card:hover {
  border-color: color-mix(in srgb, var(--cat) 45%, var(--border-2));
  box-shadow: 0 20px 40px -22px color-mix(in srgb, var(--cat) 45%, transparent), var(--shadow);
}
.skill-card:hover::before { opacity: 1; }

/* Ring — a conic-gradient progress dial in the skill's category color */
.skill-ring {
  --pct: 0;
  position: relative; z-index: 1; flex: none;
  width: 64px; height: 64px; border-radius: 50%;
  background: conic-gradient(var(--cat) calc(var(--pct) * 1%), var(--surface-2) 0);
  transition: --pct 1.2s var(--ease);
  display: grid; place-items: center;
}
.skill-ring::after {
  content: ''; position: absolute; inset: 6px; border-radius: 50%;
  background: var(--surface);
}
.skill-ring__num {
  position: relative; z-index: 1;
  font-family: 'Sora', sans-serif; font-weight: 700; font-size: .84rem; color: var(--text);
}
.skill-card--lg .skill-ring { width: 72px; height: 72px; }

.skill-card__body { position: relative; z-index: 1; min-width: 0; }
.skill-card__cat {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .7rem; font-weight: 600; color: var(--cat);
  letter-spacing: .01em; margin-bottom: .25rem;
}
.skill-card__cat::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--cat);
}
.skill-card h3 {
  font-size: 1rem; line-height: 1.28;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 960px) {
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .skill-card--lg { grid-column: span 2; }
}
@media (max-width: 560px) {
  .skills-tabs {
    flex-wrap: nowrap; overflow-x: auto; max-width: 100%;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .skills-tabs::-webkit-scrollbar { display: none; }
  .skill-tab { flex: 0 0 auto; white-space: nowrap; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .skill-card--lg { grid-column: span 2; }
  .skill-card {
    flex-direction: column; align-items: flex-start; text-align: left;
    gap: .55rem; padding: 1rem .9rem;
    transform: none !important;
  }
  .skill-ring { width: 46px; height: 46px; }
  .skill-ring__num { font-size: .72rem; }
  .skill-card--lg .skill-ring { width: 50px; height: 50px; }
  .skill-card__cat { font-size: .62rem; }
  .skill-card h3 { font-size: .84rem; }
}
@media (prefers-reduced-motion: reduce) {
  .skill-card, .skills-tabs__pill { transition: none; }
  .skill-ring { transition: none; }
}

/* ---------- Project card (real shipped apps) ---------- */
/* Flexible grid: fills the row no matter how many apps (no lone trailing card) */
.projects-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); }
.project-card { padding: 0; overflow: hidden; }
.project-card__media {
  position: relative; aspect-ratio: 16 / 9.2; background: var(--surface-2);
  display: grid; place-items: center; overflow: hidden;
}
.project-card__media img { width: 100%; height: 100%; object-fit: cover; }
/* lettered fallback when the screenshot is missing */
.project-card__media.no-img::after {
  content: attr(data-initial);
  font-family: 'Sora'; font-weight: 800; font-size: 3rem; color: var(--accent);
  background: var(--accent-soft); width: 100%; height: 100%; display: grid; place-items: center;
}
.project-card__body { padding: 22px 24px 24px; }
.project-card__body h3 { font-size: 1.15rem; }
.project-card__body p { color: var(--muted); font-size: .93rem; margin-top: .3rem; }

.store-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 1.2rem; }

/* ---------- Review / testimonial card ---------- */
.review-card { display: flex; flex-direction: column; }
.stars { display: flex; gap: .15rem; margin-bottom: 1rem; }
.star { color: var(--border-2); display: inline-flex; }
.star svg { width: 17px; height: 17px; }
.star.on { color: #f5b50a; }
.review-card__quote { color: var(--text); font-size: .98rem; line-height: 1.7; flex: 1; }
.review-card__person { display: flex; align-items: center; gap: .8rem; margin-top: 1.4rem; }
.avatar {
  width: 46px; height: 46px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  display: grid; place-items: center; background: var(--surface-2);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--letter { background: var(--accent-soft); color: var(--accent); font-family: 'Sora'; font-weight: 700; }
.review-card__meta { display: flex; flex-direction: column; line-height: 1.3; }
.review-card__meta strong { font-size: .95rem; }

/* ---------- Scrolling reviews marquee ---------- */
.reviews-marquee {
  overflow: hidden;
  width: 100%;
  /* Fade the edges so cards slide in and out softly. */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
}
.reviews-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: reviews-scroll 55s linear infinite;
  will-change: transform;
}
/* Pause the scroll when the visitor hovers so they can read a card. */
.reviews-marquee:hover .reviews-track { animation-play-state: paused; }
.reviews-track .review-card {
  width: 340px;
  max-width: 80vw;
  flex-shrink: 0;
}
/* Two identical copies sit in the track, so shifting by half its width loops seamlessly. */
@keyframes reviews-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .reviews-track { animation: none; }
}

/* ---------- Contact CTA ---------- */
.cta {
  text-align: center; max-width: 640px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 56px 40px; box-shadow: var(--shadow);
}
.cta__title { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
.cta__sub { color: var(--muted); margin-top: 1rem; font-size: 1.05rem; }
.cta__actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }

.field { display: grid; gap: .45rem; }
.field label { font-size: .84rem; color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; padding: .82rem 1rem; border-radius: var(--radius-sm);
  background: var(--bg-soft); border: 1px solid var(--border); color: var(--text);
  font-family: inherit; font-size: .95rem; transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea { resize: vertical; }

/* ---------- Hire Me — option tabs ---------- */
.hire-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 980px; margin: 0 auto 40px; }
.hire-tab {
  position: relative; text-align: left; background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 22px 22px 24px; display: flex; flex-direction: column; gap: .35rem;
  transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.hire-tab:hover { transform: translateY(-3px); border-color: var(--border-2); }
.hire-tab.active { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.hire-tab__title {
  font-family: 'Sora', sans-serif; font-weight: 700; font-size: 1.05rem; padding-right: 3rem;
  display: flex; align-items: center; gap: .45rem;
}
.hire-tab__desc { color: var(--muted); font-size: .86rem; }
.hire-tab__price {
  position: absolute; top: 20px; right: 22px;
  font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.1rem; color: var(--accent);
}
.hire-tab__icon { width: 20px; height: 20px; flex-shrink: 0; color: #95bf47; }
.hire-tab--shopify.active { border-color: #95bf47; box-shadow: 0 0 0 3px rgba(149, 191, 71, .25); }
@media (max-width: 900px) { .hire-tabs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .hire-tabs { grid-template-columns: 1fr; } }

/* ---------- Hire Me — request forms ---------- */
.hire-panels { max-width: 520px; margin: 0 auto; }
.hire-form {
  display: grid; gap: 1.1rem; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow);
}
.hire-form[hidden] { display: none; }
@media (max-width: 560px) { .hire-form { padding: 26px 22px; } }

/* Small heads-up shown at the top of the Ready-Made Project form */
.hire-notice {
  display: flex; gap: .7rem; align-items: flex-start;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: .9rem 1rem;
}
.hire-notice svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; margin-top: .1rem; }
.hire-notice p { font-size: .84rem; color: var(--muted); line-height: 1.6; }
.hire-notice--shopify { border-color: rgba(149, 191, 71, .35); background: rgba(149, 191, 71, .08); }
.hire-notice--shopify svg { color: #95bf47; }

/* Phone number — country selector + number, with a live validation hint */
.phone-field { display: flex; gap: .55rem; }
.phone-field__country { flex: 0 0 132px; padding-inline: .6rem; }
.phone-field input { flex: 1; min-width: 0; }
.field__hint { font-size: .78rem; color: var(--faint); min-height: 1.1rem; }
.field__hint.warn { color: #b45309; }
@media (max-width: 460px) {
  .phone-field { flex-direction: column; }
  .phone-field__country { flex-basis: auto; width: 100%; }
}

/* ---------- Send button ---------- */
.send-btn {
  width: 100%; display: inline-flex; align-items: center; justify-content: center;
  padding: .95rem 1.5rem; border-radius: 10px;
  background: var(--dark); color: #fff; font-weight: 600; font-size: .95rem;
  transition: background .2s;
}
.send-btn:hover:not(:disabled) { background: #000; }
.send-btn:disabled { cursor: default; opacity: .7; }

/* ---------- Send overlay — centered on screen while a request is sent ---------- */
.send-overlay {
  position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center;
  background: rgba(12, 12, 16, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  padding: 24px;
}
.send-overlay.show { display: flex; }
.send-overlay__box {
  position: relative; width: min(360px, 100%); text-align: center;
  background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: 44px 32px;
}
.send-overlay__close {
  position: absolute; top: 14px; right: 14px; width: 32px; height: 32px;
  border-radius: 50%; display: grid; place-items: center; color: var(--muted);
  opacity: 0; pointer-events: none; transition: opacity .3s var(--ease), background .2s, color .2s;
}
.send-overlay__close svg { width: 16px; height: 16px; }
.send-overlay__close:hover { background: var(--surface-2); color: var(--text); }
.send-overlay.sent .send-overlay__close { opacity: 1; pointer-events: auto; transition-delay: .5s; }
.send-overlay__anim { position: relative; width: 64px; height: 64px; margin: 0 auto 22px; }
.send-overlay__plane, .send-overlay__check {
  position: absolute; inset: 0; display: grid; place-items: center;
  opacity: 0; transform: scale(.4);
}
.send-overlay__plane { color: var(--dark); }
.send-overlay__plane svg { width: 40px; height: 40px; }
.send-overlay__check { color: var(--accent); }
.send-overlay__check svg { width: 48px; height: 48px; }

.send-overlay.flying .send-overlay__plane { animation: overlay-plane-fly .9s cubic-bezier(.5, 0, .4, 1) forwards; }
@keyframes overlay-plane-fly {
  0%   { opacity: 0; transform: translate(-46px, 14px) scale(.5) rotate(-10deg); }
  22%  { opacity: 1; transform: translate(-10px, 0) scale(1) rotate(0deg); }
  78%  { opacity: 1; transform: translate(32px, -16px) scale(1) rotate(16deg); }
  100% { opacity: 0; transform: translate(76px, -34px) scale(.6) rotate(22deg); }
}

.send-overlay.sent .send-overlay__check { opacity: 1; transform: scale(1); transition: opacity .15s, transform .15s; }
.send-overlay__check-path { stroke-dasharray: 30; stroke-dashoffset: 30; }
.send-overlay.sent .send-overlay__check-path { stroke-dashoffset: 0; transition: stroke-dashoffset .55s var(--ease) .1s; }

.send-overlay__msg {
  color: var(--muted); font-size: .96rem; line-height: 1.65; min-height: 1.4rem;
  opacity: 0; transform: translateY(6px); transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.send-overlay.sent .send-overlay__msg { opacity: 1; transform: none; transition-delay: .5s; }

@media (prefers-reduced-motion: reduce) {
  .send-overlay.flying .send-overlay__plane { animation: none; opacity: 1; transform: none; }
}

/* ---------- Hire Me — accepted payment methods ---------- */
.pay-methods { margin-top: 52px; text-align: center; }
.pay-methods__label { font-size: .8rem; color: var(--faint); letter-spacing: .04em; margin-bottom: 1.1rem; }
.pay-methods__row { display: flex; justify-content: center; align-items: flex-start; gap: 1.6rem; flex-wrap: wrap; }
.pay-chip { display: flex; flex-direction: column; align-items: center; gap: .5rem; width: 76px; }
.pay-chip__icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
  flex-shrink: 0; overflow: hidden; padding: 8px;
}
.pay-chip__icon img { width: 100%; height: 100%; object-fit: contain; }
/* Shown automatically if a logo image hasn't been added yet at assets/payments/*.png */
.pay-chip--missing .pay-chip__icon {
  border-style: dashed; border-color: var(--border-2); background: var(--surface-2);
}
.pay-chip__label { font-size: .78rem; color: var(--muted); font-weight: 600; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 40px 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer p { color: var(--faint); font-size: .88rem; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; bottom: 26px; right: 26px; z-index: 90;
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border-2); color: var(--text);
  box-shadow: var(--shadow); opacity: 0; pointer-events: none;
  transform: translateY(14px); transition: .3s var(--ease);
}
.to-top svg { width: 18px; height: 18px; }
.to-top:hover { background: var(--surface-2); }
.to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Micro-interactions ---------- */
/* waving hand in the hero greeting */
@keyframes wave {
  0%, 60%, 100% { transform: rotate(0deg); }
  15% { transform: rotate(16deg); }
  30% { transform: rotate(-8deg); }
  45% { transform: rotate(14deg); }
}
.hero__greet .wave { display: inline-block; transform-origin: 70% 80%; animation: wave 2.6s var(--ease) infinite; }

/* subtle zoom on project media when hovering the card */
.project-card__media img { transition: transform .45s var(--ease); }
.project-card:hover .project-card__media img { transform: scale(1.04); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; gap: 44px; text-align: center; }
  .hero__copy { order: 2; }
  .hero__visual { order: 1; }
  .hero__greet, .hero__cta { justify-content: center; }
  .hero__sub { margin-inline: auto; }
}

@media (max-width: 720px) {
  .nav__links {
    position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px); height: 100dvh;
    flex-direction: column; align-items: flex-start; justify-content: center; gap: .5rem;
    background: rgba(255,255,255,.98); backdrop-filter: blur(18px);
    padding: 0 1.6rem; transform: translateX(100%); transition: transform .38s var(--ease);
    border-left: 1px solid var(--border);
  }
  .nav__links.open { transform: translateX(0); }
  .nav__links a:not(.btn) { font-size: 1.05rem; width: 100%; }
  .nav__links .btn { margin: .6rem 0 0; width: 100%; }
  .nav__toggle { display: flex; z-index: 101; }
  .section { padding: 72px 0; }
  .hero { padding-top: 130px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
