:root {
      --bg: #050816;
      --card: #0d1328;
      --purple: #8b5cf6;
      --cyan: #22d3ee;
      --pink: #ec4899;
      --text: #f8fafc;
      --muted: #94a3b8;
      --line: rgba(148, 163, 184, .14);
      --max: 1400px;
      --ease: cubic-bezier(.22, 1, .36, 1);
    }

    * { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; scroll-padding-top: 96px; }
    body {
      font-family: Inter, system-ui, sans-serif;
      background: var(--bg);
      color: var(--text);
      line-height: 1.6;
      overflow-x: hidden;
      -webkit-font-smoothing: antialiased;
    }
    ::selection { background: rgba(139, 92, 246, .35); color: #fff; }
    a { color: inherit; text-decoration: none; }
    img { display: block; max-width: 100%; }
    .wrap { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }

    /* Ambient layers */
    .aurora-bg {
      position: fixed; inset: 0; z-index: 0; pointer-events: none;
      background:
        radial-gradient(900px 500px at 15% -10%, rgba(139, 92, 246, .18), transparent 55%),
        radial-gradient(700px 420px at 90% 10%, rgba(34, 211, 238, .12), transparent 50%),
        radial-gradient(600px 400px at 50% 100%, rgba(236, 72, 153, .06), transparent 55%),
        var(--bg);
    }
    .grid-bg {
      position: fixed; inset: 0; z-index: 0; pointer-events: none;
      background-image:
        linear-gradient(rgba(148, 163, 184, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, .045) 1px, transparent 1px);
      background-size: 64px 64px;
      mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
      opacity: .7;
    }
    #particles {
      position: fixed; inset: 0; z-index: 0; pointer-events: none;
    }
    .mouse-glow {
      position: fixed;
      width: 520px; height: 520px;
      border-radius: 50%;
      pointer-events: none;
      z-index: 1;
      background: radial-gradient(circle,
        rgba(139, 92, 246, .16) 0%,
        rgba(34, 211, 238, .08) 35%,
        transparent 70%);
      transform: translate(-50%, -50%);
      transition: opacity .4s;
      opacity: 0;
      mix-blend-mode: screen;
    }
    .content { position: relative; z-index: 2; }

    /* Loader */
    .loader {
      position: fixed; inset: 0; z-index: 100;
      background: #050816;
      display: grid; place-items: center;
      transition: opacity .7s var(--ease), visibility .7s;
    }
    .loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
    .loader-mark {
      font-family: "Space Grotesk", sans-serif;
      font-weight: 700;
      font-size: 1.6rem;
      letter-spacing: -.04em;
      background: linear-gradient(120deg, var(--purple), var(--cyan));
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
      animation: logoPulse 1.2s ease infinite alternate;
    }
    @keyframes logoPulse {
      from { filter: brightness(1); transform: scale(1); }
      to { filter: brightness(1.2); transform: scale(1.03); }
    }

    /* Nav — strong glass bar */
    .nav {
      position: fixed; inset: 16px 0 auto; z-index: 50;
      display: flex; justify-content: center;
      pointer-events: none;
    }
    .nav-inner {
      pointer-events: auto;
      width: min(var(--max), calc(100% - 40px));
      height: 72px;
      padding: 0 14px 0 16px;
      display: flex; align-items: center; justify-content: space-between;
      gap: 16px;
      border-radius: 20px;
      background: rgba(13, 19, 40, .55);
      border: 1px solid rgba(148, 163, 184, .14);
      backdrop-filter: blur(18px) saturate(1.25);
      box-shadow:
        0 10px 40px rgba(0, 0, 0, .35),
        inset 0 1px 0 rgba(255, 255, 255, .05);
      transition: background .35s, border-color .35s, box-shadow .35s, transform .35s;
    }
    .nav.scrolled .nav-inner {
      background: rgba(5, 8, 22, .88);
      border-color: rgba(139, 92, 246, .28);
      box-shadow:
        0 14px 50px rgba(0, 0, 0, .45),
        0 0 0 1px rgba(34, 211, 238, .08),
        inset 0 1px 0 rgba(255, 255, 255, .06);
    }
    .logo {
      display: inline-flex;
      align-items: center;
      gap: 12px;
      font-family: "Space Grotesk", sans-serif;
      font-weight: 700;
      letter-spacing: -.04em;
      font-size: 1.05rem;
      padding: 6px 8px 6px 6px;
      border-radius: 14px;
      transition: background .25s;
    }
    .logo:hover { background: rgba(255, 255, 255, .04); }
    .logo-mark {
      position: relative;
      width: 44px;
      height: 44px;
      border-radius: 14px;
      flex-shrink: 0;
    }
    .logo-mark::before {
      content: "";
      position: absolute;
      inset: -2px;
      border-radius: 16px;
      background: linear-gradient(135deg, var(--purple), var(--cyan), var(--pink));
      opacity: .9;
      z-index: 0;
    }
    .logo-mark img {
      position: relative;
      z-index: 1;
      width: 100%;
      height: 100%;
      border-radius: 13px;
      object-fit: cover;
      display: block;
      background: #0d1328;
    }
    .logo-text {
      display: flex;
      flex-direction: column;
      gap: 1px;
      line-height: 1.15;
    }
    .logo-text strong {
      font-size: 1.02rem;
      font-weight: 700;
    }
    .logo-text strong span {
      background: linear-gradient(120deg, var(--purple), var(--cyan));
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
    }
    .logo-text small {
      font-family: Inter, system-ui, sans-serif;
      font-size: .68rem;
      font-weight: 500;
      letter-spacing: .06em;
      text-transform: uppercase;
      color: var(--muted);
    }
    .nav-links {
      display: flex; align-items: center; gap: 6px;
      font-size: .88rem; font-weight: 500; color: var(--muted);
    }
    .nav-links a:not(.btn) {
      padding: 10px 14px;
      border-radius: 12px;
      transition: color .25s, background .25s;
    }
    .nav-links a:not(.btn):hover {
      color: var(--text);
      background: rgba(255, 255, 255, .05);
    }
    .nav .btn { height: 44px; padding: 0 18px; font-size: .86rem; }
    .btn {
      display: inline-flex; align-items: center; justify-content: center; gap: 8px;
      height: 46px; padding: 0 20px;
      border-radius: 999px;
      font-family: "Space Grotesk", sans-serif;
      font-weight: 600;
      font-size: .9rem;
      border: 0;
      cursor: pointer;
      transition: transform .35s var(--ease), box-shadow .35s, background .3s, border-color .3s;
      will-change: transform;
    }
    .btn-primary {
      background: linear-gradient(135deg, var(--purple), #6d28d9 45%, var(--cyan));
      color: #fff;
      box-shadow: 0 8px 28px rgba(139, 92, 246, .28);
    }
    .btn-primary:hover {
      box-shadow: 0 14px 40px rgba(139, 92, 246, .4);
    }
    .btn-ghost {
      background: transparent;
      color: var(--text);
      border: 1px solid var(--line);
    }
    .btn-ghost:hover { border-color: rgba(34, 211, 238, .4); }

    /* Hero */
    .hero {
      min-height: 100svh;
      padding: 128px 0 56px;
      display: grid;
      align-items: center;
    }
    .hero-grid {
      display: grid;
      grid-template-columns: 1.05fr .95fr;
      gap: 40px;
      align-items: center;
    }

    /* Hero visual slider */
    .hero-visual {
      position: relative;
      width: 100%;
      max-width: 520px;
      justify-self: end;
    }
    .hero-slider {
      position: relative;
      width: 100%;
      min-height: 380px;
      border-radius: 24px;
      overflow: hidden;
      border: 1px solid var(--line);
      background: #0d1328;
      aspect-ratio: 1 / 1;
      box-shadow:
        0 0 0 1px rgba(139, 92, 246, .12),
        0 30px 80px rgba(0, 0, 0, .4);
    }
    .hero-slider::before {
      content: "";
      position: absolute; inset: 0;
      border-radius: 24px;
      padding: 1px;
      background: linear-gradient(130deg, rgba(139,92,246,.55), rgba(34,211,238,.3), rgba(236,72,153,.35), rgba(139,92,246,.55));
      background-size: 220% 220%;
      animation: borderMove 8s linear infinite;
      -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
      mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
      -webkit-mask-composite: xor;
      mask-composite: exclude;
      pointer-events: none;
      z-index: 5;
    }
    .hero-slider .slides {
      position: absolute;
      inset: 0;
      z-index: 1;
    }
    .hero-slide {
      position: absolute;
      inset: 0;
      opacity: 0;
      visibility: hidden;
      transition: opacity .65s ease, visibility .65s ease;
      z-index: 1;
    }
    .hero-slide.is-active {
      opacity: 1;
      visibility: visible;
      z-index: 2;
    }
    .hero-slide img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
      display: block;
    }
    .hero-slide .slide-shade {
      position: absolute;
      inset: 0;
      background: linear-gradient(180deg, transparent 45%, rgba(5, 8, 22, .88) 92%);
      pointer-events: none;
    }
    .slide-caption {
      position: absolute;
      left: 20px; right: 20px; bottom: 20px;
      z-index: 3;
    }
    .slide-caption .tag {
      display: inline-flex;
      font-family: "JetBrains Mono", monospace;
      font-size: .7rem;
      letter-spacing: .1em;
      text-transform: uppercase;
      color: var(--cyan);
      margin-bottom: 8px;
      border: 0;
      background: none;
      padding: 0;
    }
    .slide-caption h3 {
      font-family: "Space Grotesk", sans-serif;
      font-size: 1.25rem;
      letter-spacing: -.02em;
      margin-bottom: 4px;
    }
    .slide-caption p {
      color: var(--muted);
      font-size: .88rem;
      line-height: 1.45;
      max-width: 32ch;
    }
    .slider-ui {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-top: 14px;
    }
    .slider-dots {
      display: flex;
      gap: 8px;
    }
    .slider-dots button {
      width: 8px; height: 8px;
      border-radius: 999px;
      border: 0;
      background: rgba(148, 163, 184, .35);
      cursor: pointer;
      padding: 0;
      transition: width .3s, background .3s;
    }
    .slider-dots button.is-active {
      width: 26px;
      background: linear-gradient(90deg, var(--purple), var(--cyan));
    }
    .slider-nav {
      display: flex;
      gap: 8px;
    }
    .slider-nav button {
      width: 40px; height: 40px;
      border-radius: 12px;
      border: 1px solid var(--line);
      background: rgba(13, 19, 40, .8);
      color: var(--text);
      cursor: pointer;
      font-size: 1rem;
      transition: border-color .25s, background .25s, transform .25s;
    }
    .slider-nav button:hover {
      border-color: rgba(139, 92, 246, .45);
      background: rgba(139, 92, 246, .12);
      transform: translateY(-1px);
    }
    .eyebrow {
      display: inline-flex; align-items: center; gap: 10px;
      font-size: .78rem;
      letter-spacing: .12em;
      text-transform: uppercase;
      color: var(--cyan);
      font-weight: 600;
      margin-bottom: 20px;
    }
    .eyebrow i {
      width: 8px; height: 8px; border-radius: 50%;
      background: var(--cyan);
      box-shadow: 0 0 16px var(--cyan);
    }
    .hero h1 {
      font-family: "Space Grotesk", sans-serif;
      font-weight: 700;
      font-size: clamp(2.2rem, 4.8vw, 3.6rem);
      line-height: 1.08;
      letter-spacing: -.04em;
      margin-bottom: 18px;
      max-width: 16ch;
    }
    .hero h1 em {
      font-style: normal;
      background: linear-gradient(120deg, var(--purple), var(--cyan) 55%, var(--pink));
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
    }
    .hero-lead {
      color: var(--muted);
      font-size: 1.08rem;
      max-width: 38ch;
      margin-bottom: 14px;
    }
    .typed-wrap {
      font-family: "JetBrains Mono", monospace;
      font-size: .92rem;
      color: var(--cyan);
      min-height: 1.5em;
      margin-bottom: 28px;
    }
    .typed-wrap::after {
      content: "";
      display: inline-block;
      width: 8px; height: 1.05em;
      background: var(--purple);
      margin-left: 4px;
      vertical-align: text-bottom;
      animation: blink 1s step-end infinite;
    }
    @keyframes blink { 50% { opacity: 0; } }
    .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

    /* Code window */
    .code-window {
      background: var(--card);
      border: 1px solid var(--line);
      border-radius: 18px;
      overflow: hidden;
      box-shadow:
        0 0 0 1px rgba(139, 92, 246, .08),
        0 30px 80px rgba(0, 0, 0, .45);
      position: relative;
    }
    .code-window::before {
      content: "";
      position: absolute; inset: -1px;
      border-radius: 19px;
      padding: 1px;
      background: linear-gradient(120deg, rgba(139,92,246,.55), rgba(34,211,238,.35), rgba(236,72,153,.35), rgba(139,92,246,.55));
      background-size: 220% 220%;
      animation: borderMove 8s linear infinite;
      -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
      mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
      -webkit-mask-composite: xor;
      mask-composite: exclude;
      pointer-events: none;
    }
    @keyframes borderMove {
      to { background-position: 200% 0; }
    }
    .code-top {
      display: flex; align-items: center; gap: 8px;
      padding: 14px 16px;
      border-bottom: 1px solid var(--line);
      background: rgba(255,255,255,.02);
    }
    .code-top .dot {
      width: 10px; height: 10px; border-radius: 50%;
    }
    .dot.r { background: #ff5f57; }
    .dot.y { background: #febc2e; }
    .dot.g { background: #28c840; }
    .code-top .file {
      margin-left: 10px;
      font-family: "JetBrains Mono", monospace;
      font-size: .72rem;
      color: var(--muted);
    }
    .code-body {
      padding: 20px 18px 24px;
      font-family: "JetBrains Mono", monospace;
      font-size: .82rem;
      line-height: 1.75;
      color: var(--muted);
      overflow: auto;
    }
    .code-body .k { color: var(--purple); }
    .code-body .s { color: #86efac; }
    .code-body .n { color: var(--cyan); }
    .code-body .c { color: #64748b; }
    .code-body .p { color: var(--pink); }

    /* Marquee */
    .marquee {
      border-block: 1px solid var(--line);
      background: rgba(13, 19, 40, .55);
      overflow: hidden;
      padding: 18px 0;
      margin-top: 24px;
    }
    .marquee-track {
      display: flex; gap: 40px; width: max-content;
      animation: marquee 32s linear infinite;
      font-family: "Space Grotesk", sans-serif;
      font-weight: 600;
      font-size: .95rem;
      letter-spacing: -.01em;
      color: var(--muted);
    }
    .marquee-track span { display: inline-flex; align-items: center; gap: 40px; }
    .marquee-track span::after {
      content: "✦";
      color: var(--purple);
      opacity: .7;
    }
    @keyframes marquee {
      from { transform: translateX(0); }
      to { transform: translateX(-50%); }
    }

    /* Sections */
    section { padding: 100px 0; }
    .sec-head { margin-bottom: 40px; max-width: 40rem; }
    .label {
      font-size: .75rem;
      letter-spacing: .16em;
      text-transform: uppercase;
      color: var(--cyan);
      font-weight: 600;
      margin-bottom: 12px;
    }
    h2 {
      font-family: "Space Grotesk", sans-serif;
      font-weight: 700;
      font-size: clamp(1.9rem, 4vw, 2.8rem);
      letter-spacing: -.035em;
      line-height: 1.1;
      margin-bottom: 12px;
    }
    .lede { color: var(--muted); font-size: 1.02rem; }

    /* Bento */
    .bento {
      display: grid;
      grid-template-columns: repeat(12, 1fr);
      gap: 14px;
    }
    .bento-card {
      background: var(--card);
      border: 1px solid var(--line);
      border-radius: 20px;
      padding: 24px;
      position: relative;
      overflow: hidden;
      transition: transform .4s var(--ease), border-color .3s, box-shadow .4s;
    }
    .bento-card::before {
      content: "";
      position: absolute; inset: 0;
      background: radial-gradient(500px 200px at var(--mx, 50%) var(--my, 0%), rgba(139,92,246,.14), transparent 55%);
      opacity: 0;
      transition: opacity .35s;
      pointer-events: none;
    }
    .bento-card:hover {
      transform: translateY(-4px);
      border-color: rgba(139, 92, 246, .35);
      box-shadow: 0 20px 50px rgba(0,0,0,.3);
    }
    .bento-card:hover::before { opacity: 1; }
    .bento-card .icon {
      width: 42px; height: 42px;
      border-radius: 12px;
      display: grid; place-items: center;
      margin-bottom: 18px;
      background: rgba(139, 92, 246, .12);
      color: var(--cyan);
      font-size: 1.1rem;
    }
    .bento-card h3 {
      font-family: "Space Grotesk", sans-serif;
      font-size: 1.15rem;
      letter-spacing: -.02em;
      margin-bottom: 8px;
    }
    .bento-card p { color: var(--muted); font-size: .92rem; }
    .b1 { grid-column: span 5; grid-row: span 2; min-height: 280px; }
    .b2 { grid-column: span 4; min-height: 150px; }
    .b3 { grid-column: span 3; min-height: 150px; }
    .b4 { grid-column: span 4; min-height: 150px; }
    .b5 { grid-column: span 3; min-height: 150px; }
    .b6 { grid-column: span 5; min-height: 150px; }
    .b1 {
      background:
        linear-gradient(160deg, rgba(139,92,246,.18), transparent 45%),
        var(--card);
    }

    /* Projects — compact card grid */
    .projects-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 18px;
    }
    .projects-grid--cards {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 16px;
    }
    .project {
      background: var(--card);
      border: 1px solid var(--line);
      border-radius: 18px;
      overflow: hidden;
      transform-style: preserve-3d;
      transition: box-shadow .3s, border-color .3s, transform .3s;
      will-change: transform;
      display: flex;
      flex-direction: column;
      min-height: 100%;
    }
    .project:hover {
      border-color: rgba(34, 211, 238, .32);
      box-shadow: 0 16px 40px rgba(0,0,0,.28);
      transform: translateY(-2px);
    }
    .project-media {
      position: relative;
      aspect-ratio: 16/10;
      overflow: hidden;
      background: #0a0f1f;
      display: block;
    }
    .projects-grid--cards .project-media {
      aspect-ratio: 16/9;
    }
    .project-media img {
      width: 100%; height: 100%;
      object-fit: cover;
      object-position: top center;
      transition: transform .7s var(--ease);
      filter: saturate(1.05) contrast(1.05);
    }
    .project:hover .project-media img { transform: scale(1.05); }
    .project-media .project-badge {
      position: absolute;
      left: 10px;
      top: 10px;
      margin: 0;
      z-index: 1;
      backdrop-filter: blur(8px);
      background: rgba(8, 12, 24, .72);
    }
    .project-body {
      padding: 14px 16px 16px;
      display: flex;
      flex-direction: column;
      flex: 1;
    }
    .project-tags {
      display: flex; flex-wrap: wrap; gap: 6px;
      margin-bottom: 8px;
    }
    .tag {
      font-size: .68rem;
      font-weight: 600;
      letter-spacing: .03em;
      padding: 4px 8px;
      border-radius: 999px;
      border: 1px solid var(--line);
      color: var(--muted);
      background: rgba(255,255,255,.02);
    }
    .project h3 {
      font-family: "Space Grotesk", sans-serif;
      font-size: 1.05rem;
      letter-spacing: -.02em;
      margin-bottom: 6px;
      line-height: 1.25;
    }
    .project h3 a { color: inherit; text-decoration: none; }
    .project h3 a:hover { color: var(--cyan, #22d3ee); }
    .project p,
    .project-summary {
      color: var(--muted);
      font-size: .82rem;
      line-height: 1.45;
      margin-bottom: 12px;
    }
    .project-summary {
      display: -webkit-box;
      -webkit-line-clamp: 3;
      -webkit-box-orient: vertical;
      overflow: hidden;
      flex: 1;
      min-height: 3.6em;
    }
    .project-actions {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      margin-top: auto;
    }
    .projects-grid--cards .project-actions .btn {
      padding: 8px 12px;
      font-size: .8rem;
    }
    @media (max-width: 980px) {
      .projects-grid--cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }
    @media (max-width: 640px) {
      .projects-grid--cards { grid-template-columns: 1fr; }
    }

    /* Process */
    .process {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 12px;
    }
    .step {
      background: var(--card);
      border: 1px solid var(--line);
      border-radius: 18px;
      padding: 22px 18px;
      min-height: 160px;
      transition: transform .35s var(--ease), border-color .3s;
    }
    .step:hover {
      transform: translateY(-4px);
      border-color: rgba(139, 92, 246, .35);
    }
    .step .n {
      font-family: "JetBrains Mono", monospace;
      font-size: .78rem;
      color: var(--purple);
      margin-bottom: 28px;
    }
    .step h3 {
      font-family: "Space Grotesk", sans-serif;
      font-size: 1.05rem;
      margin-bottom: 6px;
    }
    .step p { color: var(--muted); font-size: .85rem; }

    /* Skills page — richer bento */
    .skills-page .bento { gap: 16px; }
    .skill-card {
      display: flex;
      flex-direction: column;
      padding: 0;
      min-height: 0;
    }
    .skill-card .skill-media {
      position: relative;
      height: 140px;
      overflow: hidden;
      flex-shrink: 0;
    }
    .skill-card.b1 .skill-media { height: 200px; }
    .skill-media--sm { height: 110px; }
    .skill-media img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transform: scale(1.02);
      filter: saturate(1.05) contrast(1.08) brightness(.88);
      transition: transform .9s var(--ease), filter .4s;
    }
    .skill-card:hover .skill-media img {
      transform: scale(1.1);
      filter: saturate(1.15) contrast(1.1) brightness(.95);
    }
    .skill-media__fade {
      position: absolute;
      inset: 0;
      background: linear-gradient(180deg, transparent 20%, rgba(13, 19, 40, .92) 100%);
      pointer-events: none;
    }
    .skill-body {
      padding: 18px 22px 22px;
      position: relative;
      z-index: 1;
      margin-top: -28px;
      display: flex;
      flex-direction: column;
      flex: 1;
    }
    .skill-icon {
      width: 44px;
      height: 44px;
      border-radius: 14px;
      display: grid;
      place-items: center;
      margin-bottom: 14px;
      color: var(--cyan);
      background:
        linear-gradient(135deg, rgba(139, 92, 246, .22), rgba(34, 211, 238, .1));
      border: 1px solid rgba(139, 92, 246, .28);
      box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
      animation: skillIconPulse 3.6s ease-in-out infinite;
    }
    .skill-icon svg { width: 22px; height: 22px; }
    .skill-card:nth-child(2) .skill-icon { animation-delay: .4s; }
    .skill-card:nth-child(3) .skill-icon { animation-delay: .8s; }
    .skill-card:nth-child(4) .skill-icon { animation-delay: 1.2s; }
    .skill-card:nth-child(5) .skill-icon { animation-delay: 1.6s; }
    .skill-card:nth-child(6) .skill-icon { animation-delay: 2s; }
    @keyframes skillIconPulse {
      0%, 100% { box-shadow: 0 8px 24px rgba(0,0,0,.25), 0 0 0 0 rgba(34, 211, 238, 0); }
      50% { box-shadow: 0 8px 24px rgba(0,0,0,.25), 0 0 0 6px rgba(34, 211, 238, .08); }
    }
    .skill-card h3 { margin-bottom: 8px; }
    .skill-card p { margin-bottom: 14px; }
    .skill-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-top: auto;
    }
    .skill-tags span {
      font-size: .7rem;
      font-weight: 600;
      letter-spacing: .03em;
      color: #c4b5fd;
      padding: 4px 9px;
      border-radius: 8px;
      border: 1px solid rgba(139, 92, 246, .25);
      background: rgba(139, 92, 246, .1);
    }
    .skills-cta {
      margin-top: 48px;
      padding: 28px 32px;
      border-radius: 22px;
      border: 1px solid rgba(34, 211, 238, .2);
      background:
        linear-gradient(120deg, rgba(139, 92, 246, .12), rgba(34, 211, 238, .06));
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
    }
    .skills-cta p {
      color: var(--text);
      font-family: "Space Grotesk", sans-serif;
      font-size: 1.15rem;
      letter-spacing: -.02em;
      max-width: 36rem;
    }
    .skills-cta__actions { display: flex; flex-wrap: wrap; gap: 10px; }

    /* Process page — rich timeline */
    .process--rich {
      grid-template-columns: 1fr;
      gap: 18px;
      position: relative;
    }
    .process--rich::before {
      content: "";
      position: absolute;
      left: 28px;
      top: 24px;
      bottom: 24px;
      width: 2px;
      background: linear-gradient(180deg, rgba(139, 92, 246, .55), rgba(34, 211, 238, .35), transparent);
      border-radius: 2px;
      opacity: .55;
    }
    .step--rich {
      display: grid;
      grid-template-columns: minmax(0, 220px) 1fr;
      gap: 0;
      padding: 0;
      overflow: hidden;
      align-items: stretch;
    }
    .step-visual {
      position: relative;
      min-height: 180px;
      overflow: hidden;
      background: #0a0f1f;
    }
    .step-visual img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      filter: saturate(1.05) brightness(.85);
      transition: transform .8s var(--ease), filter .4s;
    }
    .step--rich:hover .step-visual img {
      transform: scale(1.08);
      filter: saturate(1.12) brightness(.95);
    }
    .step-visual::after {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(90deg, transparent 40%, rgba(13, 19, 40, .85));
      pointer-events: none;
    }
    .step-content {
      padding: 22px 24px 24px;
      position: relative;
    }
    .step-top {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 10px;
    }
    .step--rich .n {
      margin: 0;
      font-size: 1.6rem;
    }
    .step-icon {
      width: 38px;
      height: 38px;
      border-radius: 12px;
      display: grid;
      place-items: center;
      color: var(--cyan);
      background: rgba(34, 211, 238, .1);
      border: 1px solid rgba(34, 211, 238, .25);
    }
    .step-icon svg { width: 18px; height: 18px; }
    .step--rich h3 {
      font-size: 1.25rem;
      margin-bottom: 8px;
    }
    .step--rich p {
      font-size: .95rem;
      line-height: 1.55;
      margin-bottom: 12px;
    }
    .step-points {
      list-style: none;
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }
    .step-points li {
      font-size: .75rem;
      font-weight: 600;
      color: var(--muted);
      padding: 5px 10px;
      border-radius: 999px;
      border: 1px solid var(--line);
      background: rgba(255, 255, 255, .03);
    }
    @media (max-width: 720px) {
      .process--rich::before { display: none; }
      .step--rich { grid-template-columns: 1fr; }
      .step-visual { min-height: 140px; }
      .step-visual::after {
        background: linear-gradient(180deg, transparent 30%, rgba(13, 19, 40, .9));
      }
      .skill-card.b1 .skill-media,
      .skill-media--sm { height: 130px; }
    }

    /* Stats */
    .stats {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 14px;
    }
    .stat {
      text-align: center;
      padding: 36px 16px;
      border-radius: 20px;
      border: 1px solid var(--line);
      background: linear-gradient(180deg, rgba(139,92,246,.08), transparent 60%), var(--card);
    }
    .stat strong {
      display: block;
      font-family: "Space Grotesk", sans-serif;
      font-size: clamp(2rem, 4vw, 3rem);
      letter-spacing: -.04em;
      background: linear-gradient(120deg, var(--text), var(--cyan));
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
      margin-bottom: 6px;
    }
    .stat span { color: var(--muted); font-size: .9rem; }

    /* Contact */
    .contact-panel {
      border-radius: 28px;
      border: 1px solid var(--line);
      padding: clamp(36px, 6vw, 72px);
      background:
        radial-gradient(700px 280px at 85% 0%, rgba(139,92,246,.22), transparent 55%),
        radial-gradient(500px 240px at 10% 100%, rgba(34,211,238,.12), transparent 50%),
        var(--card);
      text-align: center;
      position: relative;
      overflow: hidden;
    }
    .contact-panel h2 {
      font-size: clamp(2rem, 5vw, 3.4rem);
      max-width: 16ch;
      margin-inline: auto;
    }
    .contact-panel .lede {
      max-width: 40ch;
      margin: 0 auto 28px;
    }
    .contact-actions {
      display: flex; justify-content: center; gap: 12px; flex-wrap: wrap;
    }

    .contact-page .sec-head {
      text-align: left;
      max-width: 40rem;
    }
    .contact-channels {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 14px;
      margin-top: 8px;
    }
    .contact-channel {
      display: flex;
      align-items: center;
      gap: 16px;
      padding: 18px 20px;
      border-radius: 18px;
      border: 1px solid var(--line);
      background:
        linear-gradient(135deg, rgba(139,92,246,.08), transparent 55%),
        rgba(255,255,255,.02);
      color: var(--text);
      transition: border-color .25s, background .25s, transform .25s, box-shadow .25s;
      min-height: 88px;
    }
    .contact-channel:hover {
      border-color: rgba(34, 211, 238, .35);
      background:
        linear-gradient(135deg, rgba(34,211,238,.1), transparent 55%),
        rgba(255,255,255,.04);
      transform: translateY(-3px);
      box-shadow: 0 16px 40px rgba(0,0,0,.25);
    }
    .contact-channel__icon {
      width: 48px;
      height: 48px;
      border-radius: 14px;
      display: grid;
      place-items: center;
      flex-shrink: 0;
      font-family: "Space Grotesk", sans-serif;
      font-weight: 700;
      font-size: .78rem;
      letter-spacing: .04em;
      color: var(--cyan);
      border: 1px solid rgba(34,211,238,.25);
      background: rgba(34,211,238,.08);
    }
    .contact-channel__meta {
      display: flex;
      flex-direction: column;
      gap: 4px;
      min-width: 0;
    }
    .contact-channel__meta strong {
      font-family: "Space Grotesk", sans-serif;
      font-size: 1.05rem;
      letter-spacing: -.02em;
    }
    .contact-channel__meta small {
      color: var(--muted);
      font-size: .82rem;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .contact-empty {
      grid-column: 1 / -1;
      color: var(--muted);
      padding: 24px;
      border: 1px dashed var(--line);
      border-radius: 16px;
      text-align: center;
    }
    @media (max-width: 720px) {
      .contact-channels { grid-template-columns: 1fr; }
    }

    /* Footer — strong brand block */
    .site-footer {
      margin-top: 40px;
      border-top: 1px solid transparent;
      border-image: linear-gradient(90deg, transparent, rgba(139,92,246,.45), rgba(34,211,238,.45), transparent) 1;
      background:
        radial-gradient(700px 220px at 20% 0%, rgba(139,92,246,.12), transparent 55%),
        radial-gradient(500px 180px at 90% 100%, rgba(34,211,238,.08), transparent 50%),
        rgba(13, 19, 40, .55);
    }
    .footer-main {
      width: min(var(--max), calc(100% - 40px));
      margin-inline: auto;
      padding: 56px 0 36px;
      display: grid;
      grid-template-columns: 1.3fr .7fr .7fr;
      gap: 40px;
    }
    .footer-brand-block {
      display: flex;
      flex-direction: column;
      gap: 16px;
      max-width: 34ch;
    }
    .footer-brand {
      display: inline-flex;
      align-items: center;
      gap: 12px;
      color: var(--text);
      font-family: "Space Grotesk", sans-serif;
      font-weight: 700;
      font-size: 1.15rem;
      letter-spacing: -.03em;
      width: fit-content;
    }
    .footer-brand .logo-mark {
      width: 48px;
      height: 48px;
      border-radius: 15px;
    }
    .footer-brand .logo-mark::before { border-radius: 17px; }
    .footer-brand .logo-mark img { border-radius: 14px; }
    .footer-brand-block p {
      color: var(--muted);
      font-size: .95rem;
      line-height: 1.6;
    }
    .footer-cta {
      display: inline-flex;
      margin-top: 4px;
    }
    .footer-col h4 {
      font-family: "Space Grotesk", sans-serif;
      font-size: .78rem;
      letter-spacing: .12em;
      text-transform: uppercase;
      color: var(--cyan);
      margin-bottom: 16px;
    }
    .footer-col a {
      display: block;
      color: var(--muted);
      font-size: .92rem;
      padding: 7px 0;
      transition: color .25s, transform .25s;
    }
    .footer-col a:hover {
      color: var(--text);
      transform: translateX(3px);
    }
    .footer-bottom {
      width: min(var(--max), calc(100% - 40px));
      margin-inline: auto;
      padding: 18px 0 28px;
      border-top: 1px solid var(--line);
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 12px;
      flex-wrap: wrap;
      color: var(--muted);
      font-size: .8rem;
    }
    .footer-bottom a { color: var(--cyan); }
    .footer-social {
      display: flex; gap: 10px;
    }
    .footer-social a {
      width: 38px; height: 38px;
      border-radius: 12px;
      border: 1px solid var(--line);
      display: grid; place-items: center;
      color: var(--muted);
      background: rgba(255,255,255,.02);
      transition: border-color .25s, color .25s, background .25s, transform .25s;
      font-size: .78rem;
      font-weight: 700;
      font-family: "Space Grotesk", sans-serif;
    }
    .footer-social a:hover {
      color: var(--text);
      border-color: rgba(139, 92, 246, .4);
      background: rgba(139, 92, 246, .1);
      transform: translateY(-2px);
    }

    .back {
      position: fixed; right: 16px; bottom: 16px; z-index: 60;
      height: 36px; padding: 0 12px;
      border-radius: 999px;
      border: 1px solid var(--line);
      background: rgba(13, 19, 40, .9);
      color: var(--muted);
      font-size: .7rem;
      display: inline-flex; align-items: center;
    }

    /* Reveal: asla gizli başlamasın (JS/animasyon kırılsa da içerik görünsün) */
    .reveal {
      opacity: 1;
      transform: none;
    }

    @media (max-width: 960px) {
      .hero-grid, .stats, .footer-main { grid-template-columns: 1fr; }
      .projects-grid:not(.projects-grid--cards) { grid-template-columns: 1fr; }
      .b1, .b2, .b3, .b4, .b5, .b6 { grid-column: span 12; min-height: auto; }
      .nav-links a:not(.btn) { display: none; }
      .logo-text small { display: none; }
      .process { grid-template-columns: 1fr 1fr; }
      .process--rich { grid-template-columns: 1fr; }
      .stats { grid-template-columns: 1fr 1fr; }
      .hero-visual { order: -1; justify-self: center; max-width: 420px; }
      .nav { inset: 10px 0 auto; }
      .nav-inner { height: 64px; }
    }
    @media (max-width: 560px) {
      .process { grid-template-columns: 1fr; }
    }
    .nav-links a.is-active {
      color: var(--text);
      background: rgba(255, 255, 255, .06);
    }

    /* Inner pages — geniş tek kolon içerik */
    .page-shell {
      padding: 128px 0 40px;
      min-height: 60vh;
    }
    .page-shell .sec-head { margin-bottom: 40px; }
    .hero--compact {
      min-height: auto;
      padding: 128px 0 40px;
    }

    /* Blog (same theme as Projeler) */
    .blog-toolbar {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      margin-bottom: 28px;
      align-items: stretch;
    }
    .blog-search {
      flex: 1 1 220px;
      display: flex;
      gap: 8px;
      padding: 6px;
      border-radius: 16px;
      border: 1px solid var(--line);
      background: rgba(13, 19, 40, .7);
    }
    .blog-search input {
      flex: 1 1 auto;
      border: 0;
      background: transparent;
      color: var(--text);
      font: inherit;
      padding: 10px 12px;
      outline: none;
      min-width: 0;
    }
    .blog-search input::placeholder { color: var(--muted); }
    .blog-sort {
      position: relative;
      flex: 0 0 auto;
      align-self: stretch;
      display: flex;
    }
    .blog-sort::after {
      content: "";
      position: absolute;
      right: 12px;
      top: 50%;
      width: 10px;
      height: 6px;
      transform: translateY(-50%);
      pointer-events: none;
      background: var(--muted);
      clip-path: polygon(0 0, 100% 0, 50% 100%);
      opacity: .85;
    }
    .blog-search select {
      appearance: none;
      -webkit-appearance: none;
      -moz-appearance: none;
      color-scheme: dark;
      border: 1px solid var(--line);
      border-radius: 12px;
      background: rgba(255, 255, 255, .04);
      color: var(--text);
      font: inherit;
      font-size: .88rem;
      font-weight: 500;
      letter-spacing: .01em;
      padding: 10px 34px 10px 14px;
      outline: none;
      min-width: 9.75rem;
      cursor: pointer;
      transition: border-color .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
    }
    .blog-search select:hover {
      border-color: rgba(139, 92, 246, .4);
      background: rgba(139, 92, 246, .1);
      color: var(--text);
    }
    .blog-search select:focus {
      border-color: rgba(34, 211, 238, .45);
      background: rgba(34, 211, 238, .08);
      box-shadow: 0 0 0 3px rgba(34, 211, 238, .12);
    }
    .blog-search select option {
      background-color: #0d1328;
      color: #f8fafc;
    }
    .blog-sort.is-enhanced select {
      position: absolute;
      opacity: 0;
      pointer-events: none;
      width: 1px;
      height: 1px;
      inset: 0;
    }
    .blog-sort__trigger {
      appearance: none;
      border: 1px solid var(--line);
      border-radius: 12px;
      background: rgba(255, 255, 255, .04);
      color: var(--text);
      font: inherit;
      font-size: .88rem;
      font-weight: 500;
      letter-spacing: .01em;
      padding: 10px 34px 10px 14px;
      min-width: 9.75rem;
      cursor: pointer;
      text-align: left;
      transition: border-color .2s var(--ease), background .2s var(--ease);
    }
    .blog-sort__trigger:hover,
    .blog-sort.is-open .blog-sort__trigger {
      border-color: rgba(139, 92, 246, .45);
      background: rgba(139, 92, 246, .12);
    }
    .blog-sort__trigger:focus-visible {
      outline: none;
      border-color: rgba(34, 211, 238, .45);
      box-shadow: 0 0 0 3px rgba(34, 211, 238, .12);
    }
    .blog-sort.is-enhanced::after { z-index: 2; }
    .blog-sort.is-open::after { transform: translateY(-50%) rotate(180deg); }
    .blog-sort__menu {
      position: absolute;
      top: calc(100% + 6px);
      left: 0;
      right: 0;
      z-index: 40;
      margin: 0;
      padding: 6px;
      list-style: none;
      border-radius: 14px;
      border: 1px solid rgba(139, 92, 246, .28);
      background: rgba(10, 15, 31, .96);
      backdrop-filter: blur(16px);
      box-shadow: 0 18px 40px rgba(0, 0, 0, .45), 0 0 0 1px rgba(34, 211, 238, .06);
    }
    .blog-sort__menu[hidden] { display: none !important; }
    .blog-sort__option {
      display: block;
      width: 100%;
      border: 0;
      border-radius: 10px;
      background: transparent;
      color: var(--muted);
      font: inherit;
      font-size: .88rem;
      font-weight: 500;
      text-align: left;
      padding: 10px 12px;
      cursor: pointer;
      transition: background .15s, color .15s;
    }
    .blog-sort__option:hover {
      color: var(--text);
      background: rgba(139, 92, 246, .14);
    }
    .blog-sort__option.is-active {
      color: var(--text);
      background: linear-gradient(135deg, rgba(139, 92, 246, .22), rgba(34, 211, 238, .12));
    }
    .blog-search button {
      border: 0;
      border-radius: 12px;
      padding: 0 16px;
      font-family: "Space Grotesk", sans-serif;
      font-weight: 600;
      cursor: pointer;
      color: #fff;
      background: linear-gradient(135deg, var(--purple), #6d28d9 45%, var(--cyan));
    }
    .blog-cats {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-bottom: 28px;
    }
    .blog-cats a {
      padding: 8px 14px;
      border-radius: 999px;
      border: 1px solid var(--line);
      color: var(--muted);
      font-size: .82rem;
      font-weight: 500;
      background: rgba(255,255,255,.02);
      transition: border-color .25s, color .25s, background .25s;
    }
    .blog-cats a:hover,
    .blog-cats a.is-active {
      color: var(--text);
      border-color: rgba(139, 92, 246, .4);
      background: rgba(139, 92, 246, .12);
    }
    .blog-empty {
      color: var(--muted);
      padding: 40px 0;
      grid-column: 1 / -1;
    }
    .blog-pager {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 28px;
      grid-column: 1 / -1;
    }
    .blog-pager a {
      min-width: 40px;
      height: 40px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 12px;
      border: 1px solid var(--line);
      color: var(--muted);
      font-size: .88rem;
      background: rgba(13, 19, 40, .7);
    }
    .blog-pager a.is-active,
    .blog-pager a:hover {
      color: var(--text);
      border-color: rgba(139, 92, 246, .4);
      background: rgba(139, 92, 246, .12);
    }
    .project-body time {
      display: block;
      color: var(--muted);
      font-size: .78rem;
      margin-bottom: 8px;
    }
    .blog-article {
      max-width: none;
      width: 100%;
      margin: 0;
    }
    .blog-back {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      color: var(--muted);
      font-size: .9rem;
      margin-bottom: 20px;
      transition: color .25s;
    }
    .blog-back:hover { color: var(--cyan); }
    .blog-article h1 {
      font-family: "Space Grotesk", sans-serif;
      font-size: clamp(1.9rem, 4vw, 2.8rem);
      letter-spacing: -.035em;
      line-height: 1.1;
      margin: 12px 0 14px;
    }
    .blog-article__meta {
      color: var(--muted);
      font-size: .9rem;
      margin-bottom: 18px;
    }
    .blog-article__lead {
      color: var(--muted);
      font-size: 1.08rem;
      margin-bottom: 28px;
      line-height: 1.6;
    }
    .blog-article__cover {
      border-radius: 22px;
      overflow: hidden;
      border: 1px solid var(--line);
      margin-bottom: 32px;
      background: #0a0f1f;
    }
    .case-shot {
      margin: 28px 0 36px;
    }
    .case-shot img {
      width: 100%;
      border-radius: 18px;
      border: 1px solid var(--line);
      background: #0a0f1f;
    }
    .case-shot figcaption {
      margin-top: 10px;
      color: var(--muted);
      font-size: .85rem;
    }
    .project-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: .72rem;
      font-weight: 600;
      letter-spacing: .06em;
      text-transform: uppercase;
      color: var(--cyan);
      margin-bottom: 8px;
    }
    .blog-article__cover img {
      width: 100%;
      max-height: 420px;
      object-fit: cover;
    }
    .blog-article__body {
      color: #cbd5e1;
      font-size: 1.05rem;
      line-height: 1.75;
    }
    .blog-article__body h2,
    .blog-article__body h3 {
      font-family: "Space Grotesk", sans-serif;
      color: var(--text);
      margin: 1.75rem 0 .75rem;
      letter-spacing: -.02em;
    }
    .blog-article__body a { color: var(--cyan); }
    .blog-article__body img {
      max-width: 100%;
      height: auto;
      border-radius: 14px;
      margin: 1rem 0;
    }
    .blog-article__body code {
      font-family: "JetBrains Mono", ui-monospace, monospace;
      font-size: .9em;
      background: rgba(139, 92, 246, .12);
      border: 1px solid rgba(139, 92, 246, .18);
      border-radius: 6px;
      padding: .12em .4em;
      color: #e2e8f0;
      word-break: break-word;
    }
    .blog-article__body pre {
      margin: 1.25rem 0;
      padding: 1.1rem 1.15rem;
      overflow-x: hidden;
      overflow-y: visible;
      border: 1px solid rgba(139, 92, 246, .22);
      border-radius: 14px;
      background:
        linear-gradient(180deg, rgba(139, 92, 246, .08), transparent 42%),
        rgba(8, 12, 28, .92);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
    }
    .blog-article__body pre code {
      display: block;
      padding: 0;
      border: 0;
      border-radius: 0;
      background: transparent;
      color: #cbd5e1;
      font-size: .86rem;
      line-height: 1.65;
      white-space: pre-wrap;
      overflow-wrap: anywhere;
      word-break: break-word;
      tab-size: 2;
    }
    .blog-related {
      margin-top: 56px;
      padding-top: 36px;
      border-top: 1px solid var(--line);
    }
    .blog-related h2 {
      font-size: 1.4rem;
      margin-bottom: 20px;
    }

    /* ── v030: AI map, services, lab, GitHub, timeline, form, i18n ── */

    .og-safe { max-width: 1200px; max-height: 630px; object-fit: cover; }

    .lang-toggle {
      display: inline-flex;
      gap: 2px;
      padding: 3px;
      border-radius: 12px;
      border: 1px solid var(--line);
      background: rgba(255, 255, 255, .03);
    }
    .lang-toggle button {
      border: 0;
      background: transparent;
      color: var(--muted);
      font-family: "JetBrains Mono", monospace;
      font-size: .72rem;
      font-weight: 600;
      padding: 8px 10px;
      border-radius: 9px;
      cursor: pointer;
      transition: color .2s, background .2s;
    }
    .lang-toggle button.is-active {
      color: var(--text);
      background: rgba(139, 92, 246, .22);
    }
    .lang-toggle button:hover:not(.is-active) {
      color: var(--text);
      background: rgba(255, 255, 255, .05);
    }

    .section-cta {
      margin-top: 32px;
      display: flex;
      justify-content: center;
    }

    .case-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 16px;
    }
    .case-grid--blog { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .case-card {
      display: block;
      padding: 22px 24px;
      border-radius: 20px;
      border: 1px solid var(--line);
      background: var(--card);
      transition: border-color .3s, transform .35s var(--ease), box-shadow .35s;
    }
    .case-card:hover {
      border-color: rgba(139, 92, 246, .35);
      transform: translateY(-4px);
      box-shadow: 0 20px 50px rgba(0, 0, 0, .3);
    }
    .case-tag {
      display: inline-block;
      font-size: .7rem;
      font-weight: 600;
      letter-spacing: .06em;
      text-transform: uppercase;
      color: var(--cyan);
      margin-bottom: 10px;
    }
    .case-card h3 {
      font-family: "Space Grotesk", sans-serif;
      font-size: 1.2rem;
      letter-spacing: -.02em;
      margin-bottom: 14px;
    }
    .case-card dl {
      display: grid;
      gap: 8px;
    }
    .case-card dt {
      font-size: .68rem;
      font-weight: 700;
      letter-spacing: .08em;
      text-transform: uppercase;
      color: var(--purple);
    }
    .case-card dd {
      color: var(--muted);
      font-size: .88rem;
      margin: 0 0 6px;
    }
    .case-card p {
      color: var(--muted);
      font-size: .9rem;
      margin: 0;
    }

    .ai-map {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 14px;
    }
    .ai-map__item {
      padding: 22px 20px;
      border-radius: 18px;
      border: 1px solid var(--line);
      background: var(--card);
      position: relative;
      overflow: hidden;
      transition: border-color .3s, transform .35s var(--ease);
    }
    .ai-map__item:hover {
      transform: translateY(-3px);
      border-color: rgba(34, 211, 238, .3);
    }
    .ai-map__item[data-level="used"] { border-top: 2px solid rgba(148, 163, 184, .5); }
    .ai-map__item[data-level="built"] { border-top: 2px solid var(--purple); }
    .ai-map__item[data-level="scaled"] { border-top: 2px solid var(--cyan); }
    .ai-map__badge {
      display: inline-block;
      font-size: .65rem;
      font-weight: 700;
      letter-spacing: .08em;
      text-transform: uppercase;
      padding: 4px 10px;
      border-radius: 999px;
      margin-bottom: 12px;
      border: 1px solid var(--line);
      color: var(--muted);
      background: rgba(255, 255, 255, .03);
    }
    .ai-map__item[data-level="built"] .ai-map__badge {
      color: #c4b5fd;
      border-color: rgba(139, 92, 246, .35);
      background: rgba(139, 92, 246, .12);
    }
    .ai-map__item[data-level="scaled"] .ai-map__badge {
      color: var(--cyan);
      border-color: rgba(34, 211, 238, .35);
      background: rgba(34, 211, 238, .1);
    }
    .ai-map__item h3 {
      font-family: "Space Grotesk", sans-serif;
      font-size: 1.1rem;
      margin-bottom: 8px;
    }
    .ai-map__item p {
      color: var(--muted);
      font-size: .88rem;
    }

    .svc-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 14px;
    }
    .svc-card {
      padding: 24px 22px;
      border-radius: 20px;
      border: 1px solid var(--line);
      background:
        linear-gradient(160deg, rgba(139, 92, 246, .08), transparent 50%),
        var(--card);
      display: flex;
      flex-direction: column;
      gap: 12px;
      min-height: 200px;
      transition: border-color .3s, transform .35s var(--ease);
    }
    .svc-card:hover {
      border-color: rgba(139, 92, 246, .35);
      transform: translateY(-4px);
    }
    .svc-card h3 {
      font-family: "Space Grotesk", sans-serif;
      font-size: 1.15rem;
      letter-spacing: -.02em;
    }
    .svc-card p {
      color: var(--muted);
      font-size: .9rem;
      flex: 1;
    }
    .svc-card .btn { align-self: flex-start; height: 40px; font-size: .82rem; }

    .lab-shell {
      display: grid;
      grid-template-columns: 1.2fr .8fr;
      gap: 18px;
      padding: 24px;
      border-radius: 22px;
      border: 1px solid var(--line);
      background: var(--card);
    }
    .lab-nodes {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 8px;
      margin-bottom: 18px;
    }
    .lab-node {
      font-family: "JetBrains Mono", monospace;
      font-size: .78rem;
      font-weight: 500;
      padding: 10px 14px;
      border-radius: 12px;
      border: 1px solid var(--line);
      background: rgba(255, 255, 255, .03);
      color: var(--muted);
      cursor: pointer;
      transition: border-color .25s, color .25s, background .25s, box-shadow .25s;
    }
    .lab-node:hover,
    .lab-node.is-active {
      color: var(--text);
      border-color: rgba(139, 92, 246, .45);
      background: rgba(139, 92, 246, .14);
      box-shadow: 0 0 20px rgba(139, 92, 246, .15);
    }
    .lab-node--side {
      margin-left: auto;
      border-color: rgba(236, 72, 153, .3);
    }
    .lab-node--side.is-active {
      border-color: rgba(236, 72, 153, .5);
      background: rgba(236, 72, 153, .12);
    }
    .lab-arrow {
      color: var(--purple);
      font-size: .9rem;
      opacity: .7;
    }
    .lab-explain {
      padding: 16px 18px;
      border-radius: 14px;
      border: 1px solid var(--line);
      background: rgba(5, 8, 22, .5);
      color: var(--muted);
      font-size: .92rem;
      line-height: 1.55;
      min-height: 80px;
    }
    .lab-chat {
      display: flex;
      flex-direction: column;
      gap: 12px;
      border-left: 1px solid var(--line);
      padding-left: 18px;
    }
    .lab-chat__title {
      font-family: "Space Grotesk", sans-serif;
      font-size: .95rem;
      font-weight: 600;
      color: var(--cyan);
    }
    .lab-chat__log {
      flex: 1;
      min-height: 160px;
      max-height: 220px;
      overflow-y: auto;
      padding: 12px;
      border-radius: 14px;
      border: 1px solid var(--line);
      background: rgba(5, 8, 22, .6);
      font-size: .85rem;
    }
    .lab-chat__log .msg {
      margin-bottom: 10px;
      padding: 8px 10px;
      border-radius: 10px;
    }
    .lab-chat__log .msg--user {
      background: rgba(139, 92, 246, .15);
      color: var(--text);
      margin-left: 20%;
    }
    .lab-chat__log .msg--bot {
      background: rgba(34, 211, 238, .08);
      color: var(--muted);
      margin-right: 10%;
    }
    .lab-chat__presets {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }
    .rag-preset {
      border: 1px solid var(--line);
      background: rgba(255, 255, 255, .03);
      color: var(--muted);
      font-size: .75rem;
      padding: 8px 12px;
      border-radius: 999px;
      cursor: pointer;
      transition: border-color .2s, color .2s, background .2s;
    }
    .rag-preset:hover {
      color: var(--text);
      border-color: rgba(34, 211, 238, .4);
      background: rgba(34, 211, 238, .08);
    }

    .gh-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 14px;
    }
    .gh-card {
      padding: 20px 18px;
      border-radius: 18px;
      border: 1px solid var(--line);
      background: var(--card);
      transition: border-color .3s, transform .35s var(--ease);
    }
    .gh-card:hover {
      border-color: rgba(34, 211, 238, .3);
      transform: translateY(-3px);
    }
    .gh-card h3 {
      font-family: "Space Grotesk", sans-serif;
      font-size: 1rem;
      margin-bottom: 8px;
    }
    .gh-card h3 a { color: var(--text); }
    .gh-card h3 a:hover { color: var(--cyan); }
    .gh-meta {
      display: flex;
      gap: 12px;
      font-size: .75rem;
      color: var(--muted);
      margin-bottom: 10px;
    }
    .gh-card p {
      color: var(--muted);
      font-size: .85rem;
      line-height: 1.5;
    }
    .gh-loading, .gh-error {
      grid-column: 1 / -1;
      color: var(--muted);
      text-align: center;
      padding: 24px;
    }

    .client-strip {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 24px 48px;
      padding: 36px 24px;
      border-radius: 20px;
      border: 1px solid var(--line);
      background:
        linear-gradient(120deg, rgba(139, 92, 246, .06), rgba(34, 211, 238, .04)),
        var(--card);
    }
    .client-logo {
      font-family: "Space Grotesk", sans-serif;
      font-weight: 700;
      font-size: clamp(1rem, 2.5vw, 1.35rem);
      letter-spacing: -.02em;
      color: var(--muted);
      opacity: .85;
      transition: color .3s, opacity .3s;
    }
    .client-logo:hover {
      color: var(--text);
      opacity: 1;
    }

    .timeline-rail {
      display: grid;
      grid-template-columns: repeat(5, minmax(0, 1fr));
      gap: 12px;
      position: relative;
    }
    .timeline-rail::before {
      content: "";
      position: absolute;
      top: 28px;
      left: 5%;
      right: 5%;
      height: 2px;
      background: linear-gradient(90deg, var(--purple), var(--cyan), transparent);
      opacity: .4;
      z-index: 0;
    }
    .timeline-item {
      position: relative;
      z-index: 1;
      padding: 20px 16px;
      border-radius: 16px;
      border: 1px solid var(--line);
      background: var(--card);
      transition: border-color .3s, transform .35s var(--ease);
    }
    .timeline-item:hover {
      border-color: rgba(139, 92, 246, .35);
      transform: translateY(-3px);
    }
    .timeline-year {
      display: inline-block;
      font-family: "JetBrains Mono", monospace;
      font-size: .75rem;
      font-weight: 600;
      color: var(--purple);
      margin-bottom: 10px;
    }
    .timeline-item h3 {
      font-family: "Space Grotesk", sans-serif;
      font-size: .95rem;
      margin-bottom: 6px;
    }
    .timeline-item p {
      color: var(--muted);
      font-size: .8rem;
      line-height: 1.45;
    }

    .talks-list {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 14px;
    }
    .talks-item {
      display: grid;
      grid-template-columns: 72px 1fr;
      gap: 20px;
      padding: 20px 22px;
      border-radius: 18px;
      border: 1px solid var(--line);
      background: var(--card);
      transition: border-color .3s;
    }
    .talks-item:hover { border-color: rgba(34, 211, 238, .3); }
    .talks-date {
      font-family: "JetBrains Mono", monospace;
      font-size: .85rem;
      font-weight: 600;
      color: var(--cyan);
    }
    .talks-item h3 {
      font-family: "Space Grotesk", sans-serif;
      font-size: 1.05rem;
      margin-bottom: 6px;
    }
    .talks-item p {
      color: var(--muted);
      font-size: .88rem;
    }

    .hp-field {
      position: absolute;
      left: -9999px;
      width: 1px;
      height: 1px;
      opacity: 0;
      pointer-events: none;
    }

    .contact-form-wrap {
      margin-top: 40px;
      padding: 28px 32px;
      border-radius: 22px;
      border: 1px solid var(--line);
      background:
        radial-gradient(500px 200px at 100% 0%, rgba(139, 92, 246, .12), transparent 55%),
        var(--card);
    }
    .contact-form__title {
      font-family: "Space Grotesk", sans-serif;
      font-size: 1.25rem;
      margin-bottom: 20px;
    }
    .contact-form {
      display: flex;
      flex-direction: column;
      gap: 16px;
    }
    .contact-form label {
      display: flex;
      flex-direction: column;
      gap: 6px;
      font-size: .85rem;
      font-weight: 500;
      color: var(--muted);
    }
    .contact-form input,
    .contact-form textarea {
      border: 1px solid var(--line);
      border-radius: 12px;
      background: rgba(5, 8, 22, .5);
      color: var(--text);
      font: inherit;
      padding: 12px 14px;
      outline: none;
      transition: border-color .2s, box-shadow .2s;
    }
    .contact-form input:focus,
    .contact-form textarea:focus {
      border-color: rgba(34, 211, 238, .45);
      box-shadow: 0 0 0 3px rgba(34, 211, 238, .1);
    }
    .contact-form textarea { resize: vertical; min-height: 120px; }
    .form-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
    }
    .form-actions {
      display: flex;
      align-items: center;
      gap: 16px;
      flex-wrap: wrap;
    }
    .contact-status {
      font-size: .88rem;
      color: var(--muted);
      margin: 0;
    }
    .contact-status.is-success { color: #86efac; }
    .contact-status.is-error { color: #fca5a5; }
    .contact-quick {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 28px;
    }

    /* CV page */
    .cv-page .content { min-height: 100vh; }
    .cv-toolbar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 24px 20px;
      max-width: var(--max);
      margin: 0 auto;
    }
    .cv-sheet {
      max-width: 820px;
      margin: 0 auto 60px;
      padding: 48px 56px;
      border-radius: 20px;
      border: 1px solid var(--line);
      background: var(--card);
    }
    .cv-header {
      display: flex;
      justify-content: space-between;
      gap: 24px;
      margin-bottom: 32px;
      padding-bottom: 24px;
      border-bottom: 1px solid var(--line);
    }
    .cv-header h1 {
      font-family: "Space Grotesk", sans-serif;
      font-size: 2rem;
      letter-spacing: -.03em;
      margin-bottom: 6px;
    }
    .cv-role {
      color: var(--cyan);
      font-weight: 500;
    }
    .cv-contact {
      text-align: right;
      font-size: .88rem;
      color: var(--muted);
    }
    .cv-contact a { color: var(--cyan); }
    .cv-section {
      margin-bottom: 28px;
    }
    .cv-section h2 {
      font-family: "Space Grotesk", sans-serif;
      font-size: 1rem;
      letter-spacing: .06em;
      text-transform: uppercase;
      color: var(--purple);
      margin-bottom: 12px;
    }
    .cv-section p {
      color: var(--muted);
      line-height: 1.65;
    }
    .cv-skills {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 8px;
      color: var(--muted);
      font-size: .92rem;
    }
    .cv-skills strong { color: var(--text); }
    .cv-project {
      margin-bottom: 14px;
    }
    .cv-project h3 {
      font-family: "Space Grotesk", sans-serif;
      font-size: 1rem;
      margin-bottom: 4px;
    }
    .cv-project p {
      color: var(--muted);
      font-size: .9rem;
    }

    @media print {
      .no-print, .aurora-bg, .grid-bg, .nav, .site-footer { display: none !important; }
      body.cv-page { background: #fff; color: #111; }
      .cv-sheet {
        border: 0;
        box-shadow: none;
        padding: 0;
        max-width: 100%;
      }
      .cv-section p, .cv-skills, .cv-project p { color: #333; }
    }

    @media (max-width: 960px) {
      .case-grid, .case-grid--blog { grid-template-columns: 1fr; }
      .ai-map { grid-template-columns: 1fr 1fr; }
      .svc-grid { grid-template-columns: 1fr; }
      .lab-shell { grid-template-columns: 1fr; }
      .lab-chat {
        border-left: 0;
        padding-left: 0;
        border-top: 1px solid var(--line);
        padding-top: 18px;
      }
      .gh-grid { grid-template-columns: 1fr; }
      .timeline-rail {
        grid-template-columns: 1fr;
      }
      .timeline-rail::before { display: none; }
      .form-row { grid-template-columns: 1fr; }
      .nav-links {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        max-width: min(100%, 72vw);
      }
      .nav-links::-webkit-scrollbar { display: none; }
      .nav-links .lang-toggle { display: inline-flex; flex-shrink: 0; }
    }
    @media (max-width: 560px) {
      .ai-map { grid-template-columns: 1fr; }
      .cv-header { flex-direction: column; }
      .cv-contact { text-align: left; }
      .cv-sheet { padding: 28px 24px; }
    }
