/* Self-hosted fonts (SIL Open Font License) */
@font-face { font-family: "Yellowtail"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/yellowtail-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url("../assets/fonts/montserrat-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 800; font-display: swap; src: url("../assets/fonts/montserrat-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 900; font-display: swap; src: url("../assets/fonts/montserrat-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/oswald-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 500; font-display: swap; src: url("../assets/fonts/oswald-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 600; font-display: swap; src: url("../assets/fonts/oswald-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto Slab"; font-style: normal; font-weight: 300; font-display: swap; src: url("../assets/fonts/roboto-slab-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto Slab"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/roboto-slab-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto Slab"; font-style: normal; font-weight: 500; font-display: swap; src: url("../assets/fonts/roboto-slab-latin-500-normal.woff2") format("woff2"); }
/*
VOICE   bold and warm: big heavy headlines with a handwritten accent, condensed caps for labels
IDEA    a night-sky "data galaxy" that reshapes itself for each chapter of the page
PICTURE glowing particle shapes (globe, ring, wave, bar chart, helix, galaxy) behind liquid-glass panels
COLOUR  deep purple #2A1B3D, violet #44318D, pink #D83F87, coral #E98074, mist #A4B3B6
TYPE    Montserrat 800/900 headlines, Yellowtail script accent, Oswald labels, Roboto Slab body
*/
:root {
  --bg: #1b1028;
  --ink: #fbf6fa;
  --ink-2: #e2d9e8;
  --muted: #a4b3b6;
  --line: rgba(255, 255, 255, 0.12);
  --line-2: rgba(255, 255, 255, 0.2);
  --glass: rgba(42, 27, 61, 0.48);
  --glass-2: rgba(68, 49, 141, 0.28);
  --pink: #d83f87;
  --pink-2: #e2589a;
  --coral: #e98074;
  --violet: #44318d;
  --plum: #2a1b3d;

  --font: "Roboto Slab", Georgia, serif;
  --font-display: "Montserrat", -apple-system, "Segoe UI", sans-serif;
  --font-label: "Oswald", "Arial Narrow", sans-serif;
  --font-script: "Yellowtail", "Brush Script MT", cursive;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --radius: 24px;
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: radial-gradient(ellipse 120% 90% at 70% 0%, #44318d 0%, #2a1b3d 45%, #170c22 100%) fixed var(--bg); color: var(--ink); font: 400 16px/1.7 var(--font); letter-spacing: 0; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
strong { color: var(--ink); font-weight: 500; }
::selection { background: var(--pink); color: #fff; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; border-radius: 8px; }
.container { width: min(var(--container), 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--pink); color: #fff; padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 16px; }

/* Background terrain (fixed behind the page, fades in after the intro) */
.bg-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; }
.bg-veil { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse 80% 70% at 50% 45%, rgba(23,12,34,0) 30%, rgba(23,12,34,0.55) 100%); }

/* Scroll progress */
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 70; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--pink), var(--coral)); transform-origin: left; transform: scaleX(0); }

/* Glass surface */
.glass { background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 12px 22px; border-radius: 999px; border: 1px solid transparent; font: 500 15px/1 var(--font-label); text-transform: uppercase; letter-spacing: 0.1em; cursor: pointer; transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease; }
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--pink); color: #fff; }
.btn--glass { background: rgba(255,255,255,0.08); color: var(--ink); border-color: var(--line-2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn--small { min-height: 36px; padding: 8px 16px; font-size: 14px; }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: var(--pink-2); }
  .btn--glass:hover { background: rgba(255,255,255,0.14); }
}

/* Nav */
.nav { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 60; width: min(var(--container), 100% - 24px); display: flex; align-items: center; gap: 16px; padding: 8px 8px 8px 12px; border-radius: 999px; background: rgba(18,18,20,0.66); border: 1px solid var(--line); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); transition: transform 300ms var(--ease-out); }
.nav.is-hidden { transform: translate(-50%, -140%); }
.nav__logo { display: flex; align-items: center; gap: 10px; font: 800 15px/1 var(--font-display); letter-spacing: -0.01em; margin-right: auto; }
.nav__logo img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.nav__links { display: flex; gap: 2px; }
.nav__links a { position: relative; z-index: 1; padding: 8px 14px; border-radius: 999px; font: 500 13.5px/1.2 var(--font-label); text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-2); transition: color 200ms ease, background-color 200ms ease; }
.nav__links a.is-active { color: var(--ink); background: rgba(255,255,255,0.1); }
@media (hover: hover) and (pointer: fine) { .nav__links a:hover { color: var(--ink); } }
.nav__icons { display: flex; align-items: center; gap: 6px; }
.icon-btn { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--ink-2); transition: background-color 200ms ease, color 200ms ease; }
.icon-btn svg { width: 17px; height: 17px; fill: currentColor; }
@media (hover: hover) and (pointer: fine) { .icon-btn:hover { background: rgba(255,255,255,0.1); color: var(--ink); } }

