/* ============================================================
   styles.css : all the design of the portfolio
   Search the headings below. Pieces marked LANDING PAGE are the
   loading screen and petal animation. Smaller screens are handled
   in the sections named RESPONSIVE.
   ============================================================ */

/* STYLE SHEET MAP (search these headings)
   Floating menu, Hero, Marquee, About, Skills, Projects, Certifications, Contact
   Loading screen and petal transition (LANDING PAGE animation)
   Hobbies scroller, scroll animations, hover effects
   Time of day (light and dark), showcase menu, service packages
   Hero video, responsive rules (small screens) */
/* Layout: floating pill menu, split hero with arched portrait, marquee, about with photo, skills grid, animated project cards, certifications, contact panel. Single pink look on cream. */
:root {
  --dkn: 0;      /* stars */
  --glow: 0;     /* sunrise / sunset sky glow */
  --glowA: rgba(255, 190, 150, 1);
  --glowB: rgba(255, 140, 180, 1);
  --cream: #fff9f7; --white: #ffffff; --blush: #fde8ee; --petal: #f8cfdb;
  --g1: #ffe6ee; --g2: #fbdce6; --g3: #f2a9c2;
  --rose: #c9768e; --rose-deep: #a4506a; --ink: #3a2a30; --muted: #7d6870; --line: #f0d9e0;
  --shadow: rgba(164, 80, 106, 0.28);
  color-scheme: light;

  --font-display: "Fraunces", "Georgia", "Times New Roman", serif;
  --font-body: "Figtree", "Helvetica Neue", Arial, sans-serif;
}
html.dark { color-scheme: dark; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--rose-deep); outline-offset: 3px; border-radius: 6px; }
.gutter {
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.wrap { max-width: 1120px; margin-inline: auto; }
section { padding-block: 96px 0; min-width: 0; }

/* ---------- Floating menu ---------- */
.nav {
  position: sticky;
  top: calc(env(safe-area-inset-top, 0px) + 14px);
  z-index: 20;
  display: flex;
  justify-content: center;
  pointer-events: none;
  margin-top: 14px;
}
.pill {
  pointer-events: auto;
  display: flex; align-items: center; gap: 6px;
  max-width: 100%;
  background: color-mix(in srgb, var(--white) 82%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 8px 6px 18px;
  box-shadow: 0 14px 34px -22px var(--shadow);
}
.logo { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 1.2rem; text-decoration: none; margin-right: 10px; flex: none; color: var(--rose-deep); }
.menu { display: flex; gap: 2px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.menu::-webkit-scrollbar { display: none; }
.menu a {
  font-size: 0.88rem; font-weight: 500; color: var(--muted); text-decoration: none;
  padding: 8px 14px; border-radius: 999px; white-space: nowrap;
  transition: color 0.25s, background 0.25s;
}
.menu a:hover { color: var(--rose-deep); }
.menu a.on { background: var(--blush); color: var(--rose-deep); }
.pill .hire {
  flex: none;
  background: var(--rose-deep); color: var(--white);
  font-size: 0.86rem; font-weight: 600; text-decoration: none;
  padding: 9px 18px; border-radius: 999px;
  transition: transform 0.25s, background 0.25s;
}
.pill .hire:hover { background: var(--ink); transform: translateY(-1px); }

/* ---------- Hero ---------- */
.hero { padding-top: 56px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; align-items: center; }
.tag {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--blush); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 16px 6px 10px;
  font-size: 0.82rem; font-weight: 500; color: var(--rose-deep);
}
.tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--rose); position: relative; }
.tag i::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--rose); animation: ping 2s ease-out infinite; }
h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3rem, 8.4vw, 6.4rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 22px 0 0;
  text-wrap: balance;
}
h1 em { font-style: italic; color: var(--rose); font-weight: 500; }
.mask { display: block; overflow: hidden; padding-bottom: 0.08em; }
.mask > span { display: inline-block; animation: rise 1s cubic-bezier(0.2, 0.75, 0.2, 1) both; }
.mask:nth-child(2) > span { animation-delay: 0.12s; }
.mask:nth-child(3) > span { animation-delay: 0.24s; }
.sub { max-width: 46ch; color: var(--muted); font-size: 1.08rem; margin: 26px 0 32px; }
.fade { animation: fadeUp 0.9s cubic-bezier(0.2, 0.75, 0.2, 1) both; animation-delay: var(--d, 0s); }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; text-decoration: none;
  border: 1px solid var(--rose-deep);
  transition: transform 0.25s, background 0.25s, color 0.25s, box-shadow 0.25s;
}
.btn .arr { display: inline-block; transition: transform 0.25s; }
.btn:hover { transform: translateY(-3px); }
.btn:hover .arr { transform: translateX(5px); }
.btn.solid { background: var(--rose-deep); color: var(--white); box-shadow: 0 16px 30px -18px var(--shadow); }
.btn.solid:hover { background: var(--ink); border-color: var(--ink); }
.btn.ghost { background: transparent; color: var(--rose-deep); }
.btn.ghost:hover { background: var(--blush); }

.art { position: relative; justify-self: center; width: 100%; max-width: 400px; }
.blob {
  position: absolute; inset: 8% -10% -6% 6%;
  background: radial-gradient(circle at 30% 30%, var(--petal), var(--blush) 70%);
  border-radius: 62% 38% 55% 45% / 48% 58% 42% 52%;
  animation: morph 14s ease-in-out infinite;
}
.arch { position: relative; aspect-ratio: 4 / 5; border-radius: 999px 999px 32px 32px; overflow: hidden; background: linear-gradient(160deg, var(--blush), var(--white)); border: 6px solid var(--white); box-shadow: 0 30px 60px -34px var(--shadow); }
.photo-art { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--rose); }
.photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.hero-photo { position: relative; z-index: 1; aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden; background: linear-gradient(160deg, var(--petal), var(--blush)); border: 6px solid var(--white); box-shadow: 0 30px 60px -36px var(--shadow); }
.hero-photo .photo { object-position: 50% 100%; }
/* 3D showcase card (unused) */
.tilt { perspective: 900px; position: relative; z-index: 1; }
.card3d { position: relative; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.6s cubic-bezier(0.2, 0.75, 0.2, 1); will-change: transform; border-radius: 30px; box-shadow: 0 40px 70px -36px var(--shadow), 0 0 0 1px rgba(255,255,255,0.6); }
.card3d.live { transition: transform 0.08s linear; }
.tilt .arch { border-radius: 30px; border: 6px solid var(--white); aspect-ratio: 4 / 5; background: linear-gradient(160deg, var(--g1), var(--g3) 70%, var(--g3)); }
.tilt .arch .photo { object-position: 50% 100%; mix-blend-mode: multiply; }
.holo, .glare { position: absolute; inset: 0; border-radius: 30px; pointer-events: none; opacity: var(--o, 0); transition: opacity 0.4s ease; }
.holo { z-index: 3; mix-blend-mode: color-dodge; background:
  linear-gradient(115deg, transparent 18%, rgba(255,120,190,0.55) 30%, rgba(255,235,150,0.5) 40%, rgba(130,230,255,0.5) 50%, rgba(200,150,255,0.55) 60%, transparent 74%);
  background-size: 260% 260%; background-position: var(--hx, 50%) var(--hy, 50%); filter: saturate(1.2); }
.glare { z-index: 4; mix-blend-mode: overlay; background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.95), rgba(255,255,255,0) 52%); }
.card3d::after { content: ""; position: absolute; inset: 0; border-radius: 30px; pointer-events: none; z-index: 5; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.7), inset 0 0 22px rgba(255,255,255,0.25); }
.card3d.idle .holo { animation: holoIdle 6s ease-in-out infinite; }
@keyframes holoIdle { 0%, 55%, 100% { opacity: 0; background-position: 0% 50%; } 70% { opacity: 0.7; } 85% { opacity: 0; background-position: 100% 50%; } }
@media (prefers-reduced-motion: reduce) { .card3d, .card3d.live { transition: none; } .card3d.idle .holo { animation: none; } }
.chip {
  position: absolute; z-index: 2;
  background: var(--white); border: 1px solid var(--line);
  border-radius: 16px; padding: 10px 16px;
  font-size: 0.8rem; line-height: 1.35; color: var(--muted);
  box-shadow: 0 18px 36px -22px var(--shadow);
  animation: float 6s ease-in-out infinite;
}
.chip b { display: block; font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; color: var(--ink); }
.chip { z-index: 6; }
.chip.c1 { left: -14px; bottom: 70px; }
.chip.c2 { right: -6px; top: 40px; animation-delay: -3s; }
.spark { position: absolute; right: 10%; bottom: -10px; z-index: 2; color: var(--rose); width: 44px; animation: spin 12s linear infinite; }

/* ---------- Marquee ---------- */
.marquee { margin-top: 96px; background: var(--rose-deep); color: var(--blush); overflow: hidden; padding-block: 16px; transform: rotate(-1.2deg); margin-inline: -4vw; }
.track { display: flex; width: max-content; animation: slide 30s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.set { display: flex; align-items: center; gap: 34px; padding-right: 34px; }
.set span { font-family: var(--font-display); font-style: italic; font-size: 1.35rem; white-space: nowrap; }
.set b { font-weight: 400; color: var(--petal); }

/* ---------- Section heads ---------- */
.eyebrow { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--rose); margin: 0 0 12px; }
h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.1rem, 5vw, 3.5rem); line-height: 1.06; letter-spacing: -0.025em; margin: 0; text-wrap: balance; }
h2 em { font-style: italic; color: var(--rose); }
.head { margin-bottom: 44px; max-width: 100%; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; align-items: center; }
.about-photo { position: relative; aspect-ratio: 1 / 1.1; border-radius: 28px; overflow: hidden; background: linear-gradient(160deg, var(--petal), var(--blush)); border: 6px solid var(--white); box-shadow: 0 30px 60px -36px var(--shadow); transform: rotate(-2.5deg); transition: transform 0.6s cubic-bezier(0.2, 0.75, 0.2, 1); }
.about-photo:hover { transform: rotate(0); }
.about p { color: var(--muted); font-size: 1.08rem; max-width: 56ch; margin: 0 0 18px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 32px 0 0; padding: 0; list-style: none; }
.facts li { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; min-width: 0; }
.facts b { display: block; font-family: var(--font-display); font-size: 2rem; font-weight: 500; line-height: 1; color: var(--rose-deep); font-variant-numeric: tabular-nums; }
.facts span { font-size: 0.8rem; color: var(--muted); }

