/* =========================================================
   Kyra's Digital Solutions: shared styles
   Dark-first theme; light theme via [data-theme="light"]
   ========================================================= */

:root {
  --bg: #07070d;
  --bg-2: #0d0d17;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.065);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #f3f3f8;
  --muted: #a3a3b8;
  --faint: #6c6c82;
  --accent: #a78bfa;
  --accent-2: #e879f9;
  --accent-3: #22d3ee;
  --grad: linear-gradient(115deg, #a78bfa 0%, #e879f9 45%, #22d3ee 100%);
  --grad-soft: linear-gradient(115deg, rgba(167, 139, 250, .18), rgba(232, 121, 249, .12), rgba(34, 211, 238, .14));
  --orb-1: #7c3aed;
  --orb-2: #c026d3;
  --orb-3: #0891b2;
  --orb-opacity: .42;
  --grid-line: rgba(255, 255, 255, .045);
  --nav-bg: rgba(14, 14, 24, .62);
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .7);
  --spot: rgba(167, 139, 250, .14);
  --on-accent: #0b0614;
  --radius: 22px;
  --radius-sm: 14px;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --container: 1180px;
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #fbfaff;
  --bg-2: #f2f0fc;
  --surface: rgba(255, 255, 255, .72);
  --surface-2: #ffffff;
  --border: rgba(30, 16, 80, .09);
  --border-strong: rgba(30, 16, 80, .18);
  --text: #14112a;
  --muted: #56536f;
  --faint: #8b88a4;
  --accent: #7c3aed;
  --accent-2: #c026d3;
  --accent-3: #0891b2;
  --grad: linear-gradient(115deg, #7c3aed 0%, #c026d3 50%, #0891b2 100%);
  --grad-soft: linear-gradient(115deg, rgba(124, 58, 237, .1), rgba(192, 38, 211, .07), rgba(8, 145, 178, .08));
  --orb-opacity: .2;
  --grid-line: rgba(30, 16, 80, .05);
  --nav-bg: rgba(255, 255, 255, .72);
  --shadow: 0 24px 50px -28px rgba(40, 20, 110, .3);
  --spot: rgba(124, 58, 237, .08);
  --on-accent: #ffffff;
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .4s ease, color .4s ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(167, 139, 250, .35); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -0.025em; margin: 0; font-weight: 600; }
p { margin: 0; }

.container { width: min(var(--container), 100% - 32px); margin-inline: auto; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Ambient background ---------- */
.bg-fx { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-fx .orb {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: var(--orb-opacity);
  animation: drift 22s ease-in-out infinite alternate;
}
.bg-fx .o1 { width: 520px; height: 520px; background: var(--orb-1); top: -160px; left: -120px; }
.bg-fx .o2 { width: 460px; height: 460px; background: var(--orb-2); top: 30%; right: -160px; animation-delay: -7s; }
.bg-fx .o3 { width: 420px; height: 420px; background: var(--orb-3); bottom: -180px; left: 30%; animation-delay: -14s; }
.bg-fx .grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.08); }
  100% { transform: translate(-40px, 80px) scale(.95); }
}

/* ---------- Navigation ---------- */
.nav-wrap { position: sticky; top: 0; z-index: 50; padding: 14px 0; }
.nav {
  width: min(var(--container), 100% - 32px); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 10px 10px 18px;
  background: var(--nav-bg);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: box-shadow .3s ease, border-color .3s ease;
  position: relative;
}
.nav.scrolled { box-shadow: var(--shadow); border-color: var(--border-strong); }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--grad); color: #0b0614; font-weight: 700; font-size: 17px;
  box-shadow: 0 6px 20px -6px rgba(167, 139, 250, .7);
}
.brand-text b { font-weight: 600; color: var(--muted); }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  padding: 8px 14px; border-radius: 999px; font-size: 14.5px; color: var(--muted);
  transition: color .2s ease, background-color .2s ease;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-links a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center;
  background: transparent; border: 1px solid var(--border); cursor: pointer; color: var(--muted);
  transition: color .2s, border-color .2s, background-color .2s;
}
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); background: var(--surface-2); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-toggle .sun { display: none; }
[data-theme="light"] .theme-toggle .sun { display: block; }
[data-theme="light"] .theme-toggle .moon { display: none; }
.menu-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  --pad: 14px 22px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: var(--pad); border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .2s ease, box-shadow .25s ease, background-color .2s, border-color .2s;
}
.btn svg { width: 16px; height: 16px; transition: transform .2s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--grad); color: #0b0614; box-shadow: 0 10px 30px -10px rgba(192, 132, 252, .75); background-size: 150% 150%; }
[data-theme="light"] .btn-primary, [data-theme="light"] .brand-mark { color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(192, 132, 252, .9); }
.btn-ghost { background: var(--surface); border-color: var(--border-strong); color: var(--text); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: var(--surface-2); transform: translateY(-2px); }
.btn-sm { --pad: 10px 18px; font-size: 14px; }