/* Intro */
.intro { position: relative; min-height: 100svh; display: grid; place-items: center; text-align: center; overflow: hidden; }
.intro__glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 50% 30%, rgba(23,12,34,0.65), rgba(23,12,34,0.25) 35%, transparent 60%); }
.intro__inner { position: relative; padding-block: 120px 96px; }
.intro__portrait { position: relative; width: clamp(160px, 22vw, 230px); aspect-ratio: 1; margin: 0 auto 32px; }
.intro__portrait img { position: relative; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; box-shadow: 0 30px 80px -20px rgba(216,63,135,0.45), 0 0 0 1px rgba(255,255,255,0.12); }
.portrait-ring { position: absolute; inset: -10px; border-radius: 50%; background: conic-gradient(from 0deg, var(--pink), var(--coral), transparent 40%, transparent 60%, var(--pink)); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px)); mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px)); animation: spin 8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.status { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 500; background: rgba(28,28,30,0.85); border: 1px solid var(--line-2); backdrop-filter: blur(12px); }
.status__dot { width: 8px; height: 8px; border-radius: 50%; background: #30d158; box-shadow: 0 0 0 3px rgba(48,209,88,0.25); }
.intro__hello { font: 500 clamp(15px, 1.6vw, 18px)/1.4 var(--font-label); text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-2); margin-bottom: 18px; }
.intro__title { font-size: clamp(40px, 7vw, 96px); font-weight: 900; letter-spacing: -0.035em; line-height: 1; margin-bottom: 22px; }
.grad { font-family: var(--font-script); font-weight: 400; letter-spacing: 0; font-size: 1.12em; line-height: 1.05; background: linear-gradient(92deg, var(--pink) 0%, var(--coral) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding: 0 0.12em; }
.intro__lead { max-width: 620px; margin: 0 auto 34px; font-size: clamp(17px, 1.7vw, 21px); color: var(--muted); }
.intro__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.intro__social { display: flex; justify-content: center; gap: 24px; font-size: 15px; }
.intro__social a { color: var(--pink); }
@media (hover: hover) and (pointer: fine) { .intro__social a:hover { text-decoration: underline; text-underline-offset: 4px; } }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; width: 24px; height: 38px; margin-left: -12px; border: 1.5px solid var(--line-2); border-radius: 999px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--ink); animation: cue 1.8s var(--ease-out) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 40px; }
.stat { border-radius: 20px; padding: 22px 22px 20px; }
.stat b { display: block; font-family: var(--font-display); font-size: clamp(30px, 3.4vw, 42px); font-weight: 900; letter-spacing: -0.035em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.stat span:not(.count) { display: block; margin-top: 6px; color: var(--muted); font-size: 14px; line-height: 1.4; }

/* Sections */
.section { padding-block: clamp(72px, 10vw, 128px); }
.eyebrow { color: var(--pink); font: 500 14px/1.2 var(--font-label); text-transform: uppercase; letter-spacing: 0.16em; margin-bottom: 14px; }
.h2 { font-size: clamp(32px, 5vw, 60px); font-weight: 900; letter-spacing: -0.035em; margin-bottom: 44px; }
.h2 .script, .contact__title .script { font-family: var(--font-script); font-weight: 400; letter-spacing: 0; color: var(--pink); font-size: 1.1em; }
.soft { color: var(--muted); }
.card { border-radius: var(--radius); padding: 28px; }
.card h3 { font-size: 21px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15.5px; margin: 0; }

/* About */
.about__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.about__grid .h2 { margin-bottom: 0; }
.about__text p { color: var(--ink-2); font-size: 18px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.facts li { padding: 16px 18px; border-radius: 16px; background: var(--glass-2); border: 1px solid var(--line); font-weight: 500; }
.facts span { display: block; font-size: 13px; color: var(--muted); font-weight: 400; margin-bottom: 2px; }

/* Services */
.services__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.card__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(135deg, rgba(216,63,135,0.25), rgba(233,128,116,0.12)); margin-bottom: 22px; }
.card__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--coral); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.services .card { transition: transform 300ms var(--ease-out), border-color 300ms ease; }
@media (hover: hover) and (pointer: fine) { .services .card:hover { transform: translateY(-6px); border-color: rgba(216,63,135,0.4); } }

