/* ==========================================================================
   Valtteri Ojala — work profile
   ========================================================================== */

:root {
  --font-body: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Sora", "Inter", "Segoe UI", Roboto, sans-serif;

  --bg: #f7f7fb;
  --bg-alt: #eef0f7;
  --surface: #ffffff;
  --surface-2: #f4f5fc;
  --ink: #090c1b;
  --ink-soft: #343a52;
  --muted: #656d87;
  --line: rgba(9, 12, 27, 0.09);
  --line-strong: rgba(9, 12, 27, 0.16);
  --accent: #5646ff;
  --accent-2: #7c3aed;
  --accent-3: #0891b2;
  --accent-soft: rgba(86, 70, 255, 0.09);
  --gold: #f5b83d;
  --shadow: 0 1px 2px rgba(9, 12, 27, 0.05), 0 18px 44px rgba(9, 12, 27, 0.07);
  --shadow-lg: 0 2px 6px rgba(9, 12, 27, 0.06), 0 32px 70px rgba(9, 12, 27, 0.12);
  --radius: 20px;
  --max: 1160px;
  --nav-h: 72px;
}

html[data-theme="dark"] {
  --bg: #060811;
  --bg-alt: #0b0f1d;
  --surface: #101528;
  --surface-2: #141a30;
  --ink: #eef1ff;
  --ink-soft: #c2c8e2;
  --muted: #8d95b2;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --accent: #8b7cff;
  --accent-2: #c084fc;
  --accent-3: #22d3ee;
  --accent-soft: rgba(139, 124, 255, 0.14);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 18px 44px rgba(0, 0, 0, 0.28);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.35), 0 32px 70px rgba(0, 0, 0, 0.4);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 20px); }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background .25s ease, color .25s ease;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.12;
}

/* Sora's lowercase "i" has a top-left flag with a very tight dot gap. At the
   small h3 sizes Firefox can rasterise the dot into the flag, making "i" read
   like "t". Its Turkish localised glyph raises the dot enough to keep them
   separate without changing the typeface. */
h3 {
  font-language-override: "TRK";
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }
img { max-width: 100%; display: block; }
p { margin-top: 0; }

::selection { background: rgba(86, 70, 255, .24); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #fff; padding: 10px 14px; z-index: 1000;
  border-radius: 0 0 8px 0; font-weight: 600;
}
.skip-link:focus { left: 12px; top: 0; color: #fff; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Scroll progress */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 100;
  background: transparent; pointer-events: none;
}
.scroll-progress span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  box-shadow: 0 0 12px rgba(86, 70, 255, .6);
  transition: width .1s linear;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: var(--max); margin: 0 auto; padding: 0 24px;
  height: var(--nav-h); display: flex; align-items: center; gap: 18px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.brand:hover { color: var(--ink); text-decoration: none; }