/* ---------- Pills / eyebrows ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 10px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 13.5px; color: var(--muted); backdrop-filter: blur(8px);
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #34d399; position: relative; }
.pulse::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #34d399;
  animation: ping 1.8s cubic-bezier(0, 0, .2, 1) infinite;
}
@keyframes ping { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }

.eyebrow {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .7; }

.tag {
  display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-family: var(--font-mono); color: var(--muted);
  background: var(--surface-2); border: 1px solid var(--border);
}

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: 110px 0; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::after { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .7; }
.section-head h2 { font-size: clamp(32px, 4.6vw, 52px); margin: 16px 0 18px; }
.section-head p { color: var(--muted); font-size: 18px; }

/* ---------- Cards + spotlight ---------- */
.card {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; overflow: hidden;
  transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.card:hover { border-color: var(--border-strong); }
.spot::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), var(--spot), transparent 45%);
  transition: opacity .3s ease;
}
.spot:hover::before { opacity: 1; }

/* ---------- Hero ---------- */
.hero { padding: 70px 0 90px; }
.hero-grid { display: grid; grid-template-columns: 1.25fr .9fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(44px, 7vw, 88px); margin: 26px 0 24px; letter-spacing: -0.04em; }
.hero .lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 560px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 44px; color: var(--muted); font-size: 14px; }
.hero-proof span { display: inline-flex; align-items: center; gap: 8px; }
.hero-proof svg { width: 16px; height: 16px; color: var(--accent); }