/* Work cards */
.work__head { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 20px; margin-bottom: 36px; }
.work__head .h2 { margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; z-index: 1; min-height: 38px; padding: 8px 16px; border-radius: 999px; border: 0; background: transparent; color: var(--ink-2); font: 500 13px/1 var(--font-label); text-transform: uppercase; letter-spacing: 0.1em; cursor: pointer; transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, transform 160ms var(--ease-out); }
.chip:active { transform: scale(0.97); }
.chip.is-active { color: #fff; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pcard { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; transition: transform 350ms var(--ease-out), border-color 300ms ease, box-shadow 350ms var(--ease-out); }
.pcard.is-hidden { display: none; }
.pcard__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #fff; }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; object-position: left top; transition: transform 700ms var(--ease-out); }
.badge { position: absolute; top: 12px; left: 12px; padding: 5px 10px; border-radius: 999px; background: var(--pink); color: #fff; font-size: 12px; font-weight: 600; }
.pcard__body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 24px; }
.pcard__body > .pcard__kicker { font: 500 12.5px/1.3 var(--font-label); text-transform: uppercase; letter-spacing: 0.12em; color: var(--coral); margin-bottom: 8px; }
.pcard h3 { font-size: 21px; margin-bottom: 10px; line-height: 1.2; }
.pcard h3 a { background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size 300ms var(--ease-out); }
.pcard__body > p { color: var(--muted); font-size: 15px; line-height: 1.55; }
.kpis { display: flex; gap: 10px; margin: 4px 0 16px; flex-wrap: wrap; }
.kpis li { padding: 8px 12px; border-radius: 12px; background: rgba(216,63,135,0.1); border: 1px solid rgba(216,63,135,0.22); font-size: 13px; color: var(--ink-2); }
.kpis b { color: var(--ink); font-size: 15px; margin-right: 2px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.tags li { font-size: 12.5px; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,0.06); color: var(--ink-2); }
.pcard__links { display: flex; gap: 18px; margin-top: auto; font-size: 15px; font-weight: 500; }
.pcard__links a { color: var(--pink); }
.pcard--text { background: linear-gradient(160deg, rgba(216,63,135,0.35), rgba(68,49,141,0.4) 60%); }
.pcard--text .pcard__body { justify-content: center; padding: 30px; }
.big-num { font-family: var(--font-display); font-size: 84px; font-weight: 900; letter-spacing: -0.05em; line-height: 1; margin: 0 0 8px; background: linear-gradient(180deg, #fff, #f3b1cf); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (hover: hover) and (pointer: fine) {
  .pcard:hover { transform: translateY(-6px); border-color: rgba(216,63,135,0.35); box-shadow: 0 24px 60px -24px rgba(216,63,135,0.35); }
  .pcard:hover .pcard__media img { transform: scale(1.04); }
  .pcard:hover h3 a { background-size: 100% 1px; }
  .chip:not(.is-active):hover { background: rgba(255,255,255,0.12); color: var(--ink); }
}
.more { text-align: center; margin: 36px 0 0; }
.more a { color: var(--pink); font-weight: 500; }

/* Experience */
.timeline { position: relative; padding-left: 40px; max-width: 920px; }
.timeline__line { position: absolute; left: 10px; top: 14px; bottom: 14px; width: 2px; background: var(--line); border-radius: 2px; }
.timeline__fill { position: absolute; inset: 0; background: linear-gradient(var(--pink), var(--coral)); transform-origin: top; transform: scaleY(0); }
.job { position: relative; border-radius: var(--radius); padding: 26px 28px; margin-bottom: 18px; }
.job__dot { position: absolute; left: -36px; top: 32px; width: 14px; height: 14px; border-radius: 50%; background: var(--plum); border: 2px solid var(--pink); }
.job__head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 14px; }
.job h3 { font-size: 22px; }
.job h3 span { color: var(--coral); font-weight: 600; margin-left: 6px; }
.job__when { margin: 0; font-size: 14px; color: var(--muted); }
.job ul li { position: relative; padding-left: 18px; color: var(--ink-2); font-size: 15.5px; margin-bottom: 8px; }
.job ul li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 6px; height: 6px; border-radius: 50%; background: var(--pink); }

/* Skills */
.skills__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.chips li { font-size: 14px; padding: 7px 13px; border-radius: 999px; background: rgba(255,255,255,0.07); border: 1px solid var(--line); color: var(--ink-2); }

/* Contact */
.contact__card { border-radius: 32px; padding: clamp(36px, 6vw, 72px); text-align: center; background: linear-gradient(160deg, rgba(216,63,135,0.3), rgba(68,49,141,0.35) 60%); }
.contact__title { font-size: clamp(38px, 6vw, 72px); font-weight: 900; letter-spacing: -0.035em; margin-bottom: 16px; }
.contact__lead { color: var(--ink-2); max-width: 540px; margin: 0 auto 18px; font-size: 18px; }
.contact__email { font-size: clamp(18px, 2.4vw, 24px); font-weight: 600; margin-bottom: 28px; overflow-wrap: anywhere; }
.contact__email a { color: var(--pink); }
.contact__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }

/* Footer */
.footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding-block: 28px 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer p { margin: 0; }
.footer ul { display: flex; gap: 20px; }
@media (hover: hover) and (pointer: fine) { .footer a:hover { color: var(--ink); } }

/* Back to top + toast */
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 50; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(28,28,30,0.8); border: 1px solid var(--line-2); backdrop-filter: blur(12px); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity 250ms ease, transform 300ms var(--ease-out); }
.to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.to-top svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 80; transform: translate(-50%, 16px); opacity: 0; padding: 12px 18px; border-radius: 14px; background: rgba(44,44,46,0.95); border: 1px solid var(--line-2); font-size: 14px; pointer-events: none; transition: opacity 250ms ease, transform 300ms var(--ease-out); }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* Motion initial states (only with JS + motion allowed) */
.js-motion .reveal, .js-motion .reveal-intro { opacity: 0; transform: translateY(26px); }
.js-motion .intro__portrait { opacity: 0; transform: scale(0.9); }

/* Responsive */
@media (max-width: 1060px) {
  .services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards, .skills__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .about__grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { width: min(var(--container), 100% - 32px); }
  .cards, .skills__grid, .services__grid, .facts { grid-template-columns: 1fr; }
  .stats { gap: 10px; }
  .stat { padding: 18px; }
  .job { padding: 22px 20px; }
  .timeline { padding-left: 28px; }
  .timeline__line { left: 4px; }
  .job__dot { left: -30px; }
  .footer { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .portrait-ring, .scroll-cue span { animation: none; }
  .pcard, .pcard__media img, .services .card, .btn, .chip { transition: none; }
}

/* ============ Interactivity layer ============ */
/* Rotating role text */
.rotator { color: var(--ink); font-weight: 600; white-space: nowrap; }
.rotator__caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -0.15em; background: var(--pink); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.hint-chip { position: fixed; left: 20px; bottom: 20px; z-index: 50; margin: 0; padding: 10px 16px; border-radius: 999px; font-size: 13px; color: var(--ink-2); background: rgba(28,28,30,0.85); border: 1px solid var(--line-2); backdrop-filter: blur(12px); opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity 300ms ease, transform 400ms var(--ease-out); }
.hint-chip.is-visible { opacity: 1; transform: none; }
@media (max-width: 600px) { .hint-chip { left: 16px; right: 80px; } }

/* Portrait tilt */
.intro__portrait { transform-style: preserve-3d; will-change: transform; }

/* Spotlight that follows the pointer on glass cards */
.glass { position: relative; }
.glass::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 300ms ease;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(216,63,135,0.16), transparent 45%); }
@media (hover: hover) and (pointer: fine) { .glass:hover::after { opacity: 1; } }