/* ---------- Skills ---------- */
.skills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.skill {
  background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 28px 26px;
  transition: transform 0.4s cubic-bezier(0.2, 0.75, 0.2, 1), box-shadow 0.4s, background 0.4s;
  min-width: 0;
}
.skill:hover { transform: translateY(-8px); box-shadow: 0 28px 44px -30px var(--shadow); background: var(--blush); }
.skill svg { width: 40px; height: 40px; color: var(--rose-deep); margin-bottom: 18px; transition: transform 0.5s cubic-bezier(0.3, 1.5, 0.5, 1); }
.skill:hover svg { transform: rotate(-8deg) scale(1.12); }
.skill h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.4rem; margin: 0 0 8px; }
.skill p { margin: 0 0 14px; color: var(--muted); font-size: 0.96rem; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pills li { font-size: 0.78rem; font-weight: 500; color: var(--rose-deep); background: var(--blush); border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; }
.skill:hover .pills li { background: var(--white); }

/* ---------- Projects ---------- */
.projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; margin: 0; padding: 0; list-style: none; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 26px; overflow: hidden; display: flex; flex-direction: column; transition: transform 0.45s cubic-bezier(0.2, 0.75, 0.2, 1), box-shadow 0.45s; }
.card:hover { transform: translateY(-8px); box-shadow: 0 34px 50px -34px var(--shadow); }
.shot { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(150deg, var(--blush), var(--petal)); overflow: hidden; color: var(--rose-deep); }
.shot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 38%, rgba(255,255,255,0.55) 50%, transparent 62%); transform: translateX(-100%); animation: sweep 6s ease-in-out infinite; pointer-events: none; }
.card:nth-child(2) .shot::after { animation-delay: 1.5s; }
.card:nth-child(3) .shot::after { animation-delay: 3s; }
.card:nth-child(4) .shot::after { animation-delay: 4.5s; }
.shot svg { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform 0.8s cubic-bezier(0.2, 0.75, 0.2, 1); }
.card:hover .shot svg { transform: scale(1.06); }
.shot .photo { transition: transform 0.8s cubic-bezier(0.2, 0.75, 0.2, 1); }
.card:hover .shot .photo { transform: scale(1.06); }
.body { padding: 24px 28px 30px; display: grid; gap: 10px; align-content: start; flex: 1; }
.top { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.card h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.55rem; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
.role { flex: none; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rose-deep); background: var(--blush); border-radius: 999px; padding: 4px 12px; }
.card p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.card .pills { margin-top: 6px; }
.card .pills li { transition: transform 0.5s cubic-bezier(0.3, 1.5, 0.5, 1); }
.js .card:not(.in) .pills li { transform: scale(0.6); }

/* ---------- Certifications ---------- */
.certs { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 22px; align-items: start; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 26px; padding: 28px 30px 20px; min-width: 0; }
.panel h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; margin: 0 0 8px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.panel h3 small { font-family: var(--font-body); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--rose); }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-block: 12px; border-bottom: 1px solid var(--line); font-size: 0.96rem; transition: padding-left 0.3s, color 0.3s; }
.list li:last-child { border-bottom: 0; }
.list li:hover { padding-left: 8px; color: var(--rose-deep); }
.list li span:first-child { min-width: 0; }
.date { font-size: 0.8rem; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.edu { margin-top: 22px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.edu .panel { padding-bottom: 28px; }
.big { font-family: var(--font-display); font-style: italic; font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1; color: var(--rose); margin: 8px 0 12px; font-variant-numeric: tabular-nums; }
.panel .note { margin: 0; color: var(--muted); }
.weeks { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; margin: 16px 0 10px; }
.weeks span { height: 12px; border-radius: 999px; background: var(--rose); transition: background 0.5s; transition-delay: calc(var(--i, 0) * 140ms); }
.js .weeks:not(.in) span { background: var(--line); }

/* ---------- Contact ---------- */
.contact { background: linear-gradient(150deg, var(--blush), var(--petal)); border-radius: 36px; padding: clamp(28px, 6vw, 68px); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 40px; position: relative; overflow: hidden; }
.contact::before { content: ""; position: absolute; width: 340px; height: 340px; right: -90px; top: -120px; border-radius: 50%; background: transparent; display: none; }
.contact > * { position: relative; min-width: 0; }
.contact p.lead { color: var(--rose-deep); max-width: 40ch; margin: 18px 0 28px; font-size: 1.06rem; }
.info { display: grid; gap: 14px; align-content: center; }
.item { background: color-mix(in srgb, var(--white) 80%, transparent); border-radius: 18px; padding: 14px 18px; min-width: 0; }
.label { display: block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rose-deep); }
.val { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.val span, .val a { font-size: 1rem; overflow-wrap: anywhere; user-select: all; text-decoration: none; }
.val a:hover { text-decoration: underline; }
.copy { font: inherit; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--rose-deep); background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; cursor: pointer; transition: background 0.25s, color 0.25s; }
.copy:hover { background: var(--rose-deep); color: var(--white); }
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.socials a { display: inline-flex; align-items: center; gap: 8px; background: var(--white); border-radius: 999px; padding: 9px 18px; font-size: 0.9rem; font-weight: 500; text-decoration: none; color: var(--rose-deep); transition: transform 0.25s, background 0.25s, color 0.25s; }
.socials a:hover { transform: translateY(-3px); background: var(--rose-deep); color: var(--white); }

footer { padding-block: 56px 48px; color: var(--muted); font-size: 0.86rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; align-items: center; }
footer .logo { margin: 0; }
footer a { text-decoration: none; color: var(--rose-deep); }
footer a:hover { text-decoration: underline; }

/* ---------- Project art animations ---------- */
.wave line { transform-box: fill-box; transform-origin: center; animation: eq 1.3s ease-in-out infinite; }
.wave line:nth-child(3n+1) { animation-delay: -0.2s; }
.wave line:nth-child(3n+2) { animation-delay: -0.6s; }
.wave line:nth-child(3n) { animation-delay: -1s; }
.gate .arm { transform-origin: 90px 86px; animation: arm 6s ease-in-out infinite; }
.gate .car { animation: car 6s linear infinite; }
.pos .key { fill: currentColor; fill-opacity: 0; animation: key 3.6s ease-in-out infinite; }
.pos .key:nth-of-type(2) { animation-delay: 0.4s; }
.pos .key:nth-of-type(3) { animation-delay: 0.8s; }
.pos .key:nth-of-type(4) { animation-delay: 1.2s; }
.pos .key:nth-of-type(5) { animation-delay: 1.6s; }
.pos .key:nth-of-type(6) { animation-delay: 2s; }
.pos .cursor { fill: currentColor; animation: blink 1s steps(1) infinite; }
.thread .hanger { transform-origin: 171px 56px; animation: swing 3.4s ease-in-out infinite alternate; }
.thread .stitch { animation: stitch 2s linear infinite; }

/* LANDING PAGE: loading screen (ring, pictures and blossom button) */
/* ---------- Loading screen ---------- */
.loader { display: none; }
.js .loader {
  display: grid; place-items: center;
  position: fixed; inset: 0; z-index: 100;
  background: linear-gradient(160deg, var(--blush), var(--cream) 70%);
  border-radius: 0 0 50% 50% / 0 0 8vh 8vh;
  transition: transform 0.95s cubic-bezier(0.76, 0, 0.24, 1);
  padding: 24px;
}
.js .loader.done { transform: translateY(-105%); }
.js:not(.ready), .js:not(.ready) body { overflow: hidden; }
.js:not(.ready) .mask > span, .js:not(.ready) .fade { animation-play-state: paused; }
.ld-circle {
  position: relative; width: 168px; height: 168px; border-radius: 50%;
  border: 0; padding: 0; background: var(--white); color: var(--rose-deep);
  font: inherit; cursor: default;
  box-shadow: 0 30px 60px -34px var(--shadow);
  display: grid; place-items: center;
  transition: background 0.5s, color 0.5s, transform 0.4s cubic-bezier(0.3, 1.5, 0.5, 1), box-shadow 0.4s;
}
.ld-circle svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ld-track, .ld-ring { fill: none; stroke-width: 5; }
.ld-track { stroke: var(--petal); }
.ld-ring { stroke: var(--rose-deep); stroke-linecap: round; stroke-dasharray: 339.3; stroke-dashoffset: 339.3; transition: stroke 0.5s; }
.ld-pct { grid-area: 1 / 1; font-family: var(--font-display); font-size: 2.2rem; font-weight: 500; font-variant-numeric: tabular-nums; transition: opacity 0.3s, transform 0.3s; }
.ld-pct span { font-size: inherit; }
.ld-open { grid-area: 1 / 1; font-size: 1.05rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0; transform: scale(0.7); transition: opacity 0.4s 0.15s, transform 0.5s 0.15s cubic-bezier(0.3, 1.5, 0.5, 1); }
.ld-circle.ready { background: var(--rose-deep); color: var(--white); cursor: pointer; animation: beat 1.8s ease-in-out infinite; }
.ld-circle.ready .ld-ring { stroke: var(--petal); }
.ld-circle.ready .ld-pct { opacity: 0; transform: scale(1.3); }
.ld-circle.ready .ld-open { opacity: 1; transform: none; }
.ld-circle.ready:hover { transform: scale(1.08); background: var(--ink); animation: none; }
.ld-circle:focus-visible { outline: 3px solid var(--rose); outline-offset: 6px; }
@keyframes beat { 0%, 100% { box-shadow: 0 0 0 0 rgba(164, 80, 106, 0.45); } 60% { box-shadow: 0 0 0 26px rgba(164, 80, 106, 0); } }

/* Loading screen photos */
.ld-photos { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.ld-pic {
  position: absolute;
  width: clamp(96px, 17vw, 200px);
  aspect-ratio: 3 / 4;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--petal), var(--blush));
  border: 5px solid var(--white);
  box-shadow: 0 26px 46px -24px var(--shadow);
  color: var(--rose);
  transform: rotate(var(--r, 0deg));
  animation: picIn 0.9s cubic-bezier(0.2, 0.75, 0.2, 1) both, bob 7s ease-in-out infinite;
  animation-delay: var(--d, 0s), calc(var(--d, 0s) + 0.9s);
}
.ld-pic.arch-top { border-radius: 999px 999px 22px 22px; }
.ld-pic svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ld-pic .photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ld-pic.p1 { left: 7%; top: 12%; --r: -6deg; --d: 0.2s; }
.ld-pic.p2 { right: 8%; top: 9%; --r: 5deg; --d: 0.4s; }
.ld-pic.p3 { left: 15%; bottom: 9%; --r: 4deg; --d: 0.6s; }
.ld-pic.p4 { right: 13%; bottom: 11%; --r: -5deg; --d: 0.8s; }
@keyframes picIn { from { opacity: 0; transform: translateY(40px) rotate(var(--r, 0deg)) scale(0.9); } }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-12px) rotate(calc(var(--r, 0deg) * -0.6)); } }
@media (max-width: 600px) {
  .ld-pic { width: 29vw; max-width: 130px; border-width: 4px; border-radius: 16px; }
  .ld-pic.arch-top { border-radius: 999px 999px 16px 16px; }
  .ld-pic.p1 { left: 4%; top: 7%; }
  .ld-pic.p2 { right: 4%; top: 13%; }
  .ld-pic.p3 { left: 5%; bottom: 7%; }
  .ld-pic.p4 { right: 5%; bottom: 5%; }
}

/* Loading screen: pictures as a full background, tinted pink */
.ld-photos::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 249, 247, 0.94) 0 15%, rgba(255, 249, 247, 0) 50%),
    linear-gradient(160deg, rgba(201, 118, 142, 0.52), rgba(253, 232, 238, 0.56) 55%, rgba(164, 80, 106, 0.46));
}
.ld-pic { width: clamp(150px, 32vw, 400px); border: 0; box-shadow: none; border-radius: 34px; }
.ld-pic.arch-top { border-radius: 999px 999px 34px 34px; }
.ld-pic .photo { filter: saturate(0.92) contrast(1.02); }
.ld-pic svg { opacity: 0.6; }
.ld-pic.p1 { left: -2%; top: -3%; }
.ld-pic.p2 { right: -3%; top: -2%; }
.ld-pic.p3 { left: 7%; bottom: -8%; }
.ld-pic.p4 { right: 6%; bottom: -6%; }
@media (max-width: 600px) {
  .ld-pic { width: 46vw; max-width: none; border-radius: 24px; }
  .ld-pic.arch-top { border-radius: 999px 999px 24px 24px; }
  .ld-pic.p1 { left: -6%; top: -2%; }
  .ld-pic.p2 { right: -8%; top: 8%; }
  .ld-pic.p3 { left: -4%; bottom: -3%; }
  .ld-pic.p4 { right: -6%; bottom: -5%; }
}