.portrait-wrap { position: relative; justify-self: center; width: min(420px, 100%); aspect-ratio: 1; }
.portrait-ring {
  position: absolute; inset: 0; border-radius: 36% 64% 58% 42% / 44% 40% 60% 56%;
  background: var(--grad); padding: 3px; animation: morph 14s ease-in-out infinite;
  box-shadow: 0 30px 80px -30px rgba(192, 132, 252, .7);
}
.portrait-ring img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; background: #fff; }
@keyframes morph {
  0%, 100% { border-radius: 36% 64% 58% 42% / 44% 40% 60% 56%; }
  33% { border-radius: 58% 42% 40% 60% / 56% 58% 42% 44%; }
  66% { border-radius: 44% 56% 62% 38% / 38% 54% 46% 62%; }
}
.float-chip {
  position: absolute; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 14px; font-size: 13.5px; font-weight: 500;
  background: var(--nav-bg); border: 1px solid var(--border-strong);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow); white-space: nowrap;
  animation: bob 6s ease-in-out infinite;
}
.float-chip .dot { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--grad-soft); color: var(--accent); }
.float-chip .dot svg { width: 15px; height: 15px; }
.float-chip.c1 { top: 8%; left: -12%; }
.float-chip.c2 { top: 46%; right: -14%; animation-delay: -2s; }
.float-chip.c3 { bottom: 4%; left: -4%; animation-delay: -4s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--border); padding: 22px 0; overflow: hidden; background: var(--surface); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: scroll 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--font-display); font-size: 20px; font-weight: 500; color: var(--faint); display: inline-flex; align-items: center; gap: 56px; white-space: nowrap; }
.marquee-track span::after { content: "✦"; font-size: 12px; color: var(--accent); opacity: .7; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Value props ---------- */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.value .num { font-family: var(--font-display); font-size: 34px; font-weight: 600; letter-spacing: -.03em; }
.value p { color: var(--muted); font-size: 15px; margin-top: 8px; }

/* ---------- Bento services ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.bento .card { display: flex; flex-direction: column; min-height: 240px; }
.bento .span-2 { grid-column: span 2; }
.bento .span-3 { grid-column: span 3; }
.bento .span-4 { grid-column: span 4; }
.svc-icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid var(--border); color: var(--accent); margin-bottom: 22px;
}
.svc-icon svg { width: 22px; height: 22px; }
.bento h3 { font-size: 22px; margin-bottom: 10px; }
.bento p { color: var(--muted); font-size: 15.5px; }
.bento .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 22px; }
.bento .feature { background: var(--grad-soft), var(--surface); }
.code-peek {
  margin-top: 22px; padding: 16px 18px; border-radius: 14px; font-family: var(--font-mono); font-size: 13px;
  background: rgba(0, 0, 0, .35); border: 1px solid var(--border); color: #d4d4e4; line-height: 1.7; overflow-x: auto;
}
[data-theme="light"] .code-peek { background: #15112a; color: #e8e6f5; }
.code-peek .k { color: #c084fc; } .code-peek .s { color: #67e8f9; } .code-peek .c { color: #6c6c82; } .code-peek .f { color: #f0abfc; }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.step { position: relative; }
.step .step-num {
  font-family: var(--font-mono); font-size: 13px; color: var(--accent);
  display: flex; align-items: center; gap: 12px; margin-bottom: 20px;
}
.step .step-num::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--border-strong), transparent); }
.step h3 { font-size: 21px; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- Post cards (shared by home + portfolio) ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card { display: flex; flex-direction: column; padding: 0; cursor: pointer; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.post-card h3 { font-size: 21px; line-height: 1.2; }
.post-card p { color: var(--muted); font-size: 15px; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 13px; color: var(--faint); font-family: var(--font-mono); }
.post-card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.read-more { font-weight: 600; font-size: 14px; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }
.read-more svg { width: 16px; height: 16px; flex: none; transition: transform .2s ease; }
.featured-post:hover .read-more svg { transform: translateX(3px); }

.cover {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(circle at 20% 20%, var(--c1), transparent 55%),
    radial-gradient(circle at 85% 80%, var(--c2), transparent 55%),
    #0e0b1d;
  display: grid; place-items: center;
}
.cover::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at 50% 50%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000, transparent 75%);
}
.cover .glyph {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(40px, 6vw, 72px); letter-spacing: -.04em;
  color: rgba(255, 255, 255, .92); text-shadow: 0 10px 40px rgba(0, 0, 0, .4);
  transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
.post-card:hover .cover .glyph { transform: scale(1.08) rotate(-2deg); }
.cover .cover-label {
  position: absolute; left: 14px; top: 14px; font-family: var(--font-mono); font-size: 11.5px;
  padding: 5px 10px; border-radius: 999px; background: rgba(0, 0, 0, .35); color: #fff; backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .15);
}

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0 24px; transition: border-color .2s; }
.faq details[open] { border-color: var(--border-strong); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 0; font-weight: 600; font-size: 17px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; font-weight: 300; color: var(--accent); transition: transform .25s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 22px; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: 32px; padding: clamp(40px, 7vw, 80px);
  border: 1px solid var(--border-strong); text-align: center;
  background: radial-gradient(circle at 15% 0%, rgba(124, 58, 237, .45), transparent 50%),
              radial-gradient(circle at 90% 100%, rgba(8, 145, 178, .4), transparent 50%),
              var(--bg-2);
}
[data-theme="light"] .cta-band {
  background: radial-gradient(circle at 15% 0%, rgba(124, 58, 237, .18), transparent 50%),
              radial-gradient(circle at 90% 100%, rgba(8, 145, 178, .16), transparent 50%),
              var(--surface-2);
}
.cta-band h2 { font-size: clamp(34px, 5vw, 60px); max-width: 820px; margin: 0 auto 18px; }
.cta-band p { color: var(--muted); font-size: 18px; max-width: 560px; margin: 0 auto 32px; }
.cta-band .hero-ctas { justify-content: center; margin-top: 0; }

/* ---------- Footer ---------- */
.footer { padding: 70px 0 40px; margin-top: 60px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer p { color: var(--muted); font-size: 14.5px; margin-top: 14px; max-width: 320px; }
.footer h4 { font-size: 13px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--faint); font-weight: 500; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 14.5px; }
.footer ul a { color: var(--muted); transition: color .2s; }
.footer ul a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 13px; color: var(--faint); }

/* ---------- Inner page hero ---------- */
.page-hero { padding: 60px 0 40px; }
.page-hero h1 { font-size: clamp(42px, 6.5vw, 78px); margin: 18px 0 18px; letter-spacing: -.04em; }
.page-hero p { color: var(--muted); font-size: 19px; max-width: 640px; }