.brand-mark {
  display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: 8px; overflow: hidden;
  box-shadow: 0 6px 16px rgba(86, 70, 255, .32);
}
.brand-mark img { display: block; width: 100%; height: 100%; }
.nav-links {
  list-style: none; margin: 0 0 0 auto; padding: 0;
  display: flex; align-items: center; gap: 2px;
}
.nav-links a {
  display: inline-block; padding: 8px 10px; border-radius: 9px;
  color: var(--ink-soft); font-size: .9rem; font-weight: 500;
  text-decoration: none; transition: color .18s ease, background .18s ease;
}
.nav-links a:hover,
.nav-links a.is-active { color: var(--ink); background: var(--accent-soft); text-decoration: none; }
.nav-cta {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 16px; border-radius: 10px;
  background: var(--ink); color: var(--bg);
  font-size: .86rem; font-weight: 700; text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
.nav-cta:hover { color: var(--bg); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(9, 12, 27, .2); text-decoration: none; }
.theme-toggle {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; padding: 8px; color: var(--ink);
  cursor: pointer; display: grid; place-items: center;
  transition: border-color .18s ease, color .18s ease, transform .18s ease;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.lang-switch {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 3px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--line);
}
.lang-switch button {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 30px; padding: 5px 7px; border-radius: 7px;
  color: var(--muted); font-size: .76rem; font-weight: 700;
  letter-spacing: .04em; text-decoration: none;
  background: none; border: 0; font-family: inherit; cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.lang-switch button:hover { color: var(--ink); background: var(--accent-soft); }
.lang-switch button[aria-pressed="true"] { color: var(--accent); background: var(--accent-soft); }
html[data-theme="light"] .icon-sun { display: none; }
html[data-theme="dark"] .icon-moon { display: none; }
.nav-toggle {
  display: none; background: none; border: none; color: var(--ink);
  cursor: pointer; padding: 8px; border-radius: 8px;
}
.nav-toggle:hover { background: var(--accent-soft); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: #070a17;
  color: #f4f6ff;
  padding: clamp(56px, 8vw, 100px) 0 0;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 520px at 78% -10%, rgba(86, 70, 255, .38), transparent 62%),
    radial-gradient(700px 420px at 8% 20%, rgba(34, 211, 238, .12), transparent 65%),
    linear-gradient(180deg, #070a17 0%, #080c1c 70%, #070a17 100%);
}
.hero-grid-overlay {
  position: absolute; inset: 0; z-index: -1; opacity: .4;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 60% 35%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 35%, #000 0%, transparent 75%);
}
.hero-orb {
  position: absolute; z-index: -1; border-radius: 50%;
  filter: blur(90px); opacity: .5; pointer-events: none;
}
.hero-orb-one {
  width: 520px; height: 520px; top: -180px; right: -80px;
  background: #5646ff;
}
.hero-orb-two {
  width: 380px; height: 380px; bottom: -160px; left: -100px;
  background: #0891b2; opacity: .32;
}

.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(300px, .82fr);
  gap: clamp(36px, 6vw, 78px); align-items: center;
  padding-bottom: clamp(56px, 7vw, 84px);
}
.hero-copy { min-width: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  margin: 0 0 18px; color: var(--accent);
  font-size: .73rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.eyebrow-light { color: #b9c0e8; }
.status-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
  background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, .16);
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(3.2rem, 8vw, 6.2rem);
  font-weight: 800; line-height: .93; letter-spacing: -.05em;
  color: #fff;
}
.hero h1 .grad {
  background: linear-gradient(100deg, #ffffff 6%, #b8b2ff 46%, #67e8f9 96%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-title {
  margin: 0 0 20px; color: #aeb6dd;
  font-size: clamp(.78rem, 1.3vw, .88rem); font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase;
}
.hero-title > span[aria-hidden="true"] { color: #5f6893; margin: 0 4px; }
.hero-lede {
  max-width: 61ch; margin: 0 0 28px;
  color: #c4c9e4; font-size: clamp(1.02rem, 1.55vw, 1.16rem); line-height: 1.7;
}
.hero-lede strong { color: #fff; }

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 30px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 20px; border-radius: 11px;
  font-family: var(--font-body); font-weight: 600; font-size: .94rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(120deg, #6d5cff, #8b5cf6 55%, #6366f1);
  color: #fff;
  box-shadow: 0 12px 30px rgba(86, 70, 255, .38);
}
.btn-primary:hover { color: #fff; box-shadow: 0 16px 38px rgba(86, 70, 255, .5); }
.btn-ghost {
  background: rgba(255, 255, 255, .045); color: #e9ecff;
  border-color: rgba(255, 255, 255, .16); backdrop-filter: blur(6px);
}
.btn-ghost:hover { color: #fff; border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .08); }
.btn-icon {
  width: 44px; height: 44px; padding: 0;
  background: rgba(255, 255, 255, .045); color: #dfe3ff;
  border-color: rgba(255, 255, 255, .14);
}
.btn-icon:hover { color: #fff; border-color: rgba(255, 255, 255, .34); background: rgba(255, 255, 255, .09); }
.btn-block { width: 100%; }

.hero-metrics {
  list-style: none; margin: 0 0 24px; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px;
}
.hero-metrics li {
  display: flex; flex-direction: column; gap: 1px;
  padding: 12px 14px; border-radius: 13px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .1);
  backdrop-filter: blur(6px);
}
.hero-metrics strong {
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 700;
  color: #fff; line-height: 1.1;
}
.hero-metrics span { font-size: .72rem; color: #9aa2c8; line-height: 1.35; }

.hero-quote {
  margin: 0; padding: 14px 0 14px 18px;
  border-left: 3px solid transparent;
  border-image: linear-gradient(180deg, #8b7cff, #22d3ee) 1;
  background: linear-gradient(90deg, rgba(139, 124, 255, .12), transparent 72%);
}
.hero-quote blockquote {
  margin: 0 0 2px; font-family: var(--font-display);
  font-size: 1.02rem; font-weight: 600; color: #fff; letter-spacing: -.01em;
}
.hero-quote figcaption { font-size: .78rem; color: #8e97bf; }

/* Portrait */
.hero-visual { position: relative; justify-self: end; width: min(100%, 410px); }
.portrait-frame {
  position: relative; padding: 9px; border-radius: 30px;
  background: linear-gradient(150deg, rgba(139, 124, 255, .95), rgba(34, 211, 238, .4) 52%, rgba(255, 255, 255, .1));
  box-shadow: 0 40px 100px rgba(0, 0, 0, .5);
}
.portrait-frame::after {
  content: ""; position: absolute; inset: 9px; border-radius: 22px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
  pointer-events: none;
}
.portrait-frame img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 18%;
  border-radius: 22px;
}
.open-badge {
  position: absolute; top: 22px; right: -14px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  background: #0d1226; border: 1px solid rgba(52, 211, 153, .4);
  color: #eafff6; font-size: .78rem; font-weight: 700;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .45);
}
.floating-review {
  position: absolute; left: -30px; bottom: 28px;
  max-width: 250px; padding: 16px 18px 14px;
  border-radius: 16px;
  background: rgba(14, 18, 38, .9);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
  backdrop-filter: blur(14px);
}
.floating-mark {
  position: absolute; top: -12px; left: 12px;
  font-family: var(--font-display); font-size: 3.4rem; line-height: 1;
  color: #8b7cff; opacity: .65;
}
.floating-review p {
  margin: 8px 0 6px; color: #f0f2ff;
  font-family: var(--font-display); font-size: .93rem; font-weight: 600; line-height: 1.4;
}
.floating-review > span:last-child { font-size: .7rem; color: #8e97bf; letter-spacing: .02em; }

/* Ticker */
.ticker {
  position: relative; overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, .08);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .018);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track {
  display: flex; width: max-content;
  animation: ticker-scroll 42s linear infinite;
}
.ticker-track span {
  display: inline-flex; align-items: center; gap: 20px;
  padding: 13px 0; margin-right: 20px;
  color: #8f98c0; font-size: .76rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
}
.ticker-track span::after {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: linear-gradient(135deg, #8b7cff, #22d3ee); opacity: .8;
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.ticker.is-paused .ticker-track,
.is-page-hidden .ticker-track {
  animation-play-state: paused;
}

/* ==========================================================================
   Sections & shared
   ========================================================================== */
.section { position: relative; padding: clamp(64px, 9vw, 112px) 0; }
.section-alt { background: var(--bg-alt); }
.section-dark {
  position: relative; overflow: hidden;
  background: #070a17; color: #eef1ff;
  border-top: 1px solid rgba(255, 255, 255, .06);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.section-dark::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(760px 460px at 88% 4%, rgba(86, 70, 255, .24), transparent 62%),
    radial-gradient(620px 400px at 4% 96%, rgba(34, 211, 238, .1), transparent 65%);
}
.section-dark > .container { position: relative; z-index: 1; }

.section-head { max-width: 780px; margin-bottom: clamp(32px, 4vw, 48px); }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 14px;
  color: var(--accent); font-size: .72rem; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase;
}
.kicker::before {
  content: ""; width: 26px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-3));
}
.kicker-light { color: #a5b4fc; }
.section-title {
  margin: 0 0 16px; color: var(--ink);
  font-size: clamp(2rem, 4.2vw, 3.15rem); font-weight: 700;
  letter-spacing: -.035em; line-height: 1.06;
}
.section-dark .section-title { color: #fff; }
.grad-text {
  background: linear-gradient(105deg, var(--accent), var(--accent-2) 46%, var(--accent-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-dark .grad-text,
.contact-panel .grad-text {
  background: linear-gradient(105deg, #dbe4ff, #c4b5fd 45%, #67e8f9);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-intro { margin: 0; max-width: 68ch; color: var(--ink-soft); font-size: 1.01rem; }
.section-dark .section-intro { color: #aab1d0; }
.lead { font-size: clamp(1.1rem, 1.7vw, 1.24rem); color: var(--ink); line-height: 1.62; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.text-link { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: .93rem; }
.text-link span[aria-hidden="true"] { transition: transform .18s ease; }
.text-link:hover span[aria-hidden="true"] { transform: translateX(4px); }

/* Reveal on scroll */
.js .reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   About
   ========================================================================== */
.about-grid {
  display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .75fr);
  gap: clamp(36px, 6vw, 72px); align-items: start;
}
.about-copy p { color: var(--ink-soft); font-size: 1rem; }
.about-copy p.lead { color: var(--ink); }
.about-copy p.muted { color: var(--muted); }
.about-copy p.small { font-size: .85rem; }
.about-copy .text-link { margin-top: 6px; }
.about-panel {
  position: sticky; top: calc(var(--nav-h) + 24px);
  padding: 26px; border-radius: 24px;
  background: linear-gradient(165deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.about-panel::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
}
.about-panel-head { display: flex; align-items: center; gap: 13px; margin-bottom: 20px; }
.about-monogram {
  display: block; width: 48px; height: 48px; flex-shrink: 0;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(86, 70, 255, .3);
}
.about-panel-head strong { display: block; font-family: var(--font-display); font-size: 1rem; }
.about-panel-head span { display: block; color: var(--muted); font-size: .78rem; line-height: 1.4; }
.fact-list { margin: 0 0 20px; padding: 0; }
.fact-list > div {
  display: grid; grid-template-columns: 88px 1fr; gap: 10px;
  padding: 11px 0; border-top: 1px solid var(--line);
}
.fact-list dt { color: var(--muted); font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding-top: 2px; }
.fact-list dd { margin: 0; color: var(--ink-soft); font-size: .88rem; line-height: 1.5; }
.panel-note { margin: 14px 0 0; color: var(--muted); font-size: .76rem; line-height: 1.5; }

/* ==========================================================================
   Why me
   ========================================================================== */
.why-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.why-card {
  position: relative; overflow: hidden;
  padding: 30px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.why-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: var(--shadow-lg);
}
.why-card::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-3));
  opacity: 0; transition: opacity .25s ease;
}
.why-card:hover::after { opacity: 1; }
.why-num {
  position: absolute; top: 14px; right: 22px;
  font-family: var(--font-display); font-size: 3rem; font-weight: 800;
  line-height: 1; color: transparent;
  -webkit-text-stroke: 1px var(--line-strong);
  opacity: .55; pointer-events: none;
}
.why-icon {
  display: grid; place-items: center; width: 48px; height: 48px;
  margin-bottom: 18px; border-radius: 14px;
  color: var(--accent); background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
}
.why-card h3 { margin: 0 0 9px; font-size: 1.13rem; letter-spacing: -.015em; }
.why-card p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

.pull-quote {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  margin-top: 34px; padding: clamp(26px, 4vw, 40px);
  border-radius: 24px; color: #fff;
  background: linear-gradient(115deg, #0b0e1e 0%, #181e42 58%, #0c2130 100%);
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 26px 60px rgba(9, 12, 27, .22);
}
.pull-quote p {
  margin: 0; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.35rem, 2.6vw, 2rem); line-height: 1.18; letter-spacing: -.025em;
  max-width: 22ch;
}
.pull-quote span { max-width: 38ch; color: #aab1d0; font-size: .94rem; }

/* ==========================================================================
   Reviews
   ========================================================================== */
.review-featured {
  display: grid; grid-template-columns: minmax(0, 1fr) 250px;
  gap: clamp(28px, 4vw, 48px);
  padding: clamp(28px, 4.5vw, 50px);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(109, 92, 255, .28), rgba(139, 92, 246, .1) 55%, rgba(34, 211, 238, .08)),
    rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .28);
  backdrop-filter: blur(8px);
}
.review-featured-main { position: relative; }
.review-mark {
  position: absolute; top: -34px; left: -10px;
  font-family: var(--font-display); font-size: 8rem; font-weight: 800; line-height: 1;
  color: #8b7cff; opacity: .2; pointer-events: none;
}
.review-featured blockquote {
  position: relative; margin: 0 0 22px;
  font-family: var(--font-display); font-size: clamp(1.12rem, 1.9vw, 1.5rem);
  font-weight: 500; line-height: 1.58; letter-spacing: -.012em; color: #e6e9ff;
}
.review-highlight {
  color: #fff; font-weight: 700;
  background: linear-gradient(transparent 64%, rgba(139, 124, 255, .45) 64%);
}
.review-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  color: #8f98c0; font-size: .74rem;
}
.review-tag {
  display: inline-flex; align-items: center;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(139, 124, 255, .16); border: 1px solid rgba(139, 124, 255, .28);
  color: #c4bcff; font-size: .68rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
}
.review-stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
  align-self: center;
}
.review-stats > div {
  padding: 16px 14px; border-radius: 16px; text-align: center;
  background: rgba(7, 10, 23, .38);
  border: 1px solid rgba(255, 255, 255, .1);
}
.review-stats strong {
  display: block; font-family: var(--font-display); font-size: 1.55rem; font-weight: 700;
  line-height: 1.1;
  background: linear-gradient(100deg, #ffffff, #b8b2ff 55%, #67e8f9);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.review-stats span { display: block; margin-top: 2px; color: #8f98c0; font-size: .68rem; line-height: 1.3; }

.reviews-grid { columns: 3 300px; column-gap: 18px; margin-top: 20px; }
.review-card {
  break-inside: avoid; margin: 0 0 18px;
  padding: 22px; border-radius: 18px;
  background: rgba(255, 255, 255, .042);
  border: 1px solid rgba(255, 255, 255, .1);
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}
.review-card:hover {
  transform: translateY(-3px);
  border-color: rgba(139, 124, 255, .55);
  background: rgba(255, 255, 255, .065);
}
.review-card blockquote {
  margin: 0 0 16px; color: #c9cfe8; font-size: .93rem; line-height: 1.62;
}
.review-card-fun {
  background: linear-gradient(150deg, rgba(245, 184, 61, .1), rgba(255, 255, 255, .035));
  border-color: rgba(245, 184, 61, .3);
}
.review-card-fun blockquote { color: #f3e8cf; }
.review-card-poem blockquote {
  font-family: var(--font-display); font-weight: 500; font-size: .98rem; line-height: 1.75; color: #ecefff;
}
.reviews-note {
  margin: 26px 0 0; text-align: center; color: #7f88ae;
  font-size: .8rem; font-style: italic;
}

/* ==========================================================================
   Cards / highlights
   ========================================================================== */
.card-grid { display: grid; gap: 20px; }
.card-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  box-shadow: var(--shadow-lg);
}
.card h3 { margin: 0 0 8px; font-size: 1.1rem; color: var(--ink); letter-spacing: -.015em; }
.card h3 a { color: var(--ink); }
.card h3 a:hover { color: var(--accent); }
.card p { margin: 0 0 10px; color: var(--ink-soft); font-size: .95rem; }
.card-meta { color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 10px !important; }
.card-link { display: inline-flex; align-items: center; gap: 5px; margin-top: auto; font-size: .9rem; font-weight: 600; }
.card-icon {
  display: grid; place-items: center; width: 48px; height: 48px;
  margin-bottom: 16px; border-radius: 14px; color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
}
.highlight { display: flex; flex-direction: column; }
.highlight p { flex: 1; }

/* ==========================================================================
   Experience timeline
   ========================================================================== */
.timeline { position: relative; padding-left: 34px; }
.timeline::before {
  content: ""; position: absolute; left: 9px; top: 10px; bottom: 10px; width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-3) 55%, transparent);
  opacity: .5;
}
.tl-item { position: relative; margin-bottom: 18px; }
.tl-item:last-child { margin-bottom: 0; }
.tl-dot {
  position: absolute; left: -32px; top: 30px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent); border: 3px solid var(--bg-alt);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent), 0 0 18px color-mix(in srgb, var(--accent) 45%, transparent);
}
.tl-body {
  padding: 24px 26px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.tl-item:hover .tl-body {
  transform: translateX(4px);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  box-shadow: var(--shadow-lg);
}
.tl-item-featured .tl-body {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  background: linear-gradient(150deg, var(--surface), color-mix(in srgb, var(--accent) 5%, var(--surface)));
}
.tl-body header {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px;
  justify-content: space-between; margin-bottom: 4px;
}
.tl-body h3 { margin: 0; font-size: 1.1rem; color: var(--ink); letter-spacing: -.015em; }
.tl-meta {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font-size: .72rem; font-weight: 700; white-space: nowrap;
}
.tl-role { margin: 3px 0 9px; color: var(--accent); font-weight: 600; font-size: .88rem; }
.tl-body p { margin: 0 0 9px; color: var(--ink-soft); font-size: .94rem; }
.tl-note {
  padding: 9px 12px; border-radius: 9px;
  background: var(--accent-soft); color: var(--ink-soft) !important;
  font-size: .84rem !important;
  border-left: 3px solid color-mix(in srgb, var(--accent) 50%, transparent);
}
.tl-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tl-tags span {
  padding: 3px 9px; border-radius: 999px;
  color: var(--accent); background: var(--accent-soft);
  font-size: .72rem; font-weight: 600;
}
.timeline-toggle {
  display: none; align-items: center; justify-content: center; gap: 8px;
  width: fit-content; margin: 22px auto 0; padding: 11px 20px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  border-radius: 999px; background: var(--surface); color: var(--accent);
  font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.js .timeline-toggle { display: flex; }
.timeline-toggle:hover {
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  box-shadow: var(--shadow);
}
.timeline-toggle svg { transition: transform .2s ease; }
.timeline-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.js .timeline-more { display: none; }
.js .timeline-more.is-open { display: block; }

/* ==========================================================================
   Projects
   ========================================================================== */
.project-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.card.project { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.project-thumb {
  margin: 0; aspect-ratio: 16 / 10; overflow: hidden;
  background: var(--surface-2); border-bottom: 1px solid var(--line);
}
.project-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .45s cubic-bezier(.2, .7, .2, 1);
}
.card.project:hover .project-thumb img { transform: scale(1.055); }
.project-thumb.placeholder {
  display: grid; place-items: center;
  background:
    radial-gradient(400px 180px at 80% 0%, rgba(255, 255, 255, .18), transparent 60%),
    linear-gradient(135deg, #5646ff 0%, #7c3aed 55%, #0891b2 100%);
}
.project-thumb.placeholder span {
  color: #fff; font-family: var(--font-display); font-weight: 800;
  font-size: 1.5rem; letter-spacing: .14em; opacity: .92;
}
.project-body { display: flex; flex-direction: column; flex: 1; padding: 21px 24px 24px; }
.project-body h3 { margin-bottom: 7px; }
.project-body p:last-of-type { flex: 1; }
.project-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.project-tags span {
  padding: 3px 9px; border-radius: 999px;
  color: var(--muted); background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: .69rem; font-weight: 600;
}

/* ==========================================================================
   Skills
   ========================================================================== */
.skill-groups {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px;
}
.skill-group {
  padding: 24px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.skill-group-accent {
  background:
    linear-gradient(150deg, color-mix(in srgb, var(--accent) 9%, var(--surface)), var(--surface));
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
}
.skill-group h3 { margin: 0 0 14px; font-size: .98rem; letter-spacing: -.01em; }
.pill-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 7px; }
.pill-list li {
  padding: 5px 11px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--ink-soft); font-size: .8rem;
  transition: border-color .18s ease, color .18s ease, background .18s ease;
}
.pill-list li:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  color: var(--accent); background: var(--accent-soft);
}

/* ==========================================================================
   Education
   ========================================================================== */
.edu-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.edu-item {
  display: flex; gap: 16px; padding: 22px 24px;
  border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform .22s ease, border-color .22s ease;
}
.edu-item:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.edu-icon {
  display: grid; place-items: center; flex-shrink: 0;
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; font-family: var(--font-display);
  font-size: .72rem; font-weight: 800; letter-spacing: .02em;
  box-shadow: 0 10px 22px rgba(86, 70, 255, .22);
}
.edu-item h3 { margin: 0 0 2px; font-size: 1.04rem; }
.edu-sub { margin: 0 0 6px; color: var(--accent); font-weight: 600; font-size: .84rem; }
.edu-item p { margin: 0; color: var(--ink-soft); font-size: .9rem; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-panel {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr);
  gap: clamp(30px, 5vw, 60px);
  padding: clamp(32px, 6vw, 68px);
  border-radius: 32px;
  background:
    radial-gradient(700px 400px at 88% 0%, rgba(86, 70, 255, .38), transparent 62%),
    radial-gradient(500px 340px at 4% 100%, rgba(34, 211, 238, .14), transparent 65%),
    linear-gradient(130deg, #070a17, #111633 58%, #0a1c27);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 40px 100px rgba(9, 12, 27, .35);
  color: #fff;
}
.contact-copy { position: relative; z-index: 1; }
.contact-copy .section-title { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.contact-lede { max-width: 54ch; margin: 0 0 26px; color: #b8bfdf; font-size: 1rem; line-height: 1.68; }
.contact-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; align-content: center; }
.contact-card {
  display: flex; align-items: center; gap: 11px;
  padding: 13px 15px; border-radius: 13px;
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .12);
  color: #e9ecff; text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.contact-card:hover {
  transform: translateY(-2px);
  border-color: rgba(139, 124, 255, .6);
  background: rgba(255, 255, 255, .09);
  color: #fff; text-decoration: none;
}
.contact-card svg { flex-shrink: 0; color: #a5b4fc; }
.contact-card > span { display: flex; flex-direction: column; font-size: .82rem; line-height: 1.35; min-width: 0; overflow-wrap: anywhere; }
.contact-card strong { font-size: .66rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #8f98c0; }
.contact-note {
  grid-column: 1 / -1; margin: 4px 0 0;
  color: #8f98c0; font-size: .78rem; text-align: center;
  padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .1);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  padding: 26px 0; border-top: 1px solid var(--line);
  color: var(--muted); font-size: .84rem;
}
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.footer-inner p { margin: 0; }
.footer-links { display: flex; gap: 18px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--accent); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1120px) {
  .nav-cta { display: none; }
}

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 42px; }
  .hero-visual { justify-self: start; width: min(100%, 360px); }
  .hero-copy { max-width: 720px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-panel { position: static; max-width: 560px; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .skill-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review-featured { grid-template-columns: 1fr; }
  .review-stats { grid-template-columns: repeat(4, 1fr); }
  .contact-panel { grid-template-columns: 1fr; }
  .contact-grid { max-width: 560px; }
}

@media (max-width: 860px) {
  .card-grid.three { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .pull-quote { flex-direction: column; align-items: flex-start; gap: 14px; }
  .pull-quote p { max-width: none; }
  .edu-list { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  :root { --nav-h: 64px; }
  .nav { gap: 8px; }
  .nav-toggle { display: inline-grid; place-items: center; margin-left: auto; }
  .nav-links {
    display: none;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px 18px 18px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px rgba(9, 12, 27, .12);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 11px 12px; font-size: .95rem; }
  .theme-toggle { margin-left: 0; }
  .brand-text { font-size: .92rem; }

  .hero { padding-top: 42px; }
  .hero h1 { font-size: clamp(2.9rem, 14vw, 4.2rem); }
  .hero-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-visual { width: min(100%, 330px); }
  .open-badge { right: 8px; top: 16px; }
  .floating-review { left: 8px; bottom: 16px; max-width: 220px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .reviews-grid { columns: 2 260px; }
  .review-stats { grid-template-columns: repeat(2, 1fr); }
  .timeline { padding-left: 26px; }
  .timeline::before { left: 6px; }
  .tl-dot { left: -27px; top: 26px; width: 14px; height: 14px; }
  .tl-body { padding: 20px 20px; }
  .section-dark .section-title { font-size: clamp(1.8rem, 7vw, 2.5rem); }
}

@media (max-width: 620px) {
  .project-grid { grid-template-columns: 1fr; }
  .skill-groups { grid-template-columns: 1fr; }
  .reviews-grid { columns: 1; }
  .contact-grid { grid-template-columns: 1fr; }
  .about-panel { padding: 22px; }
  .fact-list > div { grid-template-columns: 78px 1fr; }
  .why-card { padding: 24px; }
  .card { padding: 24px; }
  .card.project { padding: 0; }
  .pull-quote { padding: 24px; }
  .contact-panel { border-radius: 24px; }
  .footer-inner { justify-content: center; text-align: center; }
}

@media (max-width: 420px) {
  .container { padding: 0 18px; }
  .hero-metrics { grid-template-columns: 1fr 1fr; }
  .floating-review { display: none; }
  .open-badge { right: 0; }
  .tl-body header { flex-direction: column; gap: 2px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* Print */
@media print {
  .site-header, .scroll-progress, .hero-orb, .ticker, .hero-actions, .nav-cta, .theme-toggle, .lang-switch, .skip-link, .floating-review, .open-badge, .timeline-toggle { display: none !important; }
  .js .timeline-more { display: block !important; }
  body { background: #fff; color: #000; }
  .hero, .section-dark, .contact-panel { background: #fff !important; color: #000 !important; border-color: #ddd !important; }
  .section, .hero { padding: 20px 0; }
  .hero h1, .hero h1 .grad, .section-dark .section-title, .contact-copy .section-title { color: #000 !important; -webkit-text-fill-color: #000; background: none; }
  .hero-lede, .section-dark .section-intro, .contact-lede, .hero-title, .hero-quote blockquote, .hero-quote figcaption { color: #333 !important; }
  .card, .why-card, .review-card, .tl-body, .edu-item, .skill-group, .about-panel { box-shadow: none !important; break-inside: avoid; }
  .review-featured, .review-card, .review-stats > div { background: #fff !important; border-color: #ddd !important; box-shadow: none !important; }
  .review-featured blockquote, .review-card blockquote, .review-highlight, .review-stats strong, .review-card-poem blockquote { color: #111 !important; -webkit-text-fill-color: #111; background: none !important; }
  .review-meta, .reviews-note { color: #444 !important; }
  .review-tag { color: #333 !important; background: #f3f3f3 !important; border-color: #ccc !important; }
  .grad-text { color: #111 !important; -webkit-text-fill-color: #111 !important; background: none !important; }
  .contact-card, .contact-card strong, .contact-card > span, .contact-note { color: #111 !important; background: #fff !important; border-color: #ddd !important; }
  .contact-card svg { color: #333 !important; }
  a { color: #000 !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
}