/* Loading screen wall: many pink-tinted photos scrolling in rows */
.ld-wall { position: absolute; inset: 0; overflow: hidden; display: flex; flex-direction: column; gap: 14px; padding: 14px 0; pointer-events: none; background: #a4506a; }
.ld-row { flex: 1 1 0; min-height: 0; overflow: hidden; }
.ld-track2 { display: flex; gap: 14px; height: 100%; width: max-content; animation: wallL 70s linear infinite; }
.ld-row:nth-child(even) .ld-track2 { animation-name: wallR; animation-duration: 85s; }
.ld-row:nth-child(3n) .ld-track2 { animation-duration: 95s; }
.ld-tile { position: relative; flex: none; height: 100%; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; background: linear-gradient(150deg, #b8607a, #8f4560); }
.ld-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.45) contrast(1.05); }
.ld-tile::after { content: ""; position: absolute; inset: 0; background: rgba(168, 82, 110, 0.66); }
.ld-wall::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, rgba(255, 233, 240, 0.35), rgba(255, 233, 240, 0) 45%); }
.js .loader .ld-circle { outline: 9px solid rgba(255, 255, 255, 0.55); z-index: 2; }
@keyframes wallL { to { transform: translateX(-50%); } }
@keyframes wallR { from { transform: translateX(-50%); } to { transform: translateX(0); } }
/* One single picture, full screen */
.ld-wall { display: block; padding: 0; gap: 0; }
.ld-row { height: 100%; }
.ld-track2 { animation: none !important; width: 100%; }
.ld-tile { width: 100%; aspect-ratio: auto; border-radius: 0; }
.ld-tile img { animation: kb 8s ease-out both; filter: none; }
/* Loading screen slideshow: one full-screen picture at a time, tinted rose */
.ld-slide { position: absolute; inset: 0; overflow: hidden; background: #a4506a; opacity: 0; transition: opacity 0.2s ease; }
.ld-slide.on { opacity: 1; transition: opacity 0.35s ease 0.2s; }
.ld-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(var(--z, 1)); }
.ld-slide.on img { animation: kb2 4s ease-out both; }
.ld-slide::after { content: ""; position: absolute; inset: 0; background: rgba(168, 82, 110, 0.66); }
@keyframes kb2 { from { transform: scale(calc(var(--z, 1) * 1.12)); } to { transform: scale(var(--z, 1)); } }
/* Faster picture changes and cute slides */
/* Picture change: the new picture fades in slowly on top while the old one stays underneath, then a gentle zoom drift */
.ld-slide { z-index: 0; opacity: 0; transition: none; will-change: opacity; }
.ld-slide.prev { z-index: 1; opacity: 1; }
.ld-slide.on { z-index: 2; opacity: 1; transition: opacity 0.38s ease-out; }
.ld-slide.on img, .ld-slide.prev img { animation: kb3 1.8s cubic-bezier(0.25, 0.1, 0.25, 1) both; will-change: transform; }
@keyframes kb3 { from { transform: scale(calc(var(--z, 1) * 1.07)); } to { transform: scale(var(--z, 1)); } }
.ld-slide.cute::after { display: none; }
.ld-slide .shp { position: absolute; display: block; transform: translate(-50%, -50%) rotate(var(--r, 0deg)); filter: drop-shadow(0 6px 10px rgba(120, 40, 70, 0.18)); }
.ld-slide .shp svg { width: 100%; height: 100%; display: block; }
.ld-slide.on .shp svg { animation: shp 0.45s cubic-bezier(0.3, 1.5, 0.5, 1) both; animation-delay: calc(var(--i, 0) * 18ms); }
@keyframes shp { from { transform: scale(0.3); opacity: 0; } }
/* LANDING PAGE: the blossom button that opens the portfolio */
/* Cherry blossom button */
.ld-circle > svg:first-child { transition: opacity 0.3s ease; }
.ld-circle .ld-flower { position: absolute; inset: 0; width: 100%; height: 100%; transform: scale(0.3) rotate(-60deg); opacity: 0; overflow: visible; pointer-events: none; filter: drop-shadow(0 14px 20px rgba(120, 40, 70, 0.35)); transition: opacity 0.35s ease 0.1s, transform 0.85s cubic-bezier(0.3, 1.4, 0.5, 1) 0.1s; }
.js .loader .ld-circle.ready { background: transparent; box-shadow: none; outline: 0; animation: none; }
.ld-circle.ready > svg:first-child { opacity: 0; }
.ld-circle.ready .ld-flower { opacity: 1; transform: scale(1.4) rotate(0deg); animation: sway 3.6s ease-in-out 0.9s infinite alternate; }
.js .loader .ld-circle.ready:hover { background: transparent; transform: none; }
.js .loader .ld-circle.ready:hover .ld-flower { transform: scale(1.5) rotate(6deg); }
.js .loader .ld-circle.ready:focus-visible { outline: 3px solid #ffffff; outline-offset: 10px; }
.ld-circle.ready .ld-open { position: relative; z-index: 2; color: var(--rose-deep); font-size: 0.68rem; letter-spacing: 0.1em; }
@keyframes sway { from { rotate: -5deg; } to { rotate: 5deg; } }
.loader.bloom .ld-circle.ready .ld-flower { transform: scale(1.9) rotate(30deg); opacity: 0; animation: none; transition: transform 0.7s ease-in, opacity 0.55s ease 0.1s; }
.loader.bloom .ld-open { opacity: 0; transition: opacity 0.2s; }
.js .loader.gone { opacity: 0; pointer-events: none; transition: opacity 0.8s ease; }
.js .loader.bloom .ld-circle, .js .loader.bloom .ld-circle.ready:focus-visible { outline: 0; }
/* LANDING PAGE: petals that fly off and cover the screen */
/* Coral blossom cluster + wind-gust petals + opening reveal */
@property --r { syntax: '<length>'; inherits: false; initial-value: 0px; }
.js .loader.iris {
  --r: 0px;
  -webkit-mask-image: radial-gradient(circle at var(--cx) var(--cy), transparent var(--r), #000 calc(var(--r) + 2px));
  mask-image: radial-gradient(circle at var(--cx) var(--cy), transparent var(--r), #000 calc(var(--r) + 2px));
}
.js .loader.iris.gone { opacity: 1; --r: 160vmax; transition: --r 1.4s cubic-bezier(0.55, 0, 0.25, 1); }

/* Single blossom: petals come off one at a time */
.js .loader.peel .ld-circle { outline: 0; pointer-events: none; }
.js .loader.peel .ld-circle.ready .ld-flower, .js .loader.peel .ld-circle.ready:hover .ld-flower { transition: none; animation: none; transform: scale(1.4); opacity: 1; }
.ld-flower .pet.off { opacity: 0; }
.ld-flower .core { transition: opacity 0.4s ease; }
.js .loader.core-off .ld-flower .core { opacity: 0; }
.js .loader.core-off .ld-circle.ready .ld-open { opacity: 0; transition: opacity 0.3s ease; }

/* Project details popup */
.card[data-project] { cursor: pointer; }
.card .more { margin-top: 10px; font-size: 0.86rem; font-weight: 600; color: var(--rose-deep); display: inline-flex; gap: 6px; align-items: center; transition: gap 0.25s; }
.card:hover .more { gap: 12px; }
.pmodal { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 20px; }
.pmodal[hidden] { display: none; }
.pm-back { position: absolute; inset: 0; background: rgba(58, 42, 48, 0.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity 0.3s ease; }
.pm-card { position: relative; width: min(560px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: var(--white); border-radius: 28px; border: 1px solid var(--line); box-shadow: 0 50px 90px -30px rgba(120, 40, 70, 0.5); transform: translateY(26px) scale(0.96); opacity: 0; transition: transform 0.45s cubic-bezier(0.2, 0.9, 0.25, 1.1), opacity 0.3s ease; }
.pmodal.open .pm-back { opacity: 1; }
.pmodal.open .pm-card { transform: none; opacity: 1; }
.pm-shot { border-radius: 28px 28px 0 0; }
.pm-body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 14px; }
.pm-body .top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pm-body h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.8rem; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
.pm-body p { margin: 0; color: var(--muted); font-size: 1.02rem; }
.pm-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.pm-actions .btn[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }
.pm-body .pm-note { font-size: 0.84rem; }
.pm-x { position: absolute; top: 14px; right: 14px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: color-mix(in srgb, var(--white) 92%, transparent); color: var(--rose-deep); font-size: 1.5rem; line-height: 1; cursor: pointer; transition: transform 0.25s, background 0.25s; }
.pm-x:hover { background: var(--blush); transform: rotate(90deg); }
html.pm-lock, html.pm-lock body { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .pm-card, .pm-back { transition: none; } }

/* Project pictures: three per project */
.card .shot { background: var(--blush); }
.card .shot::after { display: none; }
.mosaic { position: absolute; inset: 0; display: grid; grid-template-columns: 1.45fr 1fr; grid-template-rows: 1fr 1fr; gap: 3px; background: var(--white); }
.mosaic .pic:first-child { grid-row: 1 / 3; }
.pic { position: relative; overflow: hidden; display: block; background: linear-gradient(150deg, var(--g1), var(--petal)); }
.pic:nth-child(2) { background: linear-gradient(150deg, var(--g1), var(--g2)); }
.pic:nth-child(3) { background: linear-gradient(150deg, var(--blush), var(--g2)); }
.pic.empty::before { content: ""; position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; opacity: 0.55;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9768e' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='3'/%3E%3Ccircle cx='9' cy='10' r='1.8'/%3E%3Cpath d='M4 18l5-5 4 4 3-3 4 4'/%3E%3C/svg%3E") center / contain no-repeat; }
.pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.2, 0.75, 0.2, 1); }
.card:hover .pic img { transform: scale(1.07); }
.pm-gallery { position: relative; background: var(--blush); border-radius: 28px 28px 0 0; overflow: hidden; }
.pm-main { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(150deg, var(--g1), var(--petal)); }
.pm-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: pmIn 0.45s ease; }
@keyframes pmIn { from { opacity: 0; transform: scale(1.04); } }
.pm-main.empty::before { content: ""; position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; opacity: 0.5; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9768e' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='3'/%3E%3Ccircle cx='9' cy='10' r='1.8'/%3E%3Cpath d='M4 18l5-5 4 4 3-3 4 4'/%3E%3C/svg%3E") center / contain no-repeat; }
.pm-nav { position: absolute; top: calc((100% - 64px) / 2); transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: color-mix(in srgb, var(--white) 92%, transparent); color: var(--rose-deep); font-size: 1.5rem; line-height: 1; cursor: pointer; transition: background 0.2s, transform 0.2s; }
.pm-nav:hover { background: var(--blush); }
.pm-nav.prev { left: 12px; } .pm-nav.next { right: 12px; }
.pm-thumbs { display: flex; gap: 8px; padding: 8px; background: var(--white); }
.pm-thumbs button { flex: 1; height: 56px; padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; cursor: pointer; position: relative; background: linear-gradient(150deg, var(--g1), var(--petal)); opacity: 0.7; transition: opacity 0.2s, border-color 0.2s; }
.pm-thumbs button.on { opacity: 1; border-color: var(--rose-deep); }
.pm-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* One picture at a time, cycling */
.mosaic { display: block; }
.mosaic .pic { position: absolute; inset: 0; opacity: 0; transition: opacity 0.9s ease; }
.mosaic .pic:first-child { grid-row: auto; }
.mosaic .pic.on { opacity: 1; }
.mosaic .pic.empty::before { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
.card .dots { position: absolute; left: 0; right: 0; bottom: 12px; z-index: 2; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.card .dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.65); box-shadow: 0 0 0 1px rgba(164,80,106,0.25); transition: width 0.3s, background 0.3s; }
.card .dots i.on { width: 20px; border-radius: 999px; background: #fff; }
.pm-thumbs { position: absolute; left: 0; right: 0; bottom: 12px; justify-content: center; gap: 7px; padding: 0; background: none; }
.pm-thumbs button { flex: none; width: 9px; height: 9px; border-radius: 50%; border: 0; background: rgba(255,255,255,0.7); box-shadow: 0 0 0 1px rgba(164,80,106,0.3); opacity: 1; transition: width 0.3s, background 0.3s; }
.pm-thumbs button.on { width: 24px; border-radius: 999px; background: #fff; }
.pm-nav { top: 50%; }

/* Hobbies */
.hobbies { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.hobby { background: var(--white); border: 1px solid var(--line); border-radius: 26px; padding: 26px 24px 28px; display: flex; flex-direction: column; gap: 10px; transition: transform 0.45s cubic-bezier(0.3, 1.4, 0.5, 1), box-shadow 0.45s; }
.hobby:hover { transform: translateY(-8px) rotate(-1deg); box-shadow: 0 30px 46px -30px var(--shadow); }
.hobby .ico { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(150deg, var(--blush), var(--petal)); color: var(--rose-deep); transition: transform 0.6s cubic-bezier(0.3, 1.6, 0.5, 1); }
.hobby:hover .ico { transform: rotate(-14deg) scale(1.12); }
.hobby .ico svg { width: 28px; height: 28px; }
.hobby h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.35rem; margin: 6px 0 0; letter-spacing: -0.01em; }
.hobby p { margin: 0; color: var(--muted); font-size: 0.96rem; }

/* Scroll progress + floating blossoms */
.scrollbar { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 300; background: linear-gradient(90deg, var(--petal), var(--rose), var(--rose-deep)); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }
html:not(.ready) .scrollbar { display: none; }
main > section { position: relative; overflow-x: clip; }
main > section > .wrap { position: relative; z-index: 1; }
.deco { position: absolute; z-index: 0; width: var(--s, 120px); height: var(--s, 120px); border-radius: 62% 38% 60% 40% / 68% 58% 42% 32%; background: linear-gradient(160deg, var(--g1), var(--blush) 70%); opacity: 0.6; pointer-events: none; will-change: transform; }

/* Scroll transitions: every section arrives differently */
.js .reveal.r-left, .js .reveal.r-right, .js .reveal.r-zoom, .js .reveal.r-pop {
  transform: none;
  transition: opacity 0.9s ease, translate 1s cubic-bezier(0.2, 0.75, 0.2, 1), rotate 1s cubic-bezier(0.2, 0.75, 0.2, 1), scale 1s cubic-bezier(0.2, 0.75, 0.2, 1), filter 0.9s ease;
  transition-delay: var(--d, 0s);
}
.js .reveal.r-left { opacity: 0.2; translate: -90px 0; rotate: -5deg; }
.js .reveal.r-right { opacity: 0.2; translate: 90px 0; rotate: 5deg; }
.js .reveal.r-zoom { opacity: 0.2; scale: 0.82; filter: blur(7px); translate: 0 30px; }
.js .reveal.r-pop { opacity: 0; scale: 0.55; rotate: -9deg; translate: 0 40px; transition-timing-function: cubic-bezier(0.3, 1.6, 0.5, 1); }
.js .reveal.r-left.in, .js .reveal.r-right.in, .js .reveal.r-zoom.in, .js .reveal.r-pop.in { opacity: 1; translate: none; rotate: none; scale: none; filter: none; transform: none; }
.js .reveal.r-pop { transition: opacity 0.7s ease, translate 0.9s cubic-bezier(0.3, 1.5, 0.5, 1), rotate 0.9s cubic-bezier(0.3, 1.5, 0.5, 1), scale 0.9s cubic-bezier(0.3, 1.5, 0.5, 1); transition-delay: var(--d, 0s); }
.js .head.reveal .eyebrow { opacity: 0; translate: -34px 0; transition: opacity 0.7s ease 0.1s, translate 0.8s cubic-bezier(0.2, 0.75, 0.2, 1) 0.1s; }
.js .head.reveal.in .eyebrow { opacity: 1; translate: none; }
.js .head.reveal h2 { clip-path: inset(-12% 100% -12% 0); transition: clip-path 1.15s cubic-bezier(0.65, 0, 0.2, 1) 0.2s; }
.js .head.reveal.in h2 { clip-path: inset(-12% -6% -12% 0); }
.js .card .mosaic { scale: 1.3; transition: scale 1.6s cubic-bezier(0.2, 0.75, 0.2, 1); }
.js .card.in .mosaic { scale: 1; }
.js .panel .list li { opacity: 0; translate: 26px 0; transition: opacity 0.6s ease, translate 0.7s cubic-bezier(0.2, 0.75, 0.2, 1); transition-delay: calc(0.3s + var(--k, 0) * 0.07s); }
.js .panel.in .list li { opacity: 1; translate: none; }
.js .about .reveal:not(.in) .facts li { opacity: 0; scale: 0.6; }
.js .facts li { transition: opacity 0.6s ease, scale 0.7s cubic-bezier(0.3, 1.6, 0.5, 1); }
.js .facts li:nth-child(2) { transition-delay: 0.15s; } .js .facts li:nth-child(3) { transition-delay: 0.3s; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal.r-left, .js .reveal.r-right, .js .reveal.r-zoom, .js .reveal.r-pop { opacity: 1; translate: none; rotate: none; scale: none; filter: none; }
  .js .head.reveal .eyebrow { opacity: 1; translate: none; }
  .js .head.reveal h2 { clip-path: none; }
  .js .card .mosaic { scale: 1; }
  .js .panel .list li { opacity: 1; translate: none; }
  .scrollbar, .deco { display: none; }
}

/* ===== Hobbies: sideways scroller ===== */
.hscroll-wrap { position: relative; margin-inline: -4px; }
.hscroll { display: flex; gap: 18px; margin: 0; padding: 10px 6px 24px; list-style: none; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; cursor: grab; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22px, #000 calc(100% - 22px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 22px, #000 calc(100% - 22px), transparent 100%); }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll.drag { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.hcard { flex: 0 0 min(250px, 70vw); scroll-snap-align: start; position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 3 / 4; cursor: pointer; background: var(--white); border: 1px solid var(--line); box-shadow: 0 24px 40px -28px var(--shadow); transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.25, 1.2), box-shadow 0.45s ease; }
.hcard:hover, .hcard:focus-visible { transform: translateY(-10px) rotate(-1.2deg); box-shadow: 0 40px 56px -30px var(--shadow); outline: 0; }
.hcard:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; }
.hpic { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(155deg, var(--g1), var(--petal)); color: #fff; }
.tone1 .hpic { background: linear-gradient(155deg, var(--g1), var(--g3)); }
.tone2 .hpic { background: linear-gradient(155deg, var(--g1), var(--g3)); }
.tone3 .hpic { background: linear-gradient(155deg, var(--blush), var(--g3)); }
.hpic svg { width: 76px; height: 76px; opacity: 0.8; transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.25, 1.2); }
.hcard:hover .hpic svg { transform: scale(1.15) rotate(-8deg); }
.hpic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; transition: transform 0.9s cubic-bezier(0.2, 0.75, 0.2, 1); }
.hcard:hover .hpic img { transform: scale(1.08); }
.hcap { position: absolute; left: 0; right: 0; bottom: 0; padding: 54px 20px 18px; background: linear-gradient(180deg, transparent, rgba(110, 30, 62, 0.62)); color: #fff; display: flex; flex-direction: column; gap: 4px; }
.hcap h3 { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 1.4rem; letter-spacing: -0.01em; }
.hcap .more { font-size: 0.84rem; font-weight: 600; opacity: 0.92; display: inline-flex; gap: 6px; align-items: center; transition: gap 0.25s; color: #fff; margin: 0; }
.hcard:hover .hcap .more { gap: 12px; }
.hfoot { display: flex; align-items: center; gap: 18px; margin-top: 4px; }
.hprog { position: relative; flex: 1; height: 4px; border-radius: 999px; background: rgba(201, 118, 142, 0.25); overflow: hidden; }
.hprog i { position: absolute; left: 0; top: 0; bottom: 0; width: 30%; border-radius: inherit; background: var(--rose-deep); transition: transform 0.15s linear; }
.hnav { display: flex; gap: 10px; }
.hnav button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--rose-deep); font-size: 1.5rem; line-height: 1; cursor: pointer; transition: background 0.2s, transform 0.2s; }
.hnav button:hover:not(:disabled) { background: var(--blush); transform: scale(1.06); }
.hnav button:disabled { opacity: 0.35; cursor: default; }
.pm-main .hbig { position: absolute; left: 50%; top: 50%; width: 90px; height: 90px; margin: -45px 0 0 -45px; color: #fff; opacity: 0.85; }
.pm-main.empty::before { display: none; }
#hmodal .pm-main.empty { background: linear-gradient(155deg, var(--g1), var(--g3)); }
.js .reveal.r-slide { opacity: 0; transform: translateX(90px) scale(0.94); }
.js .reveal.r-slide.in { opacity: 1; transform: none; }

/* ===== A different design and entrance for every section ===== */
main section[id] { position: relative; isolation: isolate; }
main section[id]::before { content: ""; position: absolute; z-index: -1; pointer-events: none; }
/* About: a soft blossom disc grows behind the photo */
#about::before { left: 3%; top: 56px; width: min(520px, 62vw); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 35%, var(--g1), var(--blush) 55%, transparent 72%); transform: scale(0.2); opacity: 0; transition: transform 1.4s cubic-bezier(0.2, 0.8, 0.25, 1), opacity 1s ease; }
#about.sec-in::before { transform: none; opacity: 1; }
/* Skills: a blush panel sweeps in from the left */
#skills, #certifications, #hobbies { padding-bottom: 96px; }
#skills::before { inset: 0 clamp(8px, 2vw, 28px); border-radius: 48px; background: linear-gradient(160deg, var(--blush), var(--g2)); transform: scaleX(0); transform-origin: left center; transition: transform 1.2s cubic-bezier(0.65, 0, 0.2, 1); }
#skills.sec-in::before { transform: none; }
/* Projects: a dotted backdrop fades up from below */
#projects::before { inset: 40px 0 0; background: radial-gradient(rgba(201,118,142,0.22) 1.4px, transparent 1.6px) 0 0 / 26px 26px; -webkit-mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent); mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent); opacity: 0; transform: translateY(60px); transition: opacity 1.2s ease, transform 1.4s cubic-bezier(0.2, 0.8, 0.25, 1); }
#projects.sec-in::before { opacity: 1; transform: none; }
/* Certifications: a rose panel opens like a fan from the corner */
#certifications::before { inset: 0 clamp(8px, 2vw, 28px); border-radius: 48px; background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--white) 22%, transparent) 0 14px, transparent 14px 28px), linear-gradient(150deg, var(--g2), var(--g3)); clip-path: circle(0% at 0% 0%); transition: clip-path 1.5s cubic-bezier(0.65, 0, 0.2, 1); }
#certifications.sec-in::before { clip-path: circle(150% at 0% 0%); }
/* Hobbies: a cream-to-pink curtain drops down */
#hobbies { margin-top: 28px; }
#hobbies::before { inset: 0 clamp(8px, 2vw, 28px); border-radius: 48px; background: linear-gradient(180deg, var(--g1), var(--g2)); clip-path: inset(0 0 100% 0 round 48px); transition: clip-path 1.3s cubic-bezier(0.65, 0, 0.2, 1); }
#hobbies.sec-in::before { clip-path: inset(0 0 0 0 round 48px); }
/* Contact: a bright ring opens from the middle */
#contact::before { left: 50%; top: 50%; width: min(1200px, 130vw); aspect-ratio: 1; margin: calc(min(1200px, 130vw) / -2) 0 0 calc(min(1200px, 130vw) / -2); border-radius: 50%; background: radial-gradient(circle, rgba(253,232,238,0.9), transparent 62%); transform: scale(0.1); opacity: 0; transition: transform 1.6s cubic-bezier(0.2, 0.8, 0.25, 1), opacity 1.2s ease; }
#contact.sec-in::before { transform: none; opacity: 1; }
/* heading entrances differ per section */
.js #skills .head.reveal h2 { clip-path: inset(100% 0 -12% 0); transform: translateY(24px); transition: clip-path 1s cubic-bezier(0.65, 0, 0.2, 1) 0.2s, transform 1s cubic-bezier(0.2, 0.75, 0.2, 1) 0.2s; }
.js #skills .head.reveal.in h2 { clip-path: inset(-12% -6% -12% -6%); transform: none; }
.js #projects .head.reveal h2 { clip-path: inset(-12% 0 -12% 100%); transition: clip-path 1.1s cubic-bezier(0.65, 0, 0.2, 1) 0.2s; }
.js #projects .head.reveal.in h2 { clip-path: inset(-12% -6% -12% -6%); }
.js #certifications .head.reveal h2 { clip-path: none; opacity: 0; letter-spacing: 0.22em; transition: opacity 0.9s ease 0.2s, letter-spacing 1.2s cubic-bezier(0.2, 0.75, 0.2, 1) 0.2s; }
.js #certifications .head.reveal.in h2 { opacity: 1; letter-spacing: -0.015em; }
.js #hobbies .head.reveal h2 { clip-path: inset(-12% 50% -12% 50%); transition: clip-path 1.1s cubic-bezier(0.65, 0, 0.2, 1) 0.2s; }
.js #hobbies .head.reveal.in h2 { clip-path: inset(-12% -6% -12% -6%); }
/* certification panels flip down */
.js .reveal.r-flip { opacity: 0; transform: perspective(900px) rotateX(-38deg) translateY(40px); transform-origin: 50% 0; }
.js .reveal.r-flip.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal.r-slide, .js .reveal.r-flip { opacity: 1; transform: none; }
  #about::before, #skills::before, #projects::before, #certifications::before, #hobbies::before, #contact::before { transition: none; transform: none; opacity: 1; clip-path: none; }
  .js #skills .head.reveal h2, .js #projects .head.reveal h2, .js #hobbies .head.reveal h2, .js #certifications .head.reveal h2 { clip-path: none; transform: none; opacity: 1; letter-spacing: -0.015em; }
}

/* ===== Alignment fixes: panels sit evenly around the content ===== */
main { overflow-x: clip; }
:root { --pad: clamp(16px, 3vw, 36px); }
#skills::before, #certifications::before, #hobbies::before {
  inset: 0 auto; left: max(4px, calc(max(20px, 50% - 560px) - var(--pad))); right: max(4px, calc(max(20px, 50% - 560px) - var(--pad)));
}
#skills, #certifications, #hobbies { padding-block: 72px; }
#skills { margin-top: 24px; }
#certifications, #hobbies { margin-top: 24px; }
.hscroll-wrap { margin-inline: 0; }
.hscroll { padding-inline: 2px; }
.skills, .projects, .certs, .hscroll-wrap, .hfoot { max-width: 100%; }
@media (max-width: 760px) {
  .hcard { flex-basis: min(230px, 68vw); }
  section { padding-block-start: 72px; }
}

/* ===== Skills and project boxes: they pop when hovered ===== */
.deco, #about::before, #contact::before { display: none !important; }
.skill, .card { position: relative; }
.skill::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0; opacity: 0; transition: opacity 0.4s ease;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 30%), color-mix(in srgb, var(--rose) 22%, var(--white)), color-mix(in srgb, var(--rose) 10%, transparent) 55%, transparent 74%); }
.skill > * { position: relative; z-index: 1; }
.card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 4; opacity: 0; transition: opacity 0.4s ease;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 30%), color-mix(in srgb, var(--rose) 20%, transparent), color-mix(in srgb, var(--rose) 8%, transparent) 50%, transparent 72%); }
.skill:hover::before, .card:hover::after { opacity: 1; }
.js .skill.reveal.in.hv, .js .card.reveal.in.hv { transition: transform 0.55s cubic-bezier(0.2, 0.9, 0.25, 1.2), box-shadow 0.5s ease, border-color 0.3s ease, background 0.4s ease; transition-delay: 0s; will-change: transform; }
.js .skill.reveal.in.hv:hover, .js .card.reveal.in.hv:hover {
  transform: perspective(1000px) translateY(-12px) scale(1.035) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg));
  box-shadow: 0 40px 64px -28px rgba(164, 80, 106, 0.5), 0 0 0 1px rgba(201, 118, 142, 0.4);
  border-color: var(--rose); z-index: 6;
}
.js .skill.reveal.in.hv:active, .js .card.reveal.in.hv:active { transform: translateY(-4px) scale(0.99); transition-duration: 0.15s; }
.skill:hover { background: linear-gradient(160deg, var(--white), var(--blush)); }
.skill svg { transition: transform 0.6s cubic-bezier(0.3, 1.6, 0.5, 1), color 0.3s; }
.skill:hover svg { transform: rotate(-12deg) scale(1.25); color: var(--rose); }
.skill h3, .card h3 { transition: color 0.3s ease, transform 0.45s cubic-bezier(0.2, 0.9, 0.25, 1.2); }
.skill:hover h3, .card:hover h3 { color: var(--rose-deep); transform: translateX(4px); }
.skill .pills li, .card .pills li { transition: transform 0.45s cubic-bezier(0.3, 1.6, 0.5, 1), background 0.3s, color 0.3s; }
.skill:hover .pills li, .card:hover .pills li { transform: translateY(-4px) scale(1.08); background: var(--white); color: var(--rose-deep); }
.skill:hover .pills li:nth-child(2), .card:hover .pills li:nth-child(2) { transition-delay: 0.05s; }
.skill:hover .pills li:nth-child(3), .card:hover .pills li:nth-child(3) { transition-delay: 0.1s; }
.skill:hover .pills li:nth-child(4), .card:hover .pills li:nth-child(4) { transition-delay: 0.15s; }
.skill:hover .pills li:nth-child(n+5), .card:hover .pills li:nth-child(n+5) { transition-delay: 0.2s; }
.card:hover .more { color: var(--rose); gap: 14px; }
.card:hover .mosaic { scale: 1.05; }
@media (hover: none) { .js .skill.reveal.in.hv:hover, .js .card.reveal.in.hv:hover { transform: none; } }
@media (prefers-reduced-motion: reduce) { .js .skill.reveal.in.hv:hover, .js .card.reveal.in.hv:hover { transform: none; } }
.petal-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 150; pointer-events: none; }
.ld-circle.ready .ld-open { color: #b43f5a; }

.petal-layer { position: fixed; inset: 0; z-index: 150; pointer-events: none; overflow: hidden; }
.pt { position: absolute; left: 0; top: 0; opacity: 0; will-change: transform, opacity; background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 30'><defs><linearGradient id='g' x1='0.2' y1='1' x2='0.8' y2='0'><stop offset='0' stop-color='%23f2849f'/><stop offset='0.55' stop-color='%23ffb8c2'/><stop offset='1' stop-color='%23fff1ea'/></linearGradient></defs><path d='M12 29C3 22 0 12 5 4C7 1 11 1 12 6C13 1 17 1 19 4C24 12 21 22 12 29Z' fill='url(%23g)'/><path d='M12 27C12 20 12 13 12 8' stroke='%23f2849f' stroke-opacity='0.45' stroke-width='0.8' fill='none' stroke-linecap='round'/></svg>") center / contain no-repeat; filter: drop-shadow(0 3px 5px rgba(240, 120, 150, 0.4)); }




/* Loading screen: one full-screen picture at a time, tinted rose */
.loader .ld-photos .ld-pic {
  left: 0; right: auto; top: 0; bottom: auto;
  width: 100%; height: 100%; aspect-ratio: auto;
  border: 0; border-radius: 0; box-shadow: none;
  transform: none; opacity: 0;
  animation: none;
  transition: opacity 0.25s ease;
}
.loader .ld-photos .ld-pic.on { opacity: 1; transition: opacity 0.3s ease 0.3s; animation: kb 6s ease-out both; }
.loader .ld-photos .ld-pic .photo, .loader .ld-photos .ld-pic svg { object-fit: cover; }
.ld-photos::after {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 249, 247, 0.28) 0 12%, rgba(255, 249, 247, 0) 42%),
    linear-gradient(rgba(164, 80, 106, 0.6), rgba(164, 80, 106, 0.6));
}
@keyframes kb { from { transform: scale(1.14); } to { transform: scale(1); } }
.loader .ld-photos .ld-pic:not(.p1) { display: none; }