/* ---------- Resume ---------- */
.resume-layout { display: grid; grid-template-columns: 320px 1fr; gap: 28px; align-items: start; padding-bottom: 40px; }
.resume-side { position: sticky; top: 96px; display: grid; gap: 16px; }
.profile-card { text-align: center; }
.profile-card img { width: 128px; height: 128px; border-radius: 50%; object-fit: cover; margin: 4px auto 18px; border: 3px solid transparent; background: var(--grad) border-box; box-shadow: 0 16px 40px -18px rgba(192, 132, 252, .8); }
.profile-card h2 { font-size: 26px; }
.profile-card .role { color: var(--muted); font-size: 14.5px; margin-top: 6px; }
.contact-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; text-align: left; font-size: 14px; }
.contact-list li { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.contact-list svg { width: 16px; height: 16px; color: var(--accent); flex: none; }
.contact-list a:hover { color: var(--text); }
.resume-side .btn { width: 100%; }
.side-title { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--faint); margin-bottom: 14px; }
.chip-cloud { display: flex; flex-wrap: wrap; gap: 6px; }

.resume-main { display: grid; gap: 20px; }
.resume-main h2 { font-size: 26px; margin-bottom: 20px; display: flex; align-items: center; gap: 12px; }
.resume-main h2 .idx { font-family: var(--font-mono); font-size: 13px; color: var(--accent); font-weight: 500; }
.summary { font-size: 17px; color: var(--muted); }
.summary strong { color: var(--text); font-weight: 600; }

.timeline { position: relative; display: grid; gap: 30px; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--accent), var(--accent-3), transparent); border-radius: 2px; opacity: .6; }
.job { position: relative; }
.job::before { content: ""; position: absolute; left: -28px; top: 7px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); box-shadow: 0 0 0 4px var(--bg); }
.job-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; }
.job h3 { font-size: 19px; }
.job .org { color: var(--accent); font-weight: 500; font-size: 15px; margin-top: 2px; }
.job .when { font-family: var(--font-mono); font-size: 12.5px; color: var(--faint); }
.job ul { margin: 12px 0 0; padding-left: 18px; color: var(--muted); font-size: 15px; display: grid; gap: 6px; }
.job ul li::marker { color: var(--accent); }

.skills-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 28px; }
.skill-group h4 { font-size: 15px; margin-bottom: 10px; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }
.edu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.edu { padding: 20px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border); }
.edu h4 { font-size: 16px; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }
.edu p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.edu.todo { border-style: dashed; }