/* Project cards: 3D tilt + quick view */
.pcard { transform-style: preserve-3d; }
.pcard__media { width: 100%; border: 0; padding: 0; cursor: zoom-in; font: inherit; color: inherit; }
.pcard__qv { position: absolute; right: 12px; bottom: 12px; padding: 7px 12px; border-radius: 999px; font-size: 13px; font-weight: 500; color: #fff; background: rgba(0,0,0,0.6); backdrop-filter: blur(10px); opacity: 0; transform: translateY(6px); transition: opacity 200ms ease, transform 250ms var(--ease-out); }
.pcard__media:focus-visible .pcard__qv { opacity: 1; transform: none; }
@media (hover: hover) and (pointer: fine) { .pcard:hover .pcard__qv { opacity: 1; transform: none; } }
@media (hover: none) { .pcard__qv { opacity: 1; transform: none; } }

/* Quick-view modal */
.modal { width: min(920px, 100% - 32px); max-height: min(88vh, 860px); padding: 0; border: 1px solid var(--line-2); border-radius: 28px; background: rgba(42,27,61,0.9); color: var(--ink); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); overflow: auto; }
.modal::backdrop { background: rgba(0,0,0,0.6); backdrop-filter: blur(6px); }
.modal[open] { animation: modal-in 320ms var(--ease-out); }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(0.97); } }
.modal__inner { position: relative; }
.modal__close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(0,0,0,0.55); color: #fff; font-size: 16px; cursor: pointer; backdrop-filter: blur(10px); }
.modal__media { background: #fff; aspect-ratio: 16 / 9; overflow: hidden; }
.modal__media img { width: 100%; height: 100%; object-fit: contain; }
.modal__body { padding: 28px clamp(22px, 4vw, 40px) 34px; }
.modal__kicker { color: var(--coral); font: 500 13px/1.3 var(--font-label); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 8px; }
.modal__body h3 { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 14px; }
.modal__body > p { color: var(--ink-2); font-size: 17px; }
.modal__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
@media (prefers-reduced-motion: reduce) { .modal[open] { animation: none; } }

/* Custom cursor (desktop only) */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .has-cursor .cursor { display: block; position: fixed; inset: 0; pointer-events: none; z-index: 90; }
  .cursor__dot, .cursor__ring { position: fixed; left: 0; top: 0; border-radius: 50%; pointer-events: none; will-change: transform; }
  .cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--ink); }
  .cursor__ring { width: 36px; height: 36px; margin: -18px 0 0 -18px; border: 1.5px solid rgba(216,63,135,0.7); transition: width 250ms var(--ease-out), height 250ms var(--ease-out), margin 250ms var(--ease-out), background-color 250ms ease, border-color 250ms ease; }
  .has-cursor .cursor.is-hover .cursor__ring { width: 60px; height: 60px; margin: -30px 0 0 -30px; background: rgba(216,63,135,0.12); border-color: rgba(216,63,135,0.9); }
  .has-cursor .cursor.is-down .cursor__ring { width: 28px; height: 28px; margin: -14px 0 0 -14px; }
}
@media (prefers-reduced-motion: reduce) { .rotator__caret { animation: none; } }

/* ============ Liquid glass (Apple-style) ============ */
.nav, .btn--glass, .icon-btn, .filters, .to-top, .status, .hint-chip, .toast, .pcard__qv, .modal__close, .glass, .facts li {
  background: linear-gradient(135deg, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0.05) 45%, rgba(255,255,255,0.09) 100%);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(22px) saturate(180%) brightness(1.05);
  -webkit-backdrop-filter: blur(22px) saturate(180%) brightness(1.05);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.45),
    inset 0 -1px 0 rgba(255,255,255,0.06),
    inset 0 0 18px rgba(255,255,255,0.05),
    0 10px 30px -12px rgba(10,4,20,0.55);
}
.glass { background: linear-gradient(140deg, rgba(255,255,255,0.11) 0%, rgba(255,255,255,0.03) 40%, rgba(68,49,141,0.18) 100%); }
.nav { background: linear-gradient(135deg, rgba(255,255,255,0.14), rgba(255,255,255,0.04)); }
/* specular sheen across the top edge */
.btn--glass, .nav, .filters, .to-top, .icon-btn { position: relative; overflow: hidden; }
.btn--glass::before, .nav::before, .filters::before, .to-top::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0) 45%);
  mix-blend-mode: screen; opacity: 0.6;
}
.icon-btn { border-radius: 50%; color: var(--ink); }
.icon-btn svg { position: relative; }