/* SCROLL ANIMATION: how items fade and slide in as you scroll */
/* ---------- Reveal ---------- */
.js .reveal { opacity: 0.55; transform: translateY(26px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.75, 0.2, 1); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

@keyframes rise { from { transform: translateY(110%); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } }
@keyframes ping { from { transform: scale(0.6); opacity: 0.9; } to { transform: scale(1.8); opacity: 0; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes morph { 0%, 100% { border-radius: 62% 38% 55% 45% / 48% 58% 42% 52%; } 50% { border-radius: 42% 58% 38% 62% / 58% 42% 58% 42%; } }
@keyframes slide { to { transform: translateX(-50%); } }
@keyframes sweep { 0%, 55% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@keyframes eq { 0%, 100% { transform: scaleY(0.35); } 50% { transform: scaleY(1.25); } }
@keyframes arm { 0%, 10% { transform: rotate(0); } 22%, 66% { transform: rotate(-42deg); } 78%, 100% { transform: rotate(0); } }
@keyframes car { 0%, 20% { transform: translateX(-80px); } 68%, 100% { transform: translateX(360px); } }
@keyframes key { 0%, 60%, 100% { fill-opacity: 0; } 10%, 30% { fill-opacity: 0.4; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes swing { from { transform: rotate(-7deg); } to { transform: rotate(7deg); } }
@keyframes stitch { to { stroke-dashoffset: -24; } }


/* SECTION: Hero. The video behind the hero and the profile panel */
/* ---------- Hero showcase (video background) ---------- */
.hero-stage { position: relative; }
.hero-bg { position: absolute; z-index: 0; top: -90px; bottom: 0; left: 50%; width: 100vw; margin-left: -50vw; overflow: hidden; pointer-events: none; }
.hero-bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% 40%; opacity: 0.92; filter: saturate(1.02); }
html.dark .hero-bg video { opacity: 0.5; }
.hero-fade { position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--cream) 0%, color-mix(in srgb, var(--cream) 82%, transparent) 30%, color-mix(in srgb, var(--cream) 30%, transparent) 55%, transparent 80%),
    linear-gradient(180deg, var(--cream) 0%, transparent 18%, transparent 62%, var(--cream) 100%); }
.hero-stage .hero { position: relative; z-index: 1; display: block; padding-block: 44px 20px; min-height: 560px; }
.showcase { max-width: 500px; display: grid; gap: 14px; }
.p-head { position: relative; padding: 16px 0 36px 0; margin-left: 0; }
.p-art { position: absolute; z-index: 0; left: 0; top: 0; width: 236px; height: 100%; object-fit: fill; filter: drop-shadow(0 18px 22px rgba(0,0,0,0.35)); pointer-events: none; }
.p-head > *:not(.p-art) { position: relative; z-index: 1; }
.p-head .p-title { color: #fff; text-shadow: 0 2px 10px rgba(20,14,30,0.6); margin: 0 0 58px 16px; font-size: 1.05rem; gap: 8px; white-space: nowrap; }
.p-head .p-title svg { color: #fff; width: 22px; height: 22px; }
.av-wrap { position: relative; flex: none; width: 150px; height: 150px; margin-left: 43px; }
.av-wrap .avatar { position: absolute; inset: 0; width: 150px; height: 150px; border: 4px solid #e6c987; box-shadow: 0 0 0 3px rgba(26,22,36,0.85), 0 14px 28px -12px rgba(0,0,0,0.6); }
.kebab { position: absolute; z-index: 3; left: -28px; top: 56px; width: 40px; height: 40px; border-radius: 50%; background: #1c1a24; border: 3px solid #e6c987; display: grid; place-content: center; gap: 4px; justify-items: center; box-shadow: 0 6px 14px -6px rgba(0,0,0,0.6); }
.kebab i { width: 5px; height: 5px; border-radius: 50%; background: #f3ead6; display: block; }
.kebab em { position: absolute; right: -9px; top: -3px; width: 11px; height: 11px; background: #e23b4a; border: 2px solid #f3ead6; transform: rotate(45deg); }
.p-title { display: flex; align-items: center; gap: 12px; margin-top: -4px; font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); }
.p-title svg { width: 30px; height: 30px; color: var(--rose-deep); }
.p-id { display: flex; align-items: center; gap: 20px; }
.avatar { position: relative; flex: none; width: 128px; height: 128px; border-radius: 50%; overflow: hidden; border: 5px solid var(--white); background: linear-gradient(160deg, var(--petal), var(--blush)); box-shadow: 0 0 0 2px var(--rose), 0 18px 34px -18px var(--shadow); }
.avatar .photo { object-position: 50% 20%; }
.p-who { display: grid; gap: 8px; justify-items: start; min-width: 0; }
.p-who h1 { margin: 0; font-size: clamp(1.9rem, 4.2vw, 2.7rem); line-height: 1.05; letter-spacing: -0.02em; }
.p-sub { color: var(--muted); font-size: 0.92rem; }
.p-head .p-id { gap: 50px; align-items: center; }
.bubble { margin: 0; padding: 14px 20px; border-radius: 22px; color: var(--ink); font-size: 1.02rem; line-height: 1.5; background: color-mix(in srgb, var(--cream) 58%, transparent); border: 1px solid var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.stats { margin: 0; display: grid; gap: 2px; padding: 4px 0; }
.stats div { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; padding: 7px 4px; border-bottom: 1px dashed var(--line); }
.stats dt { font-family: var(--font-display); font-size: 1.15rem; color: var(--muted); }
.stats dd { margin: 0; font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); text-align: right; }
.slots { display: flex; gap: 12px; }
.slot { width: 92px; height: 112px; border-radius: 12px; display: grid; place-items: center; align-content: center; gap: 8px; color: var(--rose-deep); background: color-mix(in srgb, var(--cream) 50%, transparent); border: 1px solid var(--line); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.slot svg { width: 30px; height: 30px; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.slot svg circle { fill: currentColor; stroke: none; }
.slot b { font-family: var(--font-display); font-size: 0.92rem; font-weight: 500; color: var(--ink); }
.slot.pic { position: relative; overflow: hidden; padding: 0; align-content: end; border: 2px solid #e6c987; box-shadow: 0 0 0 2px rgba(26,22,36,0.7), 0 10px 20px -10px rgba(0,0,0,0.5); }
.slot.pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.slot.pic b { position: relative; width: 100%; text-align: center; padding: 14px 0 5px; color: #fff; font-size: 0.95rem; text-shadow: 0 1px 6px rgba(0,0,0,0.7); background: linear-gradient(180deg, transparent, rgba(20,14,26,0.78)); }
.slot.locked { color: #c9ad6a; background: rgba(34,36,42,0.55); border: 1px solid rgba(201,173,106,0.28); }
.slot.locked .lk { width: 56px; height: 56px; stroke-width: 1.4; }
.slot.on { border: 2px solid var(--rose); box-shadow: 0 0 0 3px color-mix(in srgb, var(--rose) 25%, transparent); background: color-mix(in srgb, var(--cream) 75%, transparent); }
@media (max-width: 900px) {
  .hero-stage .hero { padding-block: 30px 10px; min-height: 0; }
  .hero-bg video { object-position: 68% 30%; opacity: 0.8; }
  html.dark .hero-bg video { opacity: 0.42; }
  .hero-fade { background: linear-gradient(180deg, color-mix(in srgb, var(--cream) 70%, transparent) 0%, color-mix(in srgb, var(--cream) 55%, transparent) 60%, var(--cream) 100%); }
  .av-wrap, .av-wrap .avatar { width: 108px; height: 108px; } .av-wrap { margin-left: 28px; } .p-art { width: 164px; } .p-head .p-id { gap: 36px; } .p-head .p-title { margin-left: 10px; font-size: 0.9rem; } .p-head .p-who h1 { font-size: 1.5rem; } .p-head .p-title { margin-bottom: 40px; }
  .slot { width: 84px; height: 100px; }
}

/* RESPONSIVE: rules for tablets and phones */
/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  section { padding-block: 72px 0; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 48px; padding-top: 40px; }
  .art { max-width: 340px; }
  .about, .certs, .edu, .contact { grid-template-columns: minmax(0, 1fr); }
  .about { gap: 44px; }
  .about-wrap { max-width: 360px; }
  .skills { grid-template-columns: minmax(0, 1fr); }
  .projects { grid-template-columns: minmax(0, 1fr); }
  .logo { display: none; }
  .pill { padding-left: 8px; }
}
@media (max-width: 520px) {
  .facts { grid-template-columns: minmax(0, 1fr); }
  .list li { flex-direction: column; gap: 0; }
  .panel { padding-inline: 22px; }
  .body { padding-inline: 22px; }
  .chip.c1 { left: 0; }
  .pill .hire { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* LIGHT AND DARK MODE: night sky, stars and the clock button */
/* ===== Time of day: night sky and the clock ===== */
body::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: var(--dkn);
  background:
    radial-gradient(1.5px 1.5px at 8% 12%, #fff 50%, transparent 52%), radial-gradient(1px 1px at 22% 30%, #ffd9e6 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 38% 8%, #fff 50%, transparent 52%), radial-gradient(1px 1px at 52% 24%, #fff 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 66% 14%, #ffd9e6 50%, transparent 52%), radial-gradient(1px 1px at 78% 36%, #fff 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 90% 10%, #fff 50%, transparent 52%), radial-gradient(1px 1px at 14% 58%, #fff 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 44% 66%, #ffd9e6 50%, transparent 52%), radial-gradient(1px 1px at 84% 62%, #fff 50%, transparent 52%),
    radial-gradient(1px 1px at 60% 84%, #fff 50%, transparent 52%), radial-gradient(1.5px 1.5px at 28% 90%, #fff 50%, transparent 52%);
  animation: twinkle 5s ease-in-out infinite alternate; }
@keyframes twinkle { from { filter: brightness(0.7); } to { filter: brightness(1.25); } }
body::after { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: var(--glow);
  background: radial-gradient(120% 62% at 50% -8%, var(--glowA), transparent 66%), radial-gradient(80% 55% at 100% 0%, var(--glowB), transparent 62%), radial-gradient(70% 45% at 0% 100%, var(--glowB), transparent 66%); }
main, footer { position: relative; z-index: 1; }
.timebtn { position: fixed; right: 18px; bottom: 18px; z-index: 300; width: 54px; height: 54px; padding: 0; display: grid; place-items: center; border-radius: 50%; border: 4px solid #fff; color: #fff; cursor: pointer;
  background: rgba(92, 88, 86, 0.68); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.14), 0 8px 20px -8px rgba(0, 0, 0, 0.45);
  transition: transform 0.3s cubic-bezier(0.3, 1.5, 0.5, 1), background 0.3s; }
.timebtn:hover { transform: scale(1.08); background: rgba(92, 88, 86, 0.82); }
.timebtn:active { transform: scale(0.96); }
.timebtn .tb-dial { width: 100%; height: 100%; display: block; }
.timebtn .tb-txt { display: none; }
.tpanel { position: fixed; right: 18px; bottom: 84px; z-index: 301; width: min(640px, calc(100vw - 24px)); border-radius: 28px; padding: 18px 18px 20px; color: var(--ink);
  background: color-mix(in srgb, var(--white) 94%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid var(--line);
  box-shadow: 0 50px 90px -30px var(--shadow); transform: translateY(18px) scale(0.97); transform-origin: 100% 100%; opacity: 0; pointer-events: none; transition: transform 0.45s cubic-bezier(0.2, 0.9, 0.25, 1.15), opacity 0.3s ease; }
.tpanel.open { transform: none; opacity: 1; pointer-events: auto; }
.tp-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.tp-head h3 { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; }
.tp-now { text-align: center; flex: 1; }
.tp-now small { display: block; color: var(--muted); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
.tp-now b { display: block; font-family: var(--font-display); font-size: 2rem; line-height: 1.05; color: var(--rose-deep); letter-spacing: 0.02em; }
.tp-now span { font-size: 0.84rem; color: var(--muted); }
.tp-x { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--rose-deep); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.tp-row { display: flex; gap: 4px; overflow-x: auto; padding: 8px 2px 4px; scrollbar-width: none; align-items: flex-end; }
.tp-row::-webkit-scrollbar { display: none; }
.tslot { flex: 1 0 64px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 0; border: 0; background: none; color: var(--muted); font: 600 0.8rem var(--font-body); cursor: pointer; transition: transform 0.4s cubic-bezier(0.3, 1.5, 0.5, 1), color 0.3s; }
.tslot svg { width: 100%; max-width: 64px; height: auto; transition: transform 0.45s cubic-bezier(0.3, 1.5, 0.5, 1), filter 0.4s; opacity: 0.75; }
.tslot b { font-size: 0.95rem; color: var(--ink); font-weight: 600; }
.tslot em { font-style: normal; font-size: 0.72rem; font-weight: 500; }
.tslot:hover svg { transform: translateY(-4px) scale(1.08); opacity: 1; }
.tslot.on { color: var(--rose-deep); }
.tslot.on svg { transform: scale(1.35) translateY(-6px); opacity: 1; filter: drop-shadow(0 0 10px color-mix(in srgb, var(--rose) 70%, transparent)); }
.tslot.on b { font-size: 1.15rem; }
.tslot.now::after { content: "Now"; font-size: 0.66rem; color: var(--rose); letter-spacing: 0.08em; text-transform: uppercase; }
.tp-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.tp-foot p { margin: 0; font-size: 0.86rem; color: var(--muted); }
.tp-auto { padding: 10px 20px; border-radius: 999px; border: 1px solid var(--rose-deep); background: var(--rose-deep); color: #fff; font: 600 0.88rem var(--font-body); cursor: pointer; transition: transform 0.25s, box-shadow 0.25s; }
.tp-auto:hover { transform: translateY(-2px); box-shadow: 0 14px 24px -14px var(--shadow); }
.tp-auto[aria-pressed="true"] { background: transparent; color: var(--rose-deep); }
@media (max-width: 560px) { .timebtn { right: 14px; bottom: 14px; width: 50px; height: 50px; } .tpanel { right: 12px; bottom: 74px; } .tslot { flex-basis: 58px; } }
@media (prefers-reduced-motion: reduce) { body::before { animation: none; } }

/* SCROLL ANIMATION: the final, smoother timing (this overrides the earlier ones) */
/* ===== Smooth, elegant motion (overrides) ===== */
:root { --ease-out: cubic-bezier(0.22, 1, 0.36, 1); --ease-soft: cubic-bezier(0.4, 0, 0.2, 1); }
.mask > span { animation-duration: 1.4s; animation-timing-function: var(--ease-out); }
.fade { animation-duration: 1.3s; animation-timing-function: var(--ease-out); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(26px); } }
/* items */
.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity 1.2s var(--ease-soft), transform 1.5s var(--ease-out); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.r-left, .js .reveal.r-right, .js .reveal.r-zoom, .js .reveal.r-pop {
  opacity: 0; rotate: none; filter: none; transform: none; translate: 0 0; scale: 1;
  transition: opacity 1.2s var(--ease-soft), translate 1.5s var(--ease-out), scale 1.5s var(--ease-out); transition-delay: var(--d, 0s); }
.js .reveal.r-left { translate: -46px 0; }
.js .reveal.r-right { translate: 46px 0; }
.js .reveal.r-zoom { translate: 0 30px; scale: 0.95; }
.js .reveal.r-pop { translate: 0 34px; scale: 0.94; }
.js .reveal.r-left.in, .js .reveal.r-right.in, .js .reveal.r-zoom.in, .js .reveal.r-pop.in { opacity: 1; translate: 0 0; scale: 1; rotate: none; filter: none; transform: none; }
.js .reveal.r-slide { opacity: 0; transform: translateX(60px); transition: opacity 1.2s var(--ease-soft), transform 1.6s var(--ease-out); transition-delay: var(--d, 0s); }
.js .reveal.r-slide.in { opacity: 1; transform: none; }
.js .reveal.r-flip { opacity: 0; transform: perspective(1100px) rotateX(-10deg) translateY(36px); transition: opacity 1.2s var(--ease-soft), transform 1.6s var(--ease-out); transition-delay: var(--d, 0s); }
.js .reveal.r-flip.in { opacity: 1; transform: none; }
.js .panel .list li { translate: 14px 0; transition: opacity 0.9s var(--ease-soft), translate 1.1s var(--ease-out); transition-delay: calc(0.35s + var(--k, 0) * 0.09s); }
.js .about .reveal:not(.in) .facts li { opacity: 0; scale: 0.9; }
.js .facts li { transition: opacity 0.9s var(--ease-soft), scale 1.1s var(--ease-out); }
/* headings: soft rise instead of hard wipes */
.js .head.reveal .eyebrow { translate: -18px 0; transition: opacity 1s var(--ease-soft) 0.1s, translate 1.2s var(--ease-out) 0.1s; }
.js .head.reveal h2, .js #skills .head.reveal h2, .js #projects .head.reveal h2, .js #hobbies .head.reveal h2 {
  clip-path: none; opacity: 0; transform: translateY(28px); letter-spacing: -0.015em;
  transition: opacity 1.2s var(--ease-soft) 0.2s, transform 1.5s var(--ease-out) 0.2s; }
.js #projects .head.reveal h2 { transform: translateX(-30px); }
.js #hobbies .head.reveal h2 { transform: translateY(14px) scale(0.97); transform-origin: left center; }
.js .head.reveal.in h2, .js #skills .head.reveal.in h2, .js #projects .head.reveal.in h2, .js #hobbies .head.reveal.in h2 { clip-path: none; opacity: 1; transform: none; }
.js #certifications .head.reveal h2 { clip-path: none; opacity: 0; letter-spacing: 0.1em; transform: none; transition: opacity 1.3s var(--ease-soft) 0.2s, letter-spacing 1.9s var(--ease-out) 0.2s; }
.js #certifications .head.reveal.in h2 { opacity: 1; letter-spacing: -0.015em; clip-path: none; }
/* section backdrops: gentle fades, each from a different direction */
#about::before { transition: opacity 1.6s var(--ease-soft), transform 2s var(--ease-out); transform: scale(0.7); }
#skills::before { opacity: 0; transform: translateX(-40px) scale(0.985); transform-origin: center; transition: opacity 1.4s var(--ease-soft), transform 1.9s var(--ease-out); }
#skills.sec-in::before { opacity: 1; transform: none; }
#projects::before { transition: opacity 1.6s var(--ease-soft), transform 2s var(--ease-out); }
#certifications::before { clip-path: none; opacity: 0; transform: translateY(44px) scale(0.985); transition: opacity 1.4s var(--ease-soft), transform 1.9s var(--ease-out); }
#certifications.sec-in::before { clip-path: none; opacity: 1; transform: none; }
#hobbies::before { clip-path: none; opacity: 0; transform: translateY(-36px) scale(0.99); transition: opacity 1.4s var(--ease-soft), transform 1.9s var(--ease-out); }
#hobbies.sec-in::before { clip-path: none; opacity: 1; transform: none; }
#contact::before { transform: scale(0.6); transition: opacity 1.8s var(--ease-soft), transform 2.2s var(--ease-out); }
#contact.sec-in::before { transform: none; opacity: 1; }
.hscroll, .hrow { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .reveal.r-slide, .js .reveal.r-flip, .js .reveal.r-left, .js .reveal.r-right, .js .reveal.r-zoom, .js .reveal.r-pop { opacity: 1; transform: none; translate: none; scale: none; }
  .js .head.reveal h2 { opacity: 1; transform: none; }
  #skills::before, #certifications::before, #hobbies::before { opacity: 1; transform: none; }
}

/* ===== Hobbies + Certifications: extra smooth, elegant entrance ===== */
/* Cards rise in place (no sideways movement, no blur). Sideways movement used to widen the scroller
   and made the browser slide it back, which looked like the section was shaking. */
.js #hobbies .hscroll:not(.h-done) { scroll-snap-type: none; scroll-behavior: auto; }
.js #hobbies .hscroll .hcard { opacity: 0; transform: translateY(34px) scale(0.95); will-change: opacity, transform;
  transition: opacity 1.1s var(--ease-soft), transform 1.4s var(--ease-out); transition-delay: calc(0.3s + var(--i, 0) * 0.12s); }
.js #hobbies .hscroll.h-in .hcard { opacity: 1; transform: none; }
.js #hobbies .hscroll.h-done .hcard { will-change: auto; transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.25, 1.2), box-shadow 0.5s ease; transition-delay: 0s; }
.js #hobbies .hfoot { opacity: 0; transform: translateY(16px); transition: opacity 1.2s var(--ease-soft) 0.9s, transform 1.4s var(--ease-out) 0.9s; }
.js #hobbies.sec-in .hfoot { opacity: 1; transform: none; }
.js #hobbies .hprog i { transition-property: transform, width; }
.js #certifications .panel.reveal { opacity: 0; transform: translateY(46px) scale(0.975); filter: blur(6px); transform-origin: 50% 100%;
  transition: opacity 1.3s var(--ease-soft), transform 1.8s var(--ease-out), filter 1.3s var(--ease-soft); transition-delay: var(--d, 0s); }
.js #certifications .panel.reveal.in { opacity: 1; transform: none; filter: none; }
.js #certifications .certs > .panel:nth-child(2) { --d: 0.22s; }
.js #certifications .panel .list li { opacity: 0; translate: 0 14px; transition: opacity 1s var(--ease-soft), translate 1.3s var(--ease-out); transition-delay: calc(0.55s + var(--k, 0) * 0.14s); }
.js #certifications .panel.in .list li { opacity: 1; translate: 0 0; }
.js #certifications .panel .list li { position: relative; }
@media (prefers-reduced-motion: reduce) {
  .js #hobbies .hscroll .hcard, .js #hobbies .hfoot, .js #certifications .panel.reveal, .js #certifications .panel .list li { opacity: 1; transform: none; filter: none; translate: none; }
}

/* The three dots menu: Change picture and Services */
/* ===== showcase menu (three dots) ===== */
button.kebab { padding: 0; font: inherit; cursor: pointer; transition: transform 0.3s cubic-bezier(0.3, 1.5, 0.5, 1), box-shadow 0.3s; }
button.kebab:hover { transform: scale(1.1); box-shadow: 0 8px 18px -6px rgba(0,0,0,0.7), 0 0 0 4px rgba(230,201,135,0.25); }
button.kebab:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; }
button.kebab[aria-expanded="true"] { transform: scale(1.06); }
.kmenu { position: fixed; z-index: 410; min-width: 196px; padding: 8px; border-radius: 18px; background: var(--white); border: 1px solid var(--line); box-shadow: 0 24px 50px -22px var(--shadow); opacity: 0; transform: translateY(-6px) scale(0.96); transform-origin: top left; transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2); }
.kmenu[hidden] { display: none; }
.kmenu.open { opacity: 1; transform: none; }
.kmenu button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 14px; border: 0; border-radius: 12px; background: transparent; color: var(--ink); font: inherit; font-size: 0.96rem; text-align: left; cursor: pointer; transition: background 0.2s, transform 0.2s; }
.kmenu button:hover, .kmenu button:focus-visible { background: var(--blush); outline: 0; transform: translateX(3px); }
.kmenu svg { width: 20px; height: 20px; fill: none; stroke: var(--rose-deep); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.kmenu svg circle { fill: var(--rose-deep); }
.km-card { width: min(520px, 100%); }
.km-card .pm-body { padding-top: 30px; }
.km-pics { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; }
.km-pic { position: relative; padding: 0; aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden; border: 3px solid transparent; background: linear-gradient(160deg, var(--petal), var(--blush)); cursor: pointer; transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2), border-color 0.25s, box-shadow 0.3s; }
.km-pic:hover { transform: translateY(-4px); box-shadow: 0 16px 26px -16px var(--shadow); }
.km-pic:focus-visible { outline: 3px solid var(--rose); outline-offset: 2px; }
.km-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.km-pic svg { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--rose); }
.km-pic b { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 6px 6px; font: 500 0.86rem var(--font-display); color: #fff; text-align: center; background: linear-gradient(180deg, transparent, rgba(30,18,26,0.7)); }
.km-pic.on { border-color: var(--rose-deep); box-shadow: 0 0 0 3px color-mix(in srgb, var(--rose) 30%, transparent); }
.km-pic.on::after { content: "\2713"; position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--rose-deep); color: #fff; font-size: 0.8rem; }
.km-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.km-list li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; padding: 14px 16px; border-radius: 18px; background: color-mix(in srgb, var(--blush) 55%, transparent); border: 1px solid var(--line); opacity: 0; transform: translateY(12px); animation: kmIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards; animation-delay: calc(var(--k, 0) * 0.07s); }
.km-list .n { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(150deg, var(--blush), var(--petal)); color: var(--rose-deep); font: 500 1.05rem var(--font-display); }
.km-list h4 { margin: 0 0 2px; font: 500 1.1rem var(--font-display); color: var(--ink); }
.km-list p { margin: 0; font-size: 0.92rem; color: var(--muted); }
@keyframes kmIn { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .km-list li { animation: none; opacity: 1; transform: none; } .kmenu { transition: none; } }

/* Services popup: package cards and the inclusions table */
/* ===== service packages ===== */
.km-card.wide { width: min(940px, 100%); }
.km-pk { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.km-pcard { display: flex; flex-direction: column; gap: 10px; padding: 20px 20px 18px; border-radius: 22px; background: color-mix(in srgb, var(--blush) 55%, transparent); border: 1px solid var(--line); opacity: 0; transform: translateY(14px); animation: kmIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards; animation-delay: calc(var(--k, 0) * 0.1s); transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2), box-shadow 0.3s; }
.km-pcard:hover { transform: translateY(-4px); box-shadow: 0 20px 34px -22px var(--shadow); }
.km-pcard h4 { margin: 0; font: 500 1.3rem var(--font-display); color: var(--ink); }
.km-pcard .pr { display: grid; gap: 1px; }
.km-pcard .pr b { font: 500 1.28rem var(--font-display); color: var(--rose-deep); }
.km-pcard .pr span { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.km-pcard p { margin: 0; font-size: 0.93rem; line-height: 1.5; color: var(--muted); flex: 1; }
.km-pcard dl { margin: 4px 0 0; display: grid; gap: 0; }
.km-pcard dl div { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px dashed var(--line); font-size: 0.88rem; }
.km-pcard dt { color: var(--muted); }
.km-pcard dd { margin: 0; color: var(--ink); font-weight: 500; text-align: right; }
.km-h { margin: 26px 0 10px; font: 500 1.2rem var(--font-display); color: var(--ink); }
.km-tw { overflow-x: auto; border-radius: 18px; border: 1px solid var(--line); -webkit-overflow-scrolling: touch; }
.km-tbl { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 0.92rem; }
.km-tbl th, .km-tbl td { padding: 11px 14px; text-align: center; border-bottom: 1px solid var(--line); vertical-align: middle; }
.km-tbl thead th { background: color-mix(in srgb, var(--rose-deep) 85%, var(--ink)); color: #fff; font: 500 0.95rem var(--font-display); position: sticky; top: 0; }
.km-tbl tbody th { text-align: left; font-weight: 500; color: var(--ink); position: sticky; left: 0; background: color-mix(in srgb, var(--cream) 92%, var(--blush)); }
.km-tbl thead th:first-child { text-align: left; }
.km-tbl tbody tr:nth-child(even) td, .km-tbl tbody tr:nth-child(even) th { background: color-mix(in srgb, var(--blush) 40%, var(--cream)); }
.km-tbl tbody tr:last-child th, .km-tbl tbody tr:last-child td { border-bottom: 0; }
.km-tbl td { color: var(--ink); }
.km-tbl .yes { color: #2f9e62; font-weight: 700; font-size: 1.1rem; }
.km-tbl small { display: block; margin-top: 2px; font-size: 0.76rem; color: #2f9e62; font-weight: 500; }
.km-tbl .no { color: var(--muted); opacity: 0.6; }
@media (max-width: 760px) { .km-pk { grid-template-columns: 1fr; } }

/* The Jinhsi card and the showcase video that replaces the background */
/* ===== Jinhsi showcase video (click the Jinhsi card) ===== */
.hero-bg video#heroVid2 { opacity: 0; object-position: 50% 50%; transition: opacity 1.4s ease; filter: none; }
.hero-bg video#heroVid { transition: opacity 1.4s ease; }
.hero-bg.show video#heroVid2 { opacity: 0.96; }
.hero-bg.show video#heroVid { opacity: 0; }
.hero-fade { transition: opacity 1.4s ease; }
button.slot.pic { font: inherit; cursor: pointer; padding: 0; transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2), box-shadow 0.3s; }
button.slot.pic:hover { transform: translateY(-5px) scale(1.04); box-shadow: 0 0 0 3px color-mix(in srgb, var(--rose) 35%, transparent), 0 18px 26px -14px rgba(0,0,0,0.6); }
button.slot.pic:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; }
.slot.pic .pl { position: absolute; z-index: 2; left: 50%; top: 42%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; display: grid; place-items: center; background: rgba(24,16,30,0.6); border: 1.5px solid rgba(255,255,255,0.85); color: #fff; opacity: 0.9; transition: transform 0.3s, opacity 0.3s; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.slot.pic .pl svg { width: 16px; height: 16px; fill: currentColor; }
.slot.pic .pl .i-play { margin-left: 2px; }
.slot.pic .pl .i-stop { display: none; }
button.slot.pic:hover .pl { transform: scale(1.12); opacity: 1; }
.slot.pic.playing .pl .i-play { display: none; }
.slot.pic.playing .pl .i-stop { display: block; }
.slot.pic.playing { animation: jpulse 1.8s ease-in-out infinite; }
.slot.pic.loading .pl { animation: jspin 0.9s linear infinite; border-top-color: transparent; }
@keyframes jpulse { 0%, 100% { box-shadow: 0 0 0 2px rgba(26,22,36,0.7), 0 0 0 4px color-mix(in srgb, var(--rose) 30%, transparent); } 50% { box-shadow: 0 0 0 2px rgba(26,22,36,0.7), 0 0 0 9px color-mix(in srgb, var(--rose) 0%, transparent); } }
@keyframes jspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .slot.pic.playing, .slot.pic.loading .pl { animation: none; } .hero-bg video, .hero-fade { transition: none; } }

.hero-dim { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; background: linear-gradient(90deg, rgba(12,8,18,0.78) 0%, rgba(12,8,18,0.5) 40%, rgba(12,8,18,0.12) 78%, transparent 100%); }
.hero-bg.show .hero-dim { opacity: 1; }
.hero-bg.show .hero-fade { opacity: 0.55; }
.hero-stage.showing .showcase { --ink: #fff4ee; --muted: #ecd6df; --line: rgba(255,255,255,0.24); --cream: #1d1426; --blush: #2b1c34; --white: #3a2745; --shadow: rgba(0,0,0,0.6); }
.hero-stage .showcase { transition: color 1s ease; }

/* RESPONSIVE: final small-screen adjustments */
/* ===== responsive polish ===== */
@media (max-width: 900px) { .about-wrap { width: min(100%, 300px); margin-inline: auto; } .hero-stage .showcase { max-width: 560px; } }
@media (max-width: 420px) {
  .pill { padding: 5px 6px; }
  .menu a { font-size: 0.78rem; padding: 8px 9px; }
  .about-wrap { width: min(100%, 250px); }
}
@media (max-width: 340px) { .menu a { font-size: 0.74rem; padding: 7px 7px; } }
.pill, .menu { max-width: 100%; }
img, video, svg { max-width: 100%; }

/* ===== Mini player next to the clock button (shows while the showcase video plays) ===== */
.mini-show { position: fixed; z-index: 300; right: 82px; bottom: 23px; width: 44px; height: 44px; transform-origin: 100% 50%; animation: msIn 0.5s cubic-bezier(0.3, 1.5, 0.5, 1) both; }
.mini-show[hidden] { display: none; }
.ms-main { position: relative; width: 100%; height: 100%; padding: 0; border-radius: 50%; overflow: hidden; border: 3px solid #fff; background: #3b2a44; cursor: pointer; box-shadow: 0 10px 22px -8px rgba(0,0,0,0.55); transition: transform 0.3s cubic-bezier(0.3, 1.5, 0.5, 1); }
.ms-main:hover { transform: scale(1.1); }
.ms-main:active { transform: scale(0.95); }
.ms-main:focus-visible, .ms-x:focus-visible { outline: 3px solid var(--rose); outline-offset: 2px; }
.ms-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
.ms-ic { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(24, 16, 30, 0.45); color: #fff; }
.ms-ic svg { width: 18px; height: 18px; fill: currentColor; }
.ms-ic .i-play { display: none; margin-left: 2px; }
.mini-show.paused .ms-ic .i-pause { display: none; }
.mini-show.paused .ms-ic .i-play { display: block; }
.mini-show:not(.paused) .ms-main { animation: msPulse 2s ease-in-out infinite; }
.ms-x { position: absolute; top: -7px; left: -7px; width: 20px; height: 20px; padding: 0; border-radius: 50%; display: grid; place-items: center; border: 2px solid #fff; background: var(--rose-deep); color: #fff; cursor: pointer; box-shadow: 0 4px 10px -3px rgba(0,0,0,0.5); transition: transform 0.25s; }
.ms-x:hover { transform: scale(1.15); }
.ms-x svg { width: 10px; height: 10px; }
@keyframes msIn { from { opacity: 0; transform: translateX(14px) scale(0.6); } to { opacity: 1; transform: none; } }
@keyframes msPulse { 0%, 100% { box-shadow: 0 10px 22px -8px rgba(0,0,0,0.55), 0 0 0 0 rgba(255,255,255,0.0); } 50% { box-shadow: 0 10px 22px -8px rgba(0,0,0,0.55), 0 0 0 7px rgba(255,255,255,0.18); } }
@media (max-width: 560px) { .mini-show { right: 74px; bottom: 17px; } }
@media (prefers-reduced-motion: reduce) { .mini-show, .mini-show:not(.paused) .ms-main { animation: none; } }

/* About me card: normal photo (no blend), centered on the person */
.about-wrap .arch .photo { mix-blend-mode: normal; object-position: 50% 50%; }

/* 3D card: soft pearl sheen instead of a strong rainbow (gentle, pastel, low opacity) */
.holo { mix-blend-mode: soft-light; opacity: calc(var(--o, 0) * 0.5); filter: none;
  background: linear-gradient(115deg, transparent 25%, rgba(255,205,225,0.55) 38%, rgba(255,245,225,0.6) 48%, rgba(215,230,255,0.5) 58%, transparent 72%);
  background-size: 240% 240%; transition: opacity 0.7s ease; }
.glare { mix-blend-mode: soft-light; opacity: calc(var(--o, 0) * 0.45); transition: opacity 0.7s ease;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.8), rgba(255,255,255,0) 55%); }
.card3d { transition: transform 0.9s cubic-bezier(0.2, 0.75, 0.2, 1); }
.card3d.live { transition: transform 0.25s ease-out; }
.card3d::after { box-shadow: inset 0 0 0 1px rgba(255,255,255,0.6), inset 0 0 14px rgba(255,255,255,0.12); }
.card3d.idle .holo { animation: holoIdle2 9s ease-in-out infinite; }
@keyframes holoIdle2 { 0%, 60%, 100% { opacity: 0; background-position: 0% 50%; } 78% { opacity: 0.3; } 92% { opacity: 0; background-position: 100% 50%; } }

/* Looping muted videos used like GIFs in project pictures */
.pic video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.pm-main video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: pmIn 0.45s ease; pointer-events: none; }

/* Screenshot projects: show the whole picture with a little space around it instead of cropping */
.mosaic.fit .pic, .pm-main.fit { background: linear-gradient(150deg, var(--g1), var(--petal)); }
.mosaic.fit .pic img { inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); object-fit: contain; }
.card:hover .mosaic.fit .pic img { transform: none; }
.js .card .mosaic.fit { scale: 1; }
.pm-main.fit img { inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); object-fit: contain; }

/* Pictures shown whole (not cropped): sharp picture on top of a soft blurred copy */
.fitbg { position: absolute; inset: -24px; background-size: cover; background-position: center; filter: blur(22px) saturate(1.1); opacity: 0.6; }
.pic img.contain, .pm-main img.contain { object-fit: contain; position: absolute; z-index: 1; }
.card:hover .pic img.contain { transform: scale(1.02); }
.pic img.contain, .pm-main img.contain, .fitbg { pointer-events: none; }
.pm-nav, .pm-thumbs, .pm-x { z-index: 5; }

/* Loader: no white ring around the blossom once loading reaches 100% */
.js .loader .ld-circle, .js .loader .ld-circle:focus, .js .loader .ld-circle:focus-visible, .js .loader .ld-circle.ready:focus-visible { outline: 0 !important; }
.js .loader .ld-circle.ready { box-shadow: none !important; animation: none !important; border: 0; }

/* Projects: an odd last card sits centered under the pair above it */
@media (min-width: 821px) {
  .projects > .card:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 13px); }
}

/* Certifications: left column stacks Salesforce and Certiport */
.certcol { display: grid; gap: 22px; align-content: start; min-width: 0; }