/* ---------- Portfolio / blog ---------- */
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 32px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  padding: 8px 16px; border-radius: 999px; font-size: 14px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); color: var(--muted); transition: all .2s ease;
}
.filter:hover { color: var(--text); border-color: var(--border-strong); }
.filter[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.search {
  display: flex; align-items: center; gap: 10px; padding: 9px 16px; border-radius: 999px; min-width: 260px;
  background: var(--surface); border: 1px solid var(--border);
}
.search svg { width: 16px; height: 16px; color: var(--faint); }
.search input { border: 0; background: transparent; outline: none; width: 100%; font-size: 14.5px; }

.featured-post { display: grid; grid-template-columns: 1.2fr 1fr; padding: 0; cursor: pointer; margin-bottom: 20px; }
.featured-post:hover { box-shadow: var(--shadow); }
.featured-post .cover { aspect-ratio: auto; min-height: 340px; }
.featured-post .cover .glyph { font-size: clamp(56px, 9vw, 110px); }
.featured-post .body { padding: 40px; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.featured-post h2 { font-size: clamp(28px, 3.2vw, 40px); }
.featured-post p { color: var(--muted); font-size: 16.5px; }
.empty { text-align: center; padding: 60px 0; color: var(--muted); }

/* Article view */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--grad); z-index: 100; transition: width .1s linear; }
.article { max-width: 760px; margin-inline: auto; padding: 30px 0 40px; }
.back-link { display: flex; width: fit-content; align-items: center; gap: 8px; color: var(--muted); font-size: 14.5px; margin-bottom: 30px; transition: color .2s; }
.back-link:hover { color: var(--text); }
.back-link svg { width: 16px; height: 16px; }
.article h1 { font-size: clamp(36px, 5.4vw, 60px); margin: 16px 0 20px; letter-spacing: -.035em; }
.article .dek { font-size: 20px; color: var(--muted); }
.article .cover { border-radius: var(--radius); margin: 36px 0 44px; border: 1px solid var(--border); }
.article .cover .glyph { font-size: clamp(60px, 10vw, 120px); }
.prose { font-size: 17.5px; line-height: 1.8; }
.prose > * + * { margin-top: 1.2em; }
.prose h2 { font-size: 28px; margin-top: 2em; }
.prose h3 { font-size: 21px; margin-top: 1.6em; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--text); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose ul { padding-left: 20px; display: grid; gap: 8px; }
.prose li::marker { color: var(--accent); }
.prose blockquote {
  margin-left: 0; margin-right: 0; padding: 18px 24px; border-left: 3px solid var(--accent); border-radius: 0 14px 14px 0;
  background: var(--grad-soft); font-family: var(--font-display); font-size: 21px; line-height: 1.45; color: var(--text);
}
.prose code { font-family: var(--font-mono); font-size: .86em; padding: 2px 7px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); }
.prose pre { padding: 20px 22px; border-radius: 14px; background: #120f22; border: 1px solid var(--border); overflow-x: auto; }
.prose pre code { background: none; border: 0; padding: 0; color: #e4e2f3; font-size: 14px; line-height: 1.7; }
.video-embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: #000; box-shadow: var(--shadow); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.stack-box { padding: 22px 24px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); }
.stack-note { margin-top: 14px; font-size: 14.5px; color: var(--muted); }
.stack-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.stack-box .side-title { margin-bottom: 12px; }
.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 60px; }
.article-nav a { padding: 20px 22px; }
.article-nav small { display: block; font-family: var(--font-mono); font-size: 12px; color: var(--faint); margin-bottom: 6px; }
.article-nav strong { font-family: var(--font-display); font-weight: 600; font-size: 17px; line-height: 1.3; display: block; }
.article-nav .next { text-align: right; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: .9fr 1.2fr; gap: 28px; align-items: start; padding-bottom: 40px; }
.contact-info { display: grid; gap: 16px; }
.info-row { display: flex; gap: 16px; align-items: flex-start; }
.info-row .svc-icon { margin: 0; flex: none; }
.info-row h3 { font-size: 17px; font-family: var(--font-body); letter-spacing: 0; font-weight: 600; }
.info-row p, .info-row a { color: var(--muted); font-size: 15px; }
.info-row a:hover { color: var(--text); }
.next-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; counter-reset: ns; }
.next-steps li { counter-increment: ns; display: flex; gap: 14px; color: var(--muted); font-size: 15px; }
.next-steps li::before {
  content: counter(ns); flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 13px; color: var(--accent); border: 1px solid var(--border-strong);
}
.next-steps strong { color: var(--text); display: block; font-weight: 600; }

