:root {
  --bg: #f8fafc;
  --bg-soft: #f1f5f9;
  --card: #ffffff;
  --card-strong: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --line: rgba(15,23,42,.09);
  --accent: #0f766e;
  --accent-bright: #5eead4;
  --accent-2: #8b5cf6;
  --link-line: rgba(15,118,110,.35);
  --shadow: 0 18px 50px rgba(15,23,42,.08);
  --radius: 24px;
  --max: 1160px;
}
* { box-sizing: border-box; }
/* Elementor containers: drop Elementor's default flex layout and spacing so the theme
   classes below control layout exactly as in the original design. Must stay above them. */
.e-con { display: block; flex-direction: row; flex-wrap: nowrap; padding: 0; margin: 0; gap: 0; min-height: 0; width: auto; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(45,212,191,.16), transparent 34rem),
    radial-gradient(circle at top right, rgba(139,92,246,.12), transparent 36rem),
    var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.container { width: min(100% - 40px, var(--max)); margin: 0 auto; }
.section-pad { padding: 104px 0; }
.muted { background: linear-gradient(180deg, rgba(45,212,191,.06), rgba(139,92,246,.04)); }
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  background: rgba(255,255,255,.85);
  box-shadow: 0 1px 12px rgba(15,23,42,.04);
}
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: .02em; }
.brand-mark {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 14px;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent-2)); color: #07111f;
  box-shadow: 0 12px 40px rgba(94,234,212,.22);
}
.hero { min-height: calc(100vh - 72px); display: grid; align-items: center; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 52px; align-items: center; }
.eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: .18em; font-size: 12px; font-weight: 800; margin: 0 0 16px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(46px, 7vw, 86px); line-height: .95; letter-spacing: -.06em; margin-bottom: 18px; }
.hero h2 { font-size: clamp(22px, 3vw, 34px); line-height: 1.18; color: #1e293b; max-width: 780px; letter-spacing: -.03em; }
.hero-text { color: var(--muted); font-size: 19px; max-width: 700px; }
.hero-actions, .wp-block-buttons.hero-actions, .quick-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.btn, .wp-block-button .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 800; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.btn:hover, .wp-block-button .wp-block-button__link:hover { transform: translateY(-2px); }
.btn.primary, .wp-block-button .wp-block-button__link { background: linear-gradient(135deg, var(--accent-bright), #60a5fa); color: #07111f; box-shadow: 0 8px 22px rgba(45,212,191,.25); }
.btn.secondary, .wp-block-button.is-style-secondary .wp-block-button__link { border: 1px solid rgba(15,23,42,.14); background: #fff; box-shadow: none; }
.quick-links a { color: var(--muted); border-bottom: 1px solid var(--link-line); }
.hero-card { position: relative; min-height: 520px; border: 1px solid var(--line); border-radius: 34px; background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
.orb { position: absolute; inset: -120px -100px auto auto; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle, rgba(94,234,212,.45), rgba(139,92,246,.14), transparent 68%); filter: blur(4px); animation: float 7s ease-in-out infinite; }
.card-inner { position: relative; padding: 42px; display: flex; height: 100%; min-height: 520px; flex-direction: column; justify-content: flex-end; }
.card-label { color: var(--accent); font-weight: 800; }
.hero-card h3 { font-size: 34px; line-height: 1.05; margin-bottom: 12px; }
.hero-card p { color: var(--muted); }
.stats { display: grid; gap: 16px; margin-top: 28px; }
.stats div { padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg); }
.stats strong { display: block; font-size: 28px; color: var(--text); line-height: 1; }
.stats span { color: var(--muted); font-size: 14px; }
.split { display: grid; grid-template-columns: .82fr 1.18fr; gap: 54px; align-items: start; }
.section-heading h2 { font-size: clamp(32px, 4vw, 54px); line-height: 1.05; letter-spacing: -.04em; margin: 0; }
.centered { text-align: center; max-width: 780px; margin: 0 auto 48px; }
.content-card, .skill-card, .timeline-card, .edu-list article, .cta-card { border: 1px solid var(--line); background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.content-card { padding: 36px; color: var(--muted); font-size: 18px; }
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.skill-card { display: block; padding: 28px; transition: transform .2s ease, background .2s ease; }
.skill-card:hover { transform: translateY(-6px); background: var(--card-strong); box-shadow: 0 24px 60px rgba(15,23,42,.12); }
.skill-card span, .skill-card .skill-num { color: var(--accent); font-weight: 900; }
.skill-card h3 { margin: 16px 0 10px; font-size: 22px; }
.skill-card p { color: var(--muted); margin-bottom: 0; }
.timeline { position: relative; display: grid; gap: 26px; max-width: 940px; margin: 0 auto; }
.timeline::before { content: ""; position: absolute; left: 186px; top: 0; bottom: 0; width: 1px; background: var(--line); }
.timeline-item { display: grid; grid-template-columns: 160px 1fr; gap: 52px; align-items: start; }
.time { color: var(--accent); font-weight: 800; padding-top: 24px; font-size: 14px; }
.timeline-card { padding: 26px; position: relative; }
.timeline-card::before { content: ""; position: absolute; left: -38px; top: 30px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 8px rgba(94,234,212,.12); }
.timeline-card h3 { font-size: 24px; margin-bottom: 6px; }
.company { color: #1e293b; font-weight: 700; }
.timeline-card p:last-child { color: var(--muted); margin-bottom: 0; }
.education-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 44px; align-items: start; }
.edu-list { display: grid; gap: 18px; }
.edu-list article { padding: 24px; }
.edu-list h3 { margin-bottom: 8px; }
.edu-list p { color: var(--muted); margin: 0; }
.cta-card { padding: clamp(32px, 6vw, 64px); text-align: center; background: linear-gradient(135deg, rgba(45,212,191,.16), rgba(139,92,246,.12)), #fff; }
.cta-card h2 { font-size: clamp(34px, 5vw, 64px); line-height: 1; letter-spacing: -.04em; }
.cta-card > p:not(.eyebrow) { color: var(--muted); max-width: 720px; margin: 0 auto 32px; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: left; }
.contact-grid > * { padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: #fff; overflow-wrap: anywhere; }
.contact-grid.is-two { grid-template-columns: repeat(2, 1fr); max-width: 760px; margin-inline: auto; }
.contact-grid span { display: block; color: var(--accent); font-size: 12px; text-transform: uppercase; letter-spacing: .14em; font-weight: 900; margin-bottom: 8px; }
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.badge { display: inline-flex; align-items: center; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--accent); font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.check-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 32px; color: var(--muted); }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 900; }
.warning-card { border: 1px solid rgba(220,38,38,.22); background: #fef2f2; border-radius: var(--radius); padding: 26px; margin-top: 26px; }
.warning-card h3 { color: #b91c1c; text-transform: uppercase; letter-spacing: .14em; font-size: 14px; margin-bottom: 10px; }
.warning-card p { color: var(--muted); margin-bottom: 0; }
.warning-card strong { color: var(--text); }
.highlight { color: var(--accent); font-weight: 800; letter-spacing: .06em; }
.chat-demo { border: 1px solid var(--line); border-radius: 24px; background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
.chat-bar { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.chat-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(15,23,42,.15); }
.chat-body { padding: 24px; display: grid; gap: 14px; }
.chat-msg { max-width: 85%; padding: 12px 18px; border-radius: 16px; font-size: 15px; line-height: 1.5; }
.chat-msg.user { justify-self: end; background: linear-gradient(135deg, var(--accent-bright), #60a5fa); color: #07111f; font-weight: 600; border-bottom-right-radius: 4px; }
.chat-msg.bot { justify-self: start; background: var(--bg-soft); border: 1px solid var(--line); color: var(--text); border-bottom-left-radius: 4px; }
.footer { border-top: 1px solid var(--line); padding: 26px 0; color: var(--muted); }
.footer .container { display: flex; justify-content: space-between; gap: 16px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a:hover { color: var(--accent); }
.content-card h3 { margin: 30px 0 12px; font-size: 24px; }
.content-card a:not(.btn):not(.wp-block-button__link):not(.elementor-button), .text-link, .hero h2 a, .stats a, .eyebrow a, .company a { color: var(--accent); border-bottom: 1px solid var(--link-line); }
.cursor-glow { position: fixed; width: 280px; height: 280px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(45,212,191,.12), transparent 60%); transform: translate(-50%, -50%); z-index: 0; }
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .12s; }
.delay-2 { transition-delay: .22s; }
/* ---------- WordPress ---------- */
.wp-block-buttons.hero-actions > .wp-block-button { font-size: inherit; }
.wp-block-button .wp-block-button__link { font-size: inherit; line-height: 1.6; border: 0; text-decoration: none; }
.wp-block-button.is-style-secondary .wp-block-button__link { color: inherit; }
.wp-block-buttons.hero-actions.is-content-justification-center { justify-content: center; }
.skill-card .skill-num { margin: 0; }
p.quick-links { margin-bottom: 0; }
.timeline-item .time { margin: 0; }
.badge-row .badge { margin: 0; }
.display-h2 { font-size: clamp(34px, 5vw, 60px); line-height: 1.02; letter-spacing: -.04em; }
.container.narrow { max-width: 860px; }
.narrow > .section-heading { margin-bottom: 40px; }
.post-title { font-size: clamp(34px, 5vw, 56px); line-height: 1.05; letter-spacing: -.04em; margin-bottom: 28px; }
.post-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.wp-block-post-title a:hover { color: var(--accent); }
.wp-block-query-pagination { margin-top: 32px; color: var(--muted); }
.content-card img { max-width: 100%; height: auto; border-radius: 16px; }

/* Header navigation (Navigation block) */
.main-nav { color: var(--muted); font-size: 15px; }
.main-nav .wp-block-navigation__container { gap: 28px; }
.main-nav .wp-block-navigation-item__content { transition: color .2s ease; }
.main-nav .wp-block-navigation-item__content:hover { color: var(--accent); }
.main-nav .wp-block-navigation-item__content.is-active,
.main-nav .current-menu-item > .wp-block-navigation-item__content { color: var(--accent); font-weight: 700; }
.main-nav .wp-block-navigation__responsive-container-open,
.main-nav .wp-block-navigation__responsive-container-close { color: var(--text); }
.main-nav .wp-block-navigation__responsive-container-open { padding: 4px; }
.main-nav .wp-block-navigation__responsive-container-open svg { width: 34px; height: 34px; }
.main-nav.wp-block-navigation:not(.has-background) .wp-block-navigation__responsive-container.is-menu-open {
  position: fixed; top: 82px; left: 14px; right: 14px; bottom: auto;
  padding: 18px; border: 1px solid var(--line); border-radius: 20px;
  background: #fff; color: var(--text); box-shadow: var(--shadow);
}
.main-nav .is-menu-open .wp-block-navigation__responsive-close { max-width: none; }
.main-nav .is-menu-open .wp-block-navigation__responsive-container-close { top: 14px; right: 14px; }
.main-nav .is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 34px; align-items: stretch !important; }
.main-nav .is-menu-open .wp-block-navigation__container { gap: 0 !important; align-items: stretch !important; width: 100%; text-align: left; }
.main-nav .is-menu-open { --navigation-layout-justification-setting: stretch; --navigation-layout-justify: flex-start; }
.main-nav .is-menu-open .wp-block-navigation-item { width: 100%; align-items: stretch !important; }
.main-nav .is-menu-open .wp-block-navigation-item__content { display: block; padding: 10px !important; }
@media (min-width: 721px) and (max-width: 900px) {
  .main-nav { font-size: 14px; }
  .main-nav .wp-block-navigation__container { gap: 16px; }
}
/* Language switcher */
.nav .main-nav { margin-left: auto; }
.lang-switch { display: flex; gap: 2px; margin-left: 22px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.lang-switch a { padding: 3px 8px; border-radius: 999px; color: var(--muted); transition: color .2s ease, background .2s ease; }
.lang-switch a:hover { color: var(--accent); }
.lang-switch a.is-active { color: var(--accent); background: rgba(15,118,110,.10); }
/* Same mobile breakpoint as the original menu (720px) instead of WordPress' 600px. */
@media (max-width: 720px) {
  .main-nav.wp-block-navigation .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
  .main-nav.wp-block-navigation .wp-block-navigation__responsive-container:not(.is-menu-open):not(.hidden-by-default) { display: none; }
  .lang-switch { margin-left: 12px; order: 2; }
  .nav .main-nav { order: 1; }
}
@media (max-width: 380px) {
  .lang-switch a { padding: 3px 6px; }
}
.admin-bar .site-header { top: var(--wp-admin--admin-bar--height, 0px); }
/* ---------- Elementor widgets ---------- */
.elementor-heading-title { margin: revert; margin-top: 0; padding: 0; line-height: 1.6; color: inherit; font-family: inherit; }
h1.elementor-heading-title { line-height: .95; margin-bottom: 18px; }
.display-h2 .elementor-heading-title { font-size: clamp(34px, 5vw, 60px); line-height: 1.02; letter-spacing: -.04em; }
.elementor-widget-text-editor { color: inherit; }
p.badge-row { margin-bottom: 0; }
.cta-card > .elementor-widget-text-editor > p:not(.eyebrow) { color: var(--muted); max-width: 720px; margin: 0 auto 32px; }
.e-con.hero-actions { flex-direction: row; flex-wrap: wrap; }
.hero-actions > .elementor-widget { width: auto; max-width: 100%; }
.e-con.hero-actions.is-center { justify-content: center; }
.elementor-widget-heading .elementor-heading-title[class*=elementor-size-] > a { color: var(--accent); }
.elementor .elementor-widget-button .elementor-button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px;
  border: 0; border-radius: 999px; font-family: inherit; font-size: inherit; font-weight: 800; line-height: 1.6;
  background: linear-gradient(135deg, var(--accent-bright), #60a5fa); color: #07111f; box-shadow: 0 8px 22px rgba(45,212,191,.25);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.elementor .elementor-widget-button .elementor-button:hover, .elementor .elementor-widget-button .elementor-button:focus { transform: translateY(-2px); color: #07111f; }
.elementor .elementor-widget-button.btn-secondary .elementor-button { border: 1px solid rgba(15,23,42,.14); background: #fff; color: inherit; box-shadow: none; }
.elementor .elementor-widget-button.btn-secondary .elementor-button:hover, .elementor .elementor-widget-button.btn-secondary .elementor-button:focus { color: inherit; }
/* In the Elementor editor every element is visible immediately (no scroll reveal). */
.elementor-editor-active .reveal { opacity: 1 !important; transform: none !important; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(28px); } }
/* ---------- Contact form ([kiriweb_contact_form], inc/contact.php) ---------- */
.kw-form { scroll-margin-top: 100px; display: grid; gap: 20px; margin-top: 28px; color: var(--text); font-size: 16px; }
.kw-field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.kw-field > span, .kw-field legend { padding: 0; font-size: 14px; font-weight: 800; }
.kw-field legend { margin-bottom: 10px; }
.kw-field legend small { color: var(--muted); font-weight: 600; }
.kw-field input, .kw-field textarea {
  width: 100%; padding: 13px 16px; border: 1px solid rgba(15,23,42,.16); border-radius: 14px;
  background: #fff; color: var(--text); font: inherit; transition: border-color .2s ease, box-shadow .2s ease;
}
.kw-field textarea { resize: vertical; min-height: 150px; }
.kw-field input:focus, .kw-field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(15,118,110,.12); }
.kw-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.kw-chip { display: inline-flex; align-items: center; gap: 9px; padding: 9px 16px; border: 1px solid rgba(15,23,42,.16); border-radius: 999px; background: #fff; cursor: pointer; font-size: 15px; font-weight: 700; transition: border-color .2s ease, background .2s ease, color .2s ease; }
.kw-chip input { width: 17px; height: 17px; margin: 0; accent-color: var(--accent); }
.kw-chip:hover { border-color: var(--accent); }
.kw-chip:has(input:checked) { border-color: var(--accent); background: rgba(15,118,110,.08); color: var(--accent); }
.kw-chip:has(input:focus-visible) { box-shadow: 0 0 0 4px rgba(15,118,110,.15); }
.kw-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.kw-actions .btn { border: 0; font: inherit; font-weight: 800; cursor: pointer; }
.kw-actions .btn:disabled { opacity: .7; cursor: progress; transform: none; }
.kw-privacy { margin: 0; color: var(--muted); font-size: 13px; }
.kw-status-slot { scroll-margin-top: 110px; }
.kw-status-slot:empty { display: none; }
.kw-status { margin: 0; padding: 14px 18px; border-radius: 14px; font-weight: 700; }
.kw-status.is-ok { border: 1px solid rgba(15,118,110,.25); background: rgba(45,212,191,.12); color: #115e59; }
.kw-status.is-error { border: 1px solid rgba(220,38,38,.22); background: #fef2f2; color: #b91c1c; }
.kw-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
/* ---------- Homepage muffin popup (inc/popup.php) ---------- */
@keyframes kw-pop { from { opacity: 0; transform: translateY(18px) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes kw-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes kw-beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.18); } 30% { transform: scale(1); } 45% { transform: scale(1.12); } }
@keyframes kw-eye-blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes kw-twinkle { 0%, 100% { opacity: .35; transform: scale(.8) rotate(0deg); } 50% { opacity: 1; transform: scale(1.1) rotate(20deg); } }
.kw-muffin { width: min(92vw, 380px); max-width: none; padding: 0; border: 0; background: transparent; overflow: visible; }
.kw-muffin::backdrop { background: rgba(15,23,42,.45); backdrop-filter: blur(3px); animation: kw-fade .3s ease; }
.kw-muffin-card {
  position: relative; padding: 38px 28px 30px; border-radius: 30px; text-align: center;
  background: radial-gradient(circle at 50% 30%, #fff 0, #fff7ed 45%, #fdf2f8 75%, #f0fdfa 100%);
  box-shadow: 0 30px 80px rgba(15,23,42,.28); animation: kw-pop .5s cubic-bezier(.2,.9,.3,1.25);
}
.kw-muffin form { margin: 0; }
.kw-muffin-x {
  position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; display: grid; place-items: center; padding: 0;
  border: 1px solid rgba(15,23,42,.12); border-radius: 50%; background: #fff; color: var(--text); cursor: pointer;
  box-shadow: 0 4px 14px rgba(15,23,42,.10); transition: transform .2s ease, background .2s ease;
}
.kw-muffin-x:hover { transform: rotate(90deg); background: #fdf2f8; }
.kw-muffin-x:focus-visible { outline: 3px solid rgba(236,72,153,.45); outline-offset: 2px; }
.kw-muffin-x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.kw-muffin-art { display: block; width: min(230px, 66vw); height: auto; margin: 0 auto; overflow: visible; animation: kv-bob 3.2s ease-in-out infinite; }
.kw-muffin-art .kw-heart, .kw-muffin-art .kw-eyes, .kw-muffin-art .kw-twinkle { transform-box: fill-box; transform-origin: center; }
.kw-muffin-art .kw-heart { animation: kw-beat 1.6s ease-in-out infinite; }
.kw-muffin-art .kw-eyes { animation: kw-eye-blink 4s ease-in-out infinite; }
.kw-muffin-art .kw-twinkle { animation: kw-twinkle 2.4s ease-in-out infinite; }
.kw-muffin-art .kw-twinkle-2 { animation-delay: -1.2s; }
.kw-muffin-title {
  margin: 10px 0 0; font-size: clamp(26px, 7vw, 32px); font-weight: 900; letter-spacing: -.02em; line-height: 1.15;
  background: linear-gradient(135deg, #db2777, #8b5cf6); -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* ---------- Animated visuals ([kiriweb_visual], inc/visuals.php) ---------- */
@keyframes kv-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes kv-drift { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(6px, -10px); } }
@keyframes kv-spin { to { transform: rotate(360deg); } }
@keyframes kv-dash { to { stroke-dashoffset: -40; } }
@keyframes kv-pulse { 0% { transform: scale(.8); opacity: .55; } 100% { transform: scale(1.45); opacity: 0; } }
@keyframes kv-blink { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes kv-typing { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }
/* Hero card: the three facts float gently, out of step. */
.stats div { animation: kv-bob 6s ease-in-out infinite; }
.stats div:nth-child(2) { animation-delay: -2s; }
.stats div:nth-child(3) { animation-delay: -4s; }
/* Chat demo (services hero) */
.kv-chat-wrap { position: relative; padding: 26px 0; }
.kv-chat { position: relative; animation: kv-bob 7s ease-in-out infinite; }
.kv-chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.kv-chat-head strong { display: block; font-size: 15px; line-height: 1.2; }
.kv-avatar { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(135deg, var(--accent-bright), var(--accent-2)); color: #07111f; font-weight: 800; }
.kv-online { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-size: 12px; font-weight: 700; }
.kv-online::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.18); animation: kv-blink 2s ease-in-out infinite; }
.kv-chat .chat-body { position: relative; min-height: 318px; align-content: start; }
.kv-src { display: block; width: fit-content; margin-top: 8px; padding: 2px 10px; border-radius: 999px; background: rgba(15,118,110,.08); color: var(--accent); font-size: 12px; font-weight: 700; }
.kv-chat [data-kv-step] { transition: opacity .45s ease, transform .45s ease; }
.kv-chat [data-kv-step].kv-hidden { opacity: 0; transform: translateY(10px); }
/* Drawn over the slot of the next answer, so the card never changes height (the hero text would move). */
.kv-typing { position: absolute; display: none; justify-self: start; gap: 5px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; border-bottom-left-radius: 4px; background: var(--bg-soft); }
.kv-typing.on { display: inline-flex; }
.kv-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: kv-typing 1.2s ease-in-out infinite; }
.kv-typing span:nth-child(2) { animation-delay: .15s; }
.kv-typing span:nth-child(3) { animation-delay: .3s; }
.kv-tag { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); color: var(--text); font-size: 13px; font-weight: 800; animation: kv-drift 6s ease-in-out infinite; }
.kv-tag svg { width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.kv-tag-a { top: 0; right: -18px; }
.kv-tag-b { bottom: 0; left: -22px; animation-delay: -3s; }
/* SVG illustrations (knowledge hub, phone) */
.kv-visual { margin: 0; }
.kv-visual svg { display: block; width: 100%; height: auto; overflow: visible; }
.kv-visual text { font-family: inherit; }
.kv-hub { margin-top: 30px; }
.kv-phone { max-width: 460px; margin: 34px auto 0; }
.kv-node, .kv-site, .kv-float-tile, .kv-device, .kv-hub-core, .kv-ring, .kv-badge, .kv-orbit-dots, .kv-b { transform-box: fill-box; transform-origin: center; }
.kv-orbit-dots { transform-box: view-box; transform-origin: 260px 215px; animation: kv-spin 26s linear infinite; }
.kv-card { fill: #fff; stroke: rgba(15,23,42,.08); }
.kv-card-dashed { stroke: rgba(15,118,110,.45); stroke-dasharray: 5 5; }
.kv-tile-a { fill: rgba(45,212,191,.16); }
.kv-tile-b { fill: rgba(139,92,246,.13); }
.kv-tile-c { fill: rgba(96,165,250,.15); }
.kv-tile-d { fill: rgba(245,158,11,.14); }
.kv-icon { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.kv-icon-a { stroke: #0f766e; }
.kv-icon-b { stroke: #7c3aed; }
.kv-icon-c { stroke: #2563eb; }
.kv-icon-d { stroke: #b45309; }
.kv-label { fill: var(--text); font-size: 15px; font-weight: 700; }
.kv-flow { fill: none; stroke: rgba(15,118,110,.38); stroke-width: 1.6; stroke-dasharray: 4 6; animation: kv-dash 2.4s linear infinite; }
.kv-packet circle { fill: #14b8a6; }
.kv-packet .kv-packet-glow { fill: rgba(45,212,191,.28); }
.kv-ring { fill: none; stroke: rgba(45,212,191,.45); stroke-width: 1.5; animation: kv-pulse 3.6s ease-out infinite; }
.kv-ring-2 { animation-delay: -1.8s; }
.kv-k { fill: #07111f; font-size: 22px; font-weight: 800; text-anchor: middle; }
.kv-k-sm { font-size: 11px; }
.kv-hub-title { fill: var(--text); font-size: 15px; font-weight: 800; text-anchor: middle; }
.kv-hub-sub { fill: var(--muted); font-size: 12px; text-anchor: middle; }
.kv-badge { animation: kv-blink 2.4s ease-in-out infinite; }
.kv-badge circle { fill: #8b5cf6; }
.kv-badge text { fill: #fff; font-size: 11px; font-weight: 800; text-anchor: middle; }
.kv-node-a { animation: kv-bob 6s ease-in-out infinite; }
.kv-node-b { animation: kv-bob 6s ease-in-out -1.5s infinite; }
.kv-node-c { animation: kv-bob 6s ease-in-out -3s infinite; }
.kv-node-d { animation: kv-bob 6s ease-in-out -4.5s infinite; }
.kv-orbit { fill: none; stroke: rgba(15,23,42,.12); stroke-width: 1.5; stroke-dasharray: 2 9; }
.kv-ring-soft { fill: rgba(45,212,191,.05); stroke: rgba(45,212,191,.22); }
.kv-dot-a { fill: #2dd4bf; }
.kv-dot-b { fill: #a78bfa; }
.kv-ground { fill: rgba(15,23,42,.07); }
.kv-device { animation: kv-bob 7s ease-in-out infinite; }
.kv-phone-body { fill: #fff; stroke: rgba(15,23,42,.12); stroke-width: 2; }
.kv-screen { fill: #f1f5f9; }
.kv-notch { fill: #0f172a; }
.kv-skel { fill: rgba(15,23,42,.14); }
.kv-skel-accent { fill: rgba(15,118,110,.4); }
.kv-live-dot { fill: #22c55e; animation: kv-blink 2s ease-in-out infinite; }
.kv-tdot { fill: #94a3b8; animation: kv-blink 1.2s ease-in-out infinite; }
.kv-tdot:nth-of-type(2) { animation-delay: .2s; }
.kv-tdot:nth-of-type(3) { animation-delay: .4s; }
/* The phone conversation builds up message by message, then starts over. */
@keyframes kv-b1 { 0%, 4% { opacity: 0; transform: translateY(6px); } 10%, 88% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; } }
@keyframes kv-b2 { 0%, 16% { opacity: 0; transform: translateY(6px); } 22%, 88% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; } }
@keyframes kv-b3 { 0%, 34% { opacity: 0; transform: translateY(6px); } 40%, 88% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; } }
@keyframes kv-b4 { 0%, 46% { opacity: 0; transform: translateY(6px); } 52%, 88% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; } }
.kv-b1 { animation: kv-b1 9s ease infinite; }
.kv-b2 { animation: kv-b2 9s ease infinite; }
.kv-b3 { animation: kv-b3 9s ease infinite; }
.kv-b4 { animation: kv-b4 9s ease infinite; }
.kv-site-name { fill: var(--text); font-size: 13px; font-weight: 800; }
.kv-site-live { fill: var(--accent); font-size: 11.5px; font-weight: 700; }
.kv-site-next { fill: var(--accent); font-size: 13px; font-weight: 800; }
.kv-plus { fill: var(--accent); font-size: 18px; font-weight: 800; }
.kv-site-a { animation: kv-drift 6.5s ease-in-out infinite; }
.kv-site-b { animation: kv-drift 7s ease-in-out -3s infinite; }
.kv-site-c { animation: kv-bob 5.5s ease-in-out -1s infinite; }
.kv-site-d { animation: kv-drift 6.8s ease-in-out -1.6s infinite; }
.kv-ft-a { animation: kv-bob 5s ease-in-out -2s infinite; }
.kv-ft-b { animation: kv-bob 5.5s ease-in-out infinite; }
.kv-spark { fill: rgba(15,118,110,.35); font-size: 20px; font-weight: 700; }
.kv-speck { fill: rgba(139,92,246,.35); }
/* Off screen: pause (theme.js toggles the class). */
.kv-paused, .kv-paused * { animation-play-state: paused !important; }
@media (max-width: 720px) {
  .kv-tag-a { right: 6px; }
  .kv-tag-b { left: 6px; }
  .kv-label { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .kv-packet { display: none; }
}
@media (max-width: 900px) {
  .section-pad { padding: 76px 0; }
  .hero-grid, .split, .education-grid { grid-template-columns: 1fr; }
  .hero-card, .card-inner { min-height: 430px; }
  .skills-grid, .contact-grid { grid-template-columns: 1fr 1fr; }
  .timeline::before { left: 8px; }
  .timeline-item { grid-template-columns: 1fr; gap: 10px; padding-left: 34px; }
  .timeline-card::before { left: -33px; }
  .time { padding-top: 0; }
}
@media (max-width: 720px) {
  .container { width: min(100% - 28px, var(--max)); }
  .skills-grid, .contact-grid, .contact-grid.is-two { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  h1 { font-size: 48px; }
  .footer .container { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