/* Primary button: glossy pink pill */
.btn--primary {
  background: linear-gradient(180deg, #ea5c9e 0%, var(--pink) 55%, #c02f73 100%);
  border: 1px solid rgba(255,255,255,0.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 10px 26px -10px rgba(216,63,135,0.75);
  color: #fff;
}
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: linear-gradient(180deg, #f070ab 0%, var(--pink-2) 55%, #cf3a80 100%); }
  .btn--glass:hover, .icon-btn:hover { background: linear-gradient(135deg, rgba(255,255,255,0.24), rgba(255,255,255,0.1)); }
}

/* Segmented controls with a sliding glass thumb (nav tabs + project filters) */
.filters { display: inline-flex; gap: 2px; padding: 5px; border-radius: 999px; }
.nav__links { position: relative; padding: 3px; border-radius: 999px; }
.seg-thumb {
  position: absolute; top: 0; left: 0; z-index: 0; border-radius: 999px; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.3), rgba(255,255,255,0.12));
  border: 1px solid rgba(255,255,255,0.35);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 6px 16px -6px rgba(216,63,135,0.6);
  transition: transform 450ms cubic-bezier(0.34, 1.4, 0.5, 1), width 450ms cubic-bezier(0.34, 1.4, 0.5, 1), opacity 200ms ease;
}
.filters .seg-thumb { background: linear-gradient(180deg, #ea5c9e, var(--pink)); border-color: rgba(255,255,255,0.35); }
.nav__links a.is-active { background: transparent; color: #fff; }
@media (prefers-reduced-motion: reduce) { .seg-thumb { transition: none; } }

/* Stats & status tweaks for the new palette */
.status__dot { background: var(--coral); box-shadow: 0 0 0 3px rgba(233,128,116,0.3); }
.kpis li { background: rgba(216,63,135,0.14); border-color: rgba(216,63,135,0.3); }
.card__icon { background: linear-gradient(135deg, rgba(216,63,135,0.35), rgba(68,49,141,0.4)); box-shadow: inset 0 1px 0 rgba(255,255,255,0.35); }
.intro__portrait img { box-shadow: 0 30px 80px -20px rgba(216,63,135,0.55), 0 0 0 1px rgba(255,255,255,0.2); }
.progress span { background: linear-gradient(90deg, var(--pink), var(--coral)); }
.footer { border-top-color: rgba(255,255,255,0.12); }
.modal::backdrop { background: rgba(23,12,34,0.65); }

/* ============ Intro loader + doom drop ============ */
.is-loading, .is-loading body { overflow: hidden; }
.loader {
  --hole: 0%;
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; text-align: center; overflow: hidden;
  background: radial-gradient(ellipse 90% 80% at 50% 30%, #44318d 0%, #2a1b3d 55%, #140a1f 100%);
  -webkit-mask: radial-gradient(circle at 50% 50%, transparent var(--hole), #000 calc(var(--hole) + 1%));
  mask: radial-gradient(circle at 50% 50%, transparent var(--hole), #000 calc(var(--hole) + 1%));
}
.loader__inner { width: min(640px, 100% - 40px); }
.fall { display: inline-block; will-change: transform; }
.loader__bars { display: flex; justify-content: center; align-items: flex-end; gap: 6px; height: 70px; margin-bottom: 26px; }
.loader__bars i { display: block; width: 12px; height: 100%; border-radius: 4px; transform-origin: bottom; transform: scaleY(0.08); background: linear-gradient(180deg, var(--coral), var(--pink)); box-shadow: 0 0 18px rgba(216,63,135,0.5); will-change: transform; }
.loader__bars i:nth-child(odd) { background: linear-gradient(180deg, #f3b1cf, #8a5cf6); }
.loader__hello { display: block; font: 500 14px/1.4 var(--font-label); text-transform: uppercase; letter-spacing: 0.2em; color: var(--muted); margin: 0 auto 10px; }
.loader__name { font: 900 clamp(48px, 11vw, 120px)/0.95 var(--font-display); letter-spacing: -0.04em; margin-bottom: 14px; white-space: nowrap; }
.loader__role { display: block; font: 500 clamp(15px, 2vw, 18px)/1.4 var(--font-label); text-transform: uppercase; letter-spacing: 0.16em; color: var(--ink-2); margin: 0 auto 34px; }
.loader__role .script { font-family: var(--font-script); text-transform: none; letter-spacing: 0; font-size: 1.5em; color: var(--pink); }
.loader__progress { display: block; height: 3px; width: 100%; border-radius: 3px; background: rgba(255,255,255,0.12); overflow: hidden; }
.loader__progress span { display: block; height: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--pink), var(--coral)); }
.loader__meta { display: flex; justify-content: space-between; width: 100%; margin-top: 12px; font: 500 13px/1 var(--font-label); text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); }
.loader__pct { color: var(--ink); font-variant-numeric: tabular-nums; }
.loader__skip { margin-top: 30px; padding: 10px 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.08); color: var(--ink-2); font: 500 12px/1 var(--font-label); text-transform: uppercase; letter-spacing: 0.14em; cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .loader__skip:hover { background: rgba(255,255,255,0.16); color: #fff; } }

/* ============ Header: everything visible, no hamburger ============ */
@media (max-width: 860px) {
  .nav { flex-wrap: wrap; gap: 8px 10px; border-radius: 26px; padding: 8px 10px; top: 8px; width: calc(100% - 16px); }
  .nav__icons { display: flex; }
  .nav__links { display: flex; order: 3; width: 100%; justify-content: space-between; overflow-x: auto; scrollbar-width: none; }
  .nav__links::-webkit-scrollbar { display: none; }
  .nav__links a { padding: 7px 10px; font-size: 12px; letter-spacing: 0.08em; flex: none; }
  html { scroll-padding-top: 120px; }
  .intro__inner { padding-top: 140px; }
}
@media (max-width: 380px) { .nav__logo span { display: none; } }

/* ============ Face-card hero ============ */
.intro { position: relative; min-height: 100svh; display: block; text-align: center; overflow: hidden; isolation: isolate; }
.hero-word {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); z-index: 0; margin: 0; white-space: nowrap; pointer-events: none;
  font: 900 clamp(96px, 23vw, 360px)/0.8 var(--font-display); letter-spacing: -0.05em;
  color: rgba(255,255,255,0.07); -webkit-text-stroke: 1.5px rgba(233,128,116,0.35);
}
.hero-face { position: absolute; left: 50%; bottom: 0; z-index: 1; width: min(62vh, 640px, 92vw); transform: translateX(-50%); }
.hero-face img {
  width: 100%; height: auto; display: block;
  -webkit-mask: linear-gradient(to bottom, #000 70%, transparent 98%); mask: linear-gradient(to bottom, #000 70%, transparent 98%);
  filter: drop-shadow(0 30px 60px rgba(216,63,135,0.35)); will-change: transform;
}
.hero-face::before { content: ""; position: absolute; inset: 8% 5% 0; z-index: -1; border-radius: 50% 50% 0 0; background: radial-gradient(circle at 50% 40%, rgba(216,63,135,0.45), rgba(68,49,141,0.25) 45%, transparent 70%); filter: blur(30px); }
.hero-name {
  position: absolute; left: 0; right: 0; bottom: 2vh; z-index: 3; margin: 0; white-space: nowrap;
  font: 900 clamp(60px, 14.5vw, 230px)/0.85 var(--font-display); letter-spacing: -0.055em;
  background: linear-gradient(180deg, #fff 0%, #fbe3ef 45%, rgba(251,227,239,0.15) 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pills { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.pill, .bubble {
  position: absolute; padding: 9px 16px; border-radius: 999px; font: 500 14px/1 var(--font-label); letter-spacing: 0.06em; color: var(--ink); white-space: nowrap;
}
.pill { left: calc(50% + var(--x)); top: calc(var(--y) + 6vh); transform: translateX(-50%); pointer-events: auto; animation: bob 6s ease-in-out infinite; }
.pill:nth-child(2n) { animation-delay: -2s; } .pill:nth-child(3n) { animation-delay: -4s; }
@keyframes bob { 50% { margin-top: -10px; } }
.bubble { z-index: 4; font: 400 15px/1 var(--font-script); font-family: var(--font); letter-spacing: 0; }
.bubble--left { left: calc(50% - min(31vw, 430px)); bottom: calc(clamp(60px, 14.5vw, 230px) * 0.85 + 4vh); transform: rotate(-6deg); }
.bubble--right { right: calc(50% - min(31vw, 430px)); bottom: calc(clamp(60px, 14.5vw, 230px) * 0.55 + 4vh); transform: rotate(5deg); pointer-events: auto; }
.bubble--right em { font: 400 1.35em/1 var(--font-script); color: var(--pink); font-style: normal; }
.intro .scroll-cue { z-index: 5; bottom: 14px; }
.intro-sub { text-align: center; padding-block: 90px 10px; }
.intro-sub .intro__title { font-size: clamp(34px, 5.6vw, 76px); }
@media (max-width: 860px) {
  .pill { font-size: 12px; padding: 7px 12px; }
  .pill:nth-child(n+5) { display: none; }
  .pills .pill:nth-child(1) { --x: -30% !important; --y: 14% !important; }
  .pills .pill:nth-child(2) { --x: -32% !important; --y: 24% !important; }
  .pills .pill:nth-child(3) { --x: -28% !important; --y: 34% !important; }
  .pills .pill:nth-child(4) { --x: 30% !important; --y: 18% !important; }
  .hero-face { width: min(100vw, 520px); }
  .bubble { font-size: 13px; }
  .bubble--left { left: 12px; }
  .bubble--right { right: 12px; }
  .intro-sub { padding-top: 60px; }
}
@media (prefers-reduced-motion: reduce) { .pill { animation: none; } }

/* ============ Header frozen at the top ============ */
.nav, .nav.is-hidden { transform: translateX(-50%); }

/* ============ Glass: transparent with a light blur only ============ */
.nav, .btn--glass, .icon-btn, .filters, .to-top, .status, .hint-chip, .toast, .pcard__qv, .modal__close, .glass, .facts li, .pill, .bubble, .chat, .chat-fab {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px) saturate(130%);
  -webkit-backdrop-filter: blur(10px) saturate(130%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.nav { background: rgba(42, 27, 61, 0.28); }
.btn--glass::before, .nav::before, .filters::before, .to-top::before { display: none; }
.seg-thumb { background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.28); box-shadow: inset 0 1px 0 rgba(255,255,255,0.25); }
.filters .seg-thumb { background: rgba(216,63,135,0.75); }
@media (hover: hover) and (pointer: fine) { .btn--glass:hover, .icon-btn:hover { background: rgba(255,255,255,0.14); } }

/* ============ Chat assistant ============ */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.to-top { bottom: 86px; }
.chat-fab { position: fixed; right: 20px; bottom: 20px; z-index: 65; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: #fff;
  background: linear-gradient(180deg, #ea5c9e, var(--pink)) !important; border: 1px solid rgba(255,255,255,0.3); box-shadow: 0 12px 30px -10px rgba(216,63,135,0.8) !important; transition: transform 200ms var(--ease-out); }
.chat-fab:active { transform: scale(0.94); }
.chat-fab svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chat-fab__dot { position: absolute; top: 6px; right: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--coral); border: 2px solid #2a1b3d; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.25); } }
.chat { position: fixed; right: 20px; bottom: 88px; z-index: 66; width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100svh - 120px)); display: flex; flex-direction: column; border-radius: 24px; overflow: hidden;
  background: rgba(42,27,61,0.55) !important; backdrop-filter: blur(16px) saturate(140%) !important; animation: chat-in 280ms var(--ease-out); }
.chat[hidden] { display: none; }
@keyframes chat-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } }
.chat__head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 12px 16px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.chat__head img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.chat__head div { flex: 1; }
.chat__title { margin: 0; font: 800 15px/1.2 var(--font-display); }
.chat__sub { margin: 2px 0 0; font-size: 12px; color: var(--muted); line-height: 1.3; }
.chat__close { width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255,255,255,0.08); color: var(--ink); cursor: pointer; }
.chat__log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 86%; padding: 10px 14px; border-radius: 18px; font-size: 14px; line-height: 1.55; }
.msg--bot { align-self: flex-start; background: rgba(255,255,255,0.09); border: 1px solid rgba(255,255,255,0.12); border-bottom-left-radius: 6px; }
.msg--user { align-self: flex-end; background: var(--pink); color: #fff; border-bottom-right-radius: 6px; }
.msg a { color: #f7a6cb; text-decoration: underline; text-underline-offset: 3px; }
.typing { display: inline-flex; gap: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-2); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; } .typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes blink { 50% { opacity: 0.25; } }
.chat__chips { display: flex; gap: 6px; overflow-x: auto; padding: 0 12px 10px; scrollbar-width: none; }
.chat__chips::-webkit-scrollbar { display: none; }
.chat__chips button { flex: none; padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.07); color: var(--ink-2); font: 500 12px/1 var(--font-label); letter-spacing: 0.05em; cursor: pointer; }
.chat__form { display: flex; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid rgba(255,255,255,0.12); }
.chat__form input { flex: 1; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.18); background: rgba(255,255,255,0.08); color: var(--ink); font: 400 16px/1 var(--font); }
.chat__form input::placeholder { color: var(--muted); }
.chat__form button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--pink); cursor: pointer; display: grid; place-items: center; }
.chat__form button svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: reduce) { .chat, .chat-fab__dot { animation: none; } }
/* hero sizing + frozen header fix */
.nav { position: fixed !important; }
.hero-face { width: min(82vh, 880px, 96vw); }
@media (max-width: 860px) {
  .hero-face { width: min(108vw, 520px); }
  .hero-name { font-size: clamp(44px, 15vw, 120px); bottom: 3vh; }
  .hero-word { top: 40%; }
  .bubble--left { bottom: calc(15vw + 6vh); }
  .bubble--right { bottom: calc(15vw * 0.4 + 6vh); right: 12px; }
}
.intro .scroll-cue { display: none; }
@media (max-width: 860px) {
  .hero-name { bottom: 84px; }
  .hero-face { bottom: 60px; }
  .bubble--left { bottom: calc(15vw + 100px); }
  .bubble--right { bottom: calc(15vw * 0.4 + 100px); }
  .pills .pill:nth-child(4) { --x: 24% !important; }
}
.about__photo { margin: 32px 0 0; max-width: 340px; border-radius: 28px; overflow: hidden; border: 1px solid rgba(255,255,255,0.16); box-shadow: 0 30px 70px -30px rgba(216,63,135,0.55); }
.about__photo img { display: block; width: 100%; height: auto; }
@media (max-width: 860px) { .about__photo { max-width: 260px; } }
.about__grid { align-items: start; }
.about__photo { margin-top: 28px; width: 100%; max-width: 260px; aspect-ratio: 4 / 5; border-radius: 22px; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
@media (max-width: 860px) { .about__photo { max-width: 200px; margin: 20px auto 0; } }
.about__photo { max-width: 220px; }
@media (max-width: 860px) { .about__photo { max-width: 180px; margin: 20px 0 0; } }
/* Mobile hero: skills in a tidy centred row, bubbles level above the name, nothing moves on touch */
@media (max-width: 860px) {
  .intro { display: flex; flex-direction: column; align-items: center; padding-top: 118px; }
  .pills { position: relative; inset: auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 340px; margin: 0 auto; padding: 0 12px; }
  .pills .pill, .pills .pill:nth-child(n) { position: static; display: inline-block; left: auto; top: auto; transform: none; animation: none; translate: none !important; }
  .pills .pill:nth-child(n+5) { display: inline-block; }
  .hero-word { top: 36%; }
  .hero-face { bottom: 60px; width: min(100vw, 460px); }
  .hero-face img { transform: none !important; }
  .bubble, .bubble--left, .bubble--right { transform: none; translate: none !important; bottom: calc(84px + 15vw * 0.9); font-size: 13px; padding: 8px 12px; }
  .bubble--left { left: 14px; right: auto; }
  .bubble--right { right: 14px; left: auto; }
}
@media (max-width: 360px) { .bubble { font-size: 12px; } }

/* ============ Case-study link on cards ============ */
.pcard__links a.pcard__case { color: #fff; font-weight: 600; }
.sec-lead { max-width: 640px; color: var(--ink-2); font-size: 17px; line-height: 1.7; margin: 0 0 26px; }

/* ============ SQL showcase ============ */
.sql-tabs { display: inline-flex; flex-wrap: wrap; margin-bottom: 18px; }
.sql-wrap { border-radius: 24px; padding: 8px; }
.sql-panel { display: grid; grid-template-columns: minmax(220px, 0.8fr) 2fr; gap: 8px; }
.sql-panel[hidden] { display: none; }
.sql-q { padding: 22px; }
.sql-ask { margin: 0 0 8px; font: 500 12px/1 var(--font-label); letter-spacing: 0.1em; text-transform: uppercase; color: var(--pink); }
.sql-q h3 { margin: 0 0 10px; font: 800 22px/1.25 var(--font-display); }
.sql-q p { color: var(--ink-2); line-height: 1.65; margin: 0 0 14px; }
.sql-tech { display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.16); font: 500 12px/1.3 var(--font-label) !important; letter-spacing: 0.05em; color: var(--muted) !important; }
.sql-code { min-width: 0; border-radius: 18px; background: rgba(12, 6, 20, 0.72); border: 1px solid rgba(255,255,255,0.08); overflow: hidden; }
.sql-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,0.08); font: 500 12px/1 var(--font-label); letter-spacing: 0.05em; color: var(--muted); }
.sql-bar span:last-child { display: flex; gap: 12px; align-items: center; }
.sql-bar a, .sql-copy { color: var(--ink-2); font: inherit; background: none; border: 0; cursor: pointer; padding: 4px 0; }
.sql-bar a:hover, .sql-copy:hover { color: #fff; }
.sql-code pre { margin: 0; padding: 16px 18px; max-height: 440px; overflow: auto; font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #e8e1f0; tab-size: 4; }
.t-kw { color: #f472b6; font-weight: 600; } .t-fn { color: #93c5fd; } .t-num { color: #fdba74; } .t-str { color: #86efac; } .t-com { color: #8b7a9e; font-style: italic; }
@media (max-width: 860px) { .sql-panel { grid-template-columns: 1fr; } .sql-q { padding: 16px 14px 6px; } .sql-code pre { font-size: 12px; max-height: 360px; } }

/* ============ Build log ============ */
.log-now { border-radius: 22px; padding: 22px 24px; margin-bottom: 18px; }
.log-now__label { margin: 0 0 8px; display: flex; align-items: center; gap: 8px; font: 500 12px/1 var(--font-label); letter-spacing: 0.1em; text-transform: uppercase; color: var(--coral); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74,222,128,0.6); animation: live 1.8s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 8px rgba(74,222,128,0); } 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); } }
.log-now h3 { margin: 0 0 14px; font: 800 22px/1.25 var(--font-display); }
.log-bar { height: 8px; border-radius: 99px; background: rgba(255,255,255,0.1); overflow: hidden; }
.log-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--violet), var(--pink), var(--coral)); }
.log-now__meta { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.log-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.log-item { border-radius: 20px; padding: 20px; display: flex; flex-direction: column; }
.log-item time { font: 500 12px/1 var(--font-label); letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; }
.log-tag { margin: 10px 0 4px; font: 500 13px/1.3 var(--font-label); letter-spacing: 0.04em; color: var(--pink); }
.log-item h3 { margin: 0 0 10px; font: 700 18px/1.3 var(--font-display); }
.log-item ul { margin: 0 0 14px; padding-left: 18px; color: var(--ink-2); font-size: 14px; line-height: 1.6; flex: 1; }
.log-item a { font-size: 14px; color: #f7a6cb; }
@media (max-width: 960px) { .log-list { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }

/* ============ Contact form ============ */
.cform { margin-top: 30px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,0.12); display: grid; gap: 14px; text-align: left; max-width: 640px; margin-inline: auto; }
.cform__title { margin: 0; font: 500 13px/1 var(--font-label); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); text-align: center; }
.cform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cform label { display: grid; gap: 6px; }
.cform label span { font-size: 13px; color: var(--muted); }
.cform input, .cform textarea { width: 100%; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(255,255,255,0.16); background: rgba(255,255,255,0.06); color: var(--ink); font: 400 16px/1.5 var(--font); resize: vertical; }
.cform input:focus, .cform textarea:focus { outline: 2px solid var(--pink); outline-offset: 1px; }
.cform .btn { justify-self: center; }
.cform__status { margin: 0; min-height: 1.4em; text-align: center; font-size: 14px; }
.cform__status.is-ok { color: #86efac; } .cform__status.is-err { color: #fca5a5; }
.cform__status a { color: inherit; text-decoration: underline; }
@media (max-width: 640px) { .cform__row { grid-template-columns: 1fr; } }
.log-item ul, .case-list { list-style: disc; }
.log-item ul li, .case-list li { display: list-item; }
.sql-tabs .chip { border-radius: 999px; transition: background 200ms, color 200ms; }
.sql-tabs .chip.is-active { background: rgba(216,63,135,0.85); color: #fff; }
@media (max-width: 860px) { .sql-tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; } .sql-tabs .chip { flex: none; } }