.form { display: grid; gap: 20px; padding: clamp(24px, 4vw, 40px); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; }
.field label, .field legend { font-size: 14px; font-weight: 500; }
.field label .opt { color: var(--faint); font-weight: 400; }
.input {
  width: 100%; padding: 13px 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border);
  outline: none; transition: border-color .2s, box-shadow .2s; font-size: 15px;
}
.input::placeholder { color: var(--faint); }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(167, 139, 250, .18); }
textarea.input { min-height: 150px; resize: vertical; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23a3a3b8' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
select.input option { background: var(--bg-2); color: var(--text); }
fieldset.field { border: 0; padding: 0; margin: 0; }
.choice-group { display: flex; flex-wrap: wrap; gap: 8px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: inline-flex; padding: 9px 16px; border-radius: 999px; font-size: 14px; cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); transition: all .2s ease;
}
.choice span:hover { border-color: var(--border-strong); color: var(--text); }
.choice input:checked + span { background: var(--grad-soft), var(--surface-2); border-color: var(--accent); color: var(--text); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.field.invalid .input { border-color: #f87171; }
.field .err { color: #f87171; font-size: 13px; display: none; }
.field.invalid .err { display: block; }
.form-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; }
.form-foot small { color: var(--faint); font-size: 13px; max-width: 340px; }
.form-success { display: none; text-align: center; padding: 60px 30px; }
.form-success .svc-icon { margin: 0 auto 20px; width: 64px; height: 64px; border-radius: 50%; }
.form-success .svc-icon svg { width: 28px; height: 28px; }
.form-success h3 { font-size: 28px; margin-bottom: 10px; }
.form-success p { color: var(--muted); }
.form-card.sent .form { display: none; }
.form-card.sent .form-success { display: block; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2, .8, .2, 1), transform .8s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 64px; }
  .portrait-wrap { width: min(360px, 80%); }
  .values { grid-template-columns: repeat(2, 1fr); }
  .bento .span-2, .bento .span-3, .bento .span-4 { grid-column: span 3; }
  .process { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .resume-layout, .contact-layout { grid-template-columns: 1fr; }
  .resume-side { position: static; }
  .featured-post { grid-template-columns: 1fr; }
  .featured-post .cover { min-height: 240px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav-links {
    display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0; flex-direction: column; padding: 10px;
    background: var(--nav-bg); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--border-strong); border-radius: 20px; box-shadow: var(--shadow);
  }
  .nav.open .nav-links { display: flex; }
  .nav-links a { padding: 12px 16px; border-radius: 12px; }
  .menu-toggle { display: grid; }
  .nav-actions .btn { display: none; }
  .brand-text b { display: none; }
}
@media (max-width: 640px) {
  .section { padding: 80px 0; }
  .hero { padding-top: 40px; }
  .values, .process, .post-grid, .skills-grid, .edu-grid, .form-row, .article-nav { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .bento .span-2, .bento .span-3, .bento .span-4 { grid-column: auto; }
  .float-chip { font-size: 12px; padding: 8px 10px; }
  .float-chip .dot { width: 22px; height: 22px; }
  .float-chip.c1 { left: -6%; }
  .float-chip.c2 { right: -6%; }
  .search { min-width: 0; width: 100%; }
  .featured-post .body { padding: 26px; }
  .footer-grid { grid-template-columns: 1fr; }
  .article-nav .next { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Print (resume "Download PDF"): single-column resume layout ---------- */
@page { size: letter; margin: 0.5in 0.6in; }
@media print {
  :root, [data-theme] {
    --bg: #fff; --surface: #fff; --surface-2: #fff; --text: #16141f; --muted: #464356; --faint: #6b6879;
    --border: #dcd8ea; --border-strong: #c9c3e0; --accent: #5b21b6; --grad-soft: none;
    color-scheme: light;
  }
  html, body { background: #fff !important; color: var(--text); font-size: 10pt; line-height: 1.42; }
  *, *::before, *::after { box-shadow: none !important; text-shadow: none !important; animation: none !important; transition: none !important; }
  .bg-fx, .nav-wrap, .footer, .no-print, .page-hero { display: none !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .grad-text { background: none; color: var(--accent); -webkit-text-fill-color: currentColor; }
  a { color: inherit; text-decoration: none; }
  .container { width: 100%; margin: 0; }
  .card { background: none; border: 0; border-radius: 0; padding: 0; overflow: visible; }
  .spot::before { display: none; }

  /* One column, top to bottom */
  .resume-layout { display: block; padding: 0; }
  .resume-side { position: static; display: block; }
  .resume-side > .card:not(.profile-card) { display: none; }

  /* Header: photo, name, titles and contact details in one band */
  .profile-card { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: center; text-align: left; padding-bottom: 10px; margin-bottom: 14px; border-bottom: 2px solid var(--accent); }
  .profile-card img { grid-row: 1 / span 3; width: 68px; height: 68px; margin: 0; border: 0; background: none; }
  .profile-card h2 { font-size: 20pt; line-height: 1.1; }
  .profile-card .role { margin-top: 2px; font-size: 10pt; color: var(--muted); }
  .profile-card .role span { display: inline; }
  .profile-card .role span + span::before { content: "  ·  "; color: var(--faint); }
  .contact-list { display: flex; flex-wrap: wrap; gap: 2px 16px; margin: 5px 0 0; }
  .contact-list li { font-size: 9pt; color: var(--muted); gap: 5px; }
  .contact-list svg { width: 10px; height: 10px; color: var(--accent); }
  .contact-list a[href*="linkedin"] { font-size: 0; }
  .contact-list a[href*="linkedin"]::after { content: "linkedin.com/in/kyras-digital-solutions"; font-size: 9pt; }

  /* Sections */
  .resume-main { display: block; }
  .resume-main > section { margin-bottom: 13px; }
  .resume-main > section:has(.skills-grid), .resume-main > section:has(.edu-grid) { break-inside: avoid; }
  .resume-main h2 { font-size: 10.5pt; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); border-bottom: 1px solid var(--border); padding-bottom: 3px; margin-bottom: 8px; break-after: avoid; }
  .resume-main h2 .idx { display: none; }
  .summary { font-size: 10pt; color: var(--text); }

  .timeline { padding-left: 0; gap: 10px; }
  .timeline::before, .job::before { display: none; }
  .job { break-inside: avoid; }
  .job h3 { font-size: 10.5pt; }
  .job .when { font-family: var(--font-body); font-size: 9pt; color: var(--muted); white-space: nowrap; }
  .job .org { font-size: 9.5pt; color: var(--muted); font-weight: 500; margin-top: 0; }
  .job ul { margin-top: 3px; padding-left: 16px; gap: 1px; font-size: 9.5pt; color: var(--text); }

  /* Skills as compact labelled lines */
  .skills-grid { grid-template-columns: 1fr; gap: 2px; }
  .skill-group { display: flex; gap: 8px; break-inside: avoid; }
  .skill-group h4 { flex: none; width: 118px; margin: 0; font-size: 9.5pt; }
  .chip-cloud { display: block; }
  .chip-cloud .tag { display: inline; padding: 0; border: 0; border-radius: 0; background: none; font-family: var(--font-body); font-size: 9.5pt; color: var(--text); }
  .chip-cloud .tag + .tag::before { content: ", "; }

  /* Education */
  .edu-grid { grid-template-columns: 1fr 1fr; gap: 5px 18px; }
  .edu, .edu-wide { padding: 0; border: 0; border-radius: 0; background: none; break-inside: avoid; }
  .edu h4 { font-size: 9.5pt; }
  .edu p { font-size: 9pt; margin-top: 0; }
}

/* ---------- Screenshot covers + in-post figures ---------- */
.cover .cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; z-index: -1; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.post-card:hover .cover-img, .featured-post:hover .cover-img { transform: scale(1.04); }
.shot { margin: 2em 0 0; }
.shot img { width: 100%; height: auto; border-radius: var(--radius-sm); border: 1px solid var(--border); box-shadow: var(--shadow); }
.shot figcaption { margin-top: 12px; font-size: 14px; color: var(--faint); text-align: center; }
.cover:has(.cover-img)::after { display: none; }
.shot.phone { max-width: 320px; margin-inline: auto; }
.shot-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.shot-row img { border-radius: 22px; }
.shot.square { max-width: 420px; margin-inline: auto; }

/* ---------- Testimonials ---------- */
.testimonials { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; align-items: start; }
.testimonial { margin: 0; display: flex; flex-direction: column; gap: 22px; padding: clamp(26px, 4vw, 40px); }
.testimonial.featured { grid-column: 1 / -1; background: var(--grad-soft), var(--surface); }
.testimonial .quote-mark { width: 40px; height: 40px; color: var(--accent); opacity: .85; }
.testimonial blockquote { margin: 0; display: grid; gap: 1em; }
.testimonial blockquote p { font-size: 17.5px; line-height: 1.75; color: var(--text); }
.testimonial.featured blockquote p { font-size: clamp(17.5px, 1.6vw, 19.5px); }
.testimonial figcaption { display: flex; align-items: center; gap: 14px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--border); }
.testimonial figcaption strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 17px; }
.testimonial figcaption span span { display: block; color: var(--muted); font-size: 14px; }
.avatar {
  width: 56px; height: 56px; border-radius: 50%; flex: none; display: grid; place-items: center; overflow: hidden;
  background: var(--grad); color: #0b0614; font-family: var(--font-display); font-weight: 700; font-size: 18px;
  box-shadow: 0 8px 22px -10px rgba(192, 132, 252, .8);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 820px) { .testimonials { grid-template-columns: 1fr; } }
.home-testimonials { grid-template-columns: repeat(3, 1fr); margin-top: 40px; }
.home-testimonials .testimonial { height: 100%; }
.home-testimonials blockquote p { font-family: var(--font-display); font-size: 19px; line-height: 1.5; }
.testimonial .project-link { color: var(--accent); font-size: 14px; font-weight: 600; }
.testimonial .project-link:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1024px) { .home-testimonials { grid-template-columns: 1fr; } }
.job ul a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.edu-wide { grid-column: 1 / -1; background: var(--grad-soft), var(--surface-2); }
@media screen { .profile-card .role span { display: block; } }
