:root {
      --bg: #0b0f14;
      --bg-elevated: #10161e;
      --surface: rgba(17, 23, 32, 0.78);
      --surface-solid: #111720;
      --surface-hover: #151d28;
      --border: #242e3b;
      --border-strong: #354252;
      --text: #f2f4f7;
      --text-muted: #a4adba;
      --text-dim: #788493;
      --accent: #f4ad3f;
      --accent-soft: rgba(244, 173, 63, 0.12);
      --teal: #63d9ca;
      --teal-soft: rgba(99, 217, 202, 0.1);
      --font-display: "Space Grotesk", sans-serif;
      --font-body: "Inter", sans-serif;
      --font-mono: "JetBrains Mono", monospace;
      --content: 1080px;
      --copy: 690px;
      --gutter: clamp(20px, 5vw, 64px);
      --radius: 10px;
    }

    *, *::before, *::after { box-sizing: border-box; }
    * { margin: 0; }
    html { scroll-behavior: smooth; scroll-padding-top: 92px; }
    body {
      min-width: 320px;
      background:
        radial-gradient(circle at 72% 9%, rgba(99, 217, 202, 0.055), transparent 30rem),
        radial-gradient(circle at 15% 28%, rgba(244, 173, 63, 0.045), transparent 27rem),
        var(--bg);
      color: var(--text);
      font-family: var(--font-body);
      line-height: 1.65;
      -webkit-font-smoothing: antialiased;
      overflow-x: hidden;
    }

    #ambient-canvas {
      position: fixed;
      inset: 0;
      width: 100%;
      height: 100%;
      z-index: 0;
      pointer-events: none;
      opacity: 0.96;
    }

    body::before {
      content: "";
      position: fixed;
      inset: 0;
      z-index: 0;
      pointer-events: none;
      background-image:
        linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
      background-size: 72px 72px;
      mask-image: linear-gradient(to bottom, #000, transparent 58%);
    }

    a { color: inherit; text-decoration: none; }
    a:focus-visible {
      outline: 2px solid var(--accent);
      outline-offset: 4px;
      border-radius: 3px;
    }
    ::selection { color: var(--text); background: rgba(99, 217, 202, 0.28); }

    .skip-link {
      position: fixed;
      top: 12px;
      left: 12px;
      z-index: 100;
      padding: 10px 14px;
      background: var(--text);
      color: var(--bg);
      border-radius: 5px;
      transform: translateY(-160%);
      transition: transform 0.2s ease;
    }
    .skip-link:focus { transform: translateY(0); }

    .shell {
      position: relative;
      z-index: 1;
      width: min(calc(100% - (var(--gutter) * 2)), var(--content));
      margin-inline: auto;
    }

    section { position: relative; z-index: 1; }

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

    .section-heading {
      display: grid;
      grid-template-columns: minmax(150px, 0.28fr) 1fr;
      gap: clamp(28px, 5vw, 72px);
      align-items: start;
      margin-bottom: 50px;
    }
    .section-heading h2 {
      max-width: 700px;
      font-family: var(--font-display);
      font-size: clamp(29px, 4vw, 43px);
      font-weight: 600;
      line-height: 1.15;
      letter-spacing: -0.025em;
    }

    /* Navigation */
    .site-nav {
      position: fixed;
      inset: 0 0 auto;
      z-index: 50;
      border-bottom: 1px solid transparent;
      background: linear-gradient(to bottom, rgba(11, 15, 20, 0.94), rgba(11, 15, 20, 0.64));
      backdrop-filter: blur(14px);
      transition: border-color 0.25s ease, box-shadow 0.25s ease;
    }
    .site-nav.scrolled {
      border-color: rgba(53, 66, 82, 0.65);
      box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
    }
    .nav-inner {
      width: min(calc(100% - (var(--gutter) * 2)), var(--content));
      min-height: 72px;
      margin-inline: auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 30px;
    }
    .nav-mark {
      display: flex;
      align-items: center;
      gap: 10px;
      font-family: var(--font-mono);
      font-size: 12px;
      letter-spacing: 0.08em;
      color: var(--text-muted);
    }
    .status-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--accent);
      box-shadow: 0 0 0 4px var(--accent-soft);
      animation: status-pulse 2.8s ease-in-out infinite;
    }
    .nav-links { display: flex; align-items: center; gap: 25px; }
    .nav-links a {
      color: var(--text-muted);
      font-size: 12px;
      transition: color 0.2s ease;
    }
    .nav-links a:hover { color: var(--text); }
    .nav-links .nav-cta {
      color: var(--text);
      border: 1px solid var(--border-strong);
      padding: 7px 12px;
      border-radius: 5px;
    }
    .nav-links .nav-cta:hover { border-color: var(--accent); color: var(--accent); }

    @keyframes status-pulse {
      0%, 100% { box-shadow: 0 0 0 4px var(--accent-soft); }
      50% { box-shadow: 0 0 0 8px transparent; }
    }
    /* Hero */
    .hero {
      min-height: max(760px, 100svh);
      display: flex;
      align-items: flex-start;
      padding: 125px 0 80px;
    }
    .hero-copy { max-width: 960px; }
    .hero > .shell,
    .hero-copy,
    .hero .eyebrow,
    .hero h1,
    .hero-lede,
    .hero-actions,
    .hero .strengths {
      animation: none;
      transform: none;
    }
    .hero .eyebrow { margin-bottom: 26px; }
    .hero h1 {
      max-width: 930px;
      font-family: var(--font-display);
      font-size: clamp(43px, 7.1vw, 78px);
      font-weight: 700;
      line-height: 1.02;
      letter-spacing: -0.045em;
      text-wrap: balance;
    }
    .hero h1 span { color: var(--accent); }
    .hero-lede {
      max-width: 690px;
      margin-top: 28px;
      color: var(--text-muted);
      font-size: clamp(16px, 1.7vw, 19px);
      line-height: 1.75;
    }
    .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px;}

    .button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 9px;
      min-height: 44px;
      padding: 0 17px;
      border: 1px solid var(--border-strong);
      border-radius: 6px;
      color: var(--text-muted);
      font-family: var(--font-mono);
      font-size: 12px;
      font-weight: 900;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
    }
    .button:hover { transform: translateY(-2px); border-color: var(--text-muted); color: var(--text); }
    .button.primary { background: var(--accent); border-color: var(--accent); color: #171108; }
    .button.primary:hover { background: #ffc05d; border-color: #ffc05d; }

    .strengths {
      max-width: 930px;
      margin-top: 58px;
    }
    .strengths-label {
      margin-bottom: 13px;
      color: var(--text-dim);
      font-family: var(--font-mono);
      font-size: 12px;
      font-weight: 800;
      letter-spacing: 0.11em;
      text-transform: uppercase;
    }
    .strength-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
    .strength-card {
      position: relative;
      min-width: 0;
      min-height: 188px;
      overflow: hidden;
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 18px;
      background: rgba(15, 21, 29, 0.78);
      backdrop-filter: blur(10px);
      transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
    }
    .strength-card::after {
      content: "";
      position: absolute;
      right: -25px;
      bottom: -35px;
      width: 90px;
      height: 90px;
      border-radius: 50%;
      background: var(--teal-soft);
      filter: blur(4px);
    }
    .strength-card:nth-child(even)::after { background: var(--accent-soft); }
    .strength-card:hover { transform: translateY(-3px); border-color: var(--border-strong); background: rgba(20, 28, 38, 0.9); }
    .strength-icon {
      display: grid;
      place-items: center;
      width: 36px;
      height: 36px;
      border: 1px solid rgba(99, 217, 202, 0.25);
      border-radius: 8px;
      background: var(--teal-soft);
      color: var(--teal);
    }
    .strength-card:nth-child(even) .strength-icon { border-color: rgba(244, 173, 63, 0.25); background: var(--accent-soft); color: var(--accent); }
    .strength-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
    .strength-card h3 {
      position: relative;
      z-index: 1;
      margin-top: 15px;
      font-family: var(--font-display);
      font-size: 15px;
      font-weight: 600;
      line-height: 1.25;
    }
    .strength-card p { position: relative; z-index: 1; margin-top: 8px; color: var(--text-dim); font-size: 12.5px; line-height: 1.6; }

    /* About */
    .about { padding: 132px 0 110px; }
    .about-layout {
      display: grid;
      grid-template-columns: minmax(150px, 0.28fr) 1fr;
      gap: clamp(28px, 5vw, 72px);
    }
    .about-copy { max-width: var(--copy); }
    .about-copy p { color: var(--text-muted); font-size: clamp(16px, 1.7vw, 18px); }
    .about-copy p + p { margin-top: 18px; }
    .about-copy strong { color: var(--text); font-weight: 500; }
    /* Experience */
    .experience { padding: 108px 0 85px; }
    .timeline { position: relative; max-width: 980px; }
    .timeline-track {
      position: absolute;
      top: 8px;
      bottom: 8px;
      left: 6px;
      width: 2px;
      overflow: hidden;
      background: var(--border);
    }
    .timeline-fill {
      width: 100%;
      height: 0;
      background: linear-gradient(to bottom, var(--accent), var(--teal));
      box-shadow: 0 0 14px var(--accent-soft);
      transition: height 0.15s linear;
    }
    .role-card {
      position: relative;
      padding: 0 0 78px 48px;
    }
    .role-card:last-child { padding-bottom: 0; }
    .role-node {
      position: absolute;
      top: 3px;
      left: 0;
      width: 14px;
      height: 14px;
      border: 2px solid var(--border-strong);
      border-radius: 50%;
      background: var(--bg);
      transition: background 0.45s ease, border-color 0.45s ease, box-shadow 0.45s ease;
    }
    .role-card.in-view .role-node {
      border-color: var(--accent);
      background: var(--accent);
      box-shadow: 0 0 0 5px var(--accent-soft);
    }
    .role-index {
      color: var(--text-dim);
      font-family: var(--font-mono);
      font-size: 11px;
      letter-spacing: 0.12em;
      text-transform: uppercase;
    }
    .role-header {
      display: flex;
      align-items: start;
      justify-content: space-between;
      gap: 18px 30px;
      margin-top: 9px;
    }
    .role-title { font-family: var(--font-display); font-size: clamp(21px, 2.5vw, 26px); font-weight: 600; line-height: 1.25; }
    .role-company { margin-top: 2px; color: var(--accent); font-weight: 500; }
    .role-date { flex-shrink: 0; color: var(--text-dim); font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.04em; }
    .role-location { margin-top: 5px; color: var(--text-dim); font-size: 12.5px; }
    .role-body { max-width: 830px; margin-top: 25px; }
    .project + .project { margin-top: 29px; padding-top: 25px; border-top: 1px solid var(--border); }
    .project-name {
      display: flex;
      align-items: center;
      gap: 9px;
      color: var(--teal);
      font-family: var(--font-mono);
      font-size: 12.5px;
      letter-spacing: 0.09em;
      text-transform: uppercase;
    }
    .project-name::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
    .project-overview { max-width: 790px; margin-top: 13px; color: var(--text-muted); font-size: 14.5px; line-height: 1.72; }
    .achievement-list { margin-top: 14px; padding: 0; display: grid; gap: 12px; }
    .achievement-list li {
      position: relative;
      list-style: none;
      padding-left: 22px;
      color: var(--text-muted);
      font-size: 14.5px;
      line-height: 1.72;
    }
    .achievement-list li::before {
      content: "\203A";
      position: absolute;
      top: -1px;
      left: 0;
      color: var(--accent);
      font-family: var(--font-mono);
    }
    .achievement-list strong { color: var(--text); font-weight: 600; }
    .achievement-list .metric { color: var(--teal); font-weight: 500; }
    .project-status {
      margin-top: 18px;
      padding: 12px 14px;
      border-left: 2px solid var(--teal);
      background: linear-gradient(90deg, var(--teal-soft), transparent 75%);
      color: var(--text-muted);
      font-size: 13.5px;
    }
    .project-status span { margin-right: 8px; color: var(--teal); font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; }
    .tech-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 17px; }
    .tech-list span {
      padding: 4px 9px;
      border: 1px solid rgba(99, 217, 202, 0.2);
      border-radius: 4px;
      background: var(--teal-soft);
      color: var(--teal);
      font-family: var(--font-mono);
      font-size: 11.5px;
    }

    /* Education and recognition */
    .credentials { padding: 100px 0 90px; }
    .credentials-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      align-items: stretch;
      gap: 22px;
      perspective: 1200px;
      perspective-origin: 50% 20%;
    }
    .credential-panel {
      position: relative;
      overflow: hidden;
      border: 1px solid var(--border);
      border-radius: var(--radius);
      background: var(--surface);
      backdrop-filter: blur(10px);
      padding: clamp(22px, 3vw, 30px);
      height: 100%;
    }
    .credential-panel.reveal {
      opacity: 0;
      transform: translateY(-18px) rotateX(-20deg);
      transform-origin: top center;
      backface-visibility: hidden;
      will-change: transform, opacity;
      transition:
        opacity 0.55s ease,
        transform 0.78s cubic-bezier(0.2, 0.72, 0.2, 1);
    }
    .credential-panel.reveal.in-view {
      opacity: 1;
      transform: translateY(0) rotateX(0deg);
    }
    .recognition-panel.reveal { transition-delay: 0.11s; }
    .credential-panel::before {
      content: "";
      position: absolute;
      inset: 0 auto 0 0;
      width: 3px;
    }
    .education-panel {
      display: flex;
      flex-direction: column;
      border-color: rgba(244, 173, 63, 0.28);
      background: linear-gradient(145deg, rgba(244, 173, 63, 0.075), transparent 48%), var(--surface);
    }
    .education-panel::before { background: var(--accent); }
    .education-panel .panel-label { color: var(--accent); }
    .recognition-panel {
      border-color: rgba(99, 217, 202, 0.28);
      background: linear-gradient(145deg, rgba(99, 217, 202, 0.075), transparent 48%), var(--surface);
    }
    .recognition-panel::before { background: var(--teal); }
    .recognition-panel .panel-label, .recognition-panel .milestone-year { color: var(--teal); }
    .recognition-panel .milestone::before { border-color: var(--teal); box-shadow: 0 0 0 4px var(--teal-soft); }
    .panel-label { color: var(--text-dim); font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; }
    .degree { display: flex; flex: 1; flex-direction: column; margin-top: 25px; }
    .degree h3 { font-family: var(--font-display); font-size: 23px; line-height: 1.28; }
    .degree-school { margin-top: 8px; color: var(--accent); font-size: 14px; }
    .degree-date { margin-top: 18px; color: var(--text-dim); font-family: var(--font-mono); font-size: 12px; }
    .degree-note { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 13.5px; line-height: 1.7; }
    .education-highlights {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 8px;
      margin-top: auto;
      padding-top: 30px;
    }
    .education-highlight {
      min-width: 0;
      border: 1px solid rgba(244, 173, 63, 0.28);
      border-radius: 7px;
      padding: 13px 10px;
      background: rgba(244, 173, 63, 0.07);
    }
    .education-highlight strong {
      display: block;
      color: var(--accent);
      font-family: var(--font-mono);
      font-size: 19px;
      font-weight: 500;
      line-height: 1.2;
    }
    .education-highlight span { display: block; margin-top: 5px; color: var(--text-muted); font-size: 12px; font-weight: 500; line-height: 1.45; }
    .milestones { position: relative; margin-top: 24px; }
    .milestones::before { content: ""; position: absolute; top: 8px; bottom: 8px; left: 42px; width: 1px; background: var(--border); }
    .milestone { position: relative; display: grid; grid-template-columns: 70px 1fr; gap: 18px; padding-bottom: 24px; }
    .milestone:last-child { padding-bottom: 0; }
    .milestone::before {
      content: "";
      position: absolute;
      top: 6px;
      left: 39px;
      width: 7px;
      height: 7px;
      border: 1px solid var(--accent);
      border-radius: 50%;
      background: var(--surface-solid);
      box-shadow: 0 0 0 4px var(--accent-soft);
    }
    .milestone-year { color: var(--accent); font-family: var(--font-mono); font-size: 10px; padding-top: 1px; }
    .milestone h3 { font-size: 14px; font-weight: 500; line-height: 1.45; }
    .milestone p { margin-top: 4px; color: var(--text-muted); font-size: 12.5px; line-height: 1.6; }

    /* Skills */
    .skills { padding: 96px 0 100px; }
    .skill-panel { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
    .skill-row { display: grid; grid-template-columns: 155px 1fr; border-top: 1px solid var(--border); }
    .skill-row:first-child { border-top: 0; }
    .skill-category {
      display: flex;
      align-items: center;
      padding: 17px 20px;
      border-right: 1px solid var(--border);
      background: rgba(8, 12, 17, 0.35);
      color: var(--accent);
      font-family: var(--font-mono);
      font-size: 11px;
      letter-spacing: 0.08em;
    }
    .skill-items { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; padding: 14px 20px; }
    .skill-items span {
      padding: 5px 10px;
      border: 1px solid rgba(99, 217, 202, 0.2);
      border-radius: 999px;
      background: rgba(99, 217, 202, 0.035);
      color: var(--text-muted);
      font-size: 12.5px;
      transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
    }
    .skill-items span:hover {
      transform: translateY(-1px);
      border-color: rgba(99, 217, 202, 0.52);
      background: rgba(99, 217, 202, 0.08);
      color: var(--text);
    }
    .skills-motion-ready .skill-items span {
      opacity: 0;
      transform: translateX(-14px);
    }
    .skills-motion-ready .skill-row.skills-in-view .skill-items span {
      opacity: 1;
      transform: translateX(0);
      animation: skill-enter 0.52s cubic-bezier(0.2, 0.72, 0.2, 1) backwards;
      animation-delay: calc(var(--skill-index) * 42ms);
    }
    .skills-motion-ready .skill-row.skills-in-view .skill-items span:hover {
      transform: translateY(-1px);
    }
    @keyframes skill-enter {
      from { opacity: 0; transform: translateX(-14px); }
      to { opacity: 1; transform: translateX(0); }
    }

    /* Contact */
    .contact { padding: 110px 0 72px; border-top: 1px solid var(--border); }
    .contact-inner { display: flex; align-items: end; justify-content: space-between; gap: 45px; }
    .contact h2 { max-width: 610px; margin-top: 16px; font-family: var(--font-display); font-size: clamp(32px, 5vw, 52px); font-weight: 600; line-height: 1.12; letter-spacing: -0.03em; }
    .contact p { max-width: 560px; margin-top: 18px; color: var(--text-muted); font-size: 15px; }
    .contact-links { min-width: 190px; display: grid; gap: 12px; }
    .contact-links a {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
      padding-bottom: 8px;
      border-bottom: 1px solid var(--border);
      color: var(--text-muted);
      font-family: var(--font-mono);
      font-size: 12.5px;
      letter-spacing: 0.06em;
      transition: color 0.2s ease, border-color 0.2s ease;
    }
    .contact-links a span { transition: transform 0.2s ease; }
    .contact-links a:hover { color: var(--accent); border-color: var(--accent); }
    .contact-links a:hover span { transform: translate(3px, -2px); }

    footer {
      position: relative;
      z-index: 1;
      width: min(calc(100% - (var(--gutter) * 2)), var(--content));
      margin-inline: auto;
      padding: 26px 0 36px;
      border-top: 1px solid var(--border);
      display: flex;
      justify-content: space-between;
      gap: 14px;
      color: var(--text-dim);
      font-family: var(--font-mono);
      font-size: 10.5px;
      letter-spacing: 0.05em;
      text-transform: uppercase;
    }

    /* Motion */
    .reveal, .role-card {
      opacity: 0;
      transform: translateY(18px);
      transition: opacity 0.65s ease, transform 0.65s ease;
    }
    .reveal.in-view, .role-card.in-view { opacity: 1; transform: translateY(0); }

    @media (max-width: 820px) {
      .nav-links a:not(.nav-cta) { display: none; }
      .section-heading, .about-layout { grid-template-columns: 1fr; gap: 20px; }
      .strength-grid { grid-template-columns: repeat(2, 1fr); }
      .credentials-grid { grid-template-columns: 1fr; }
      .contact-inner { align-items: start; flex-direction: column; }
      .contact-links { width: 100%; max-width: 320px; }
    }

    @media (max-width: 560px) {
      :root { --gutter: 20px; }
      .nav-inner { min-height: 64px; }
      .nav-mark { font-size: 10px; }
      .hero { min-height: 760px; padding-top: 108px; }
      .hero h1 { font-size: clamp(40px, 12vw, 56px); }
      .hero-actions .button { flex: 1 1 auto; }
      .strength-grid { grid-template-columns: 1fr; }
      .strength-card { min-height: 0; }
      .about, .experience, .credentials, .skills { padding-top: 82px; padding-bottom: 72px; }
      .role-card { padding-left: 34px; padding-bottom: 62px; }
      .role-header { flex-direction: column; gap: 10px; }
      .role-date { white-space: normal; }
      .achievement-list li { font-size: 14px; }
      .skill-row { grid-template-columns: 1fr; }
      .skill-category { border-right: 0; border-bottom: 1px solid var(--border); padding-block: 11px; }
      .education-highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .education-highlight:last-child { grid-column: 1 / -1; }
      .contact { padding-top: 82px; }
      footer { flex-direction: column; }
    }

    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      *, *::before, *::after { animation: none !important; transition: none !important; }
      #ambient-canvas { display: none; }
      .reveal, .role-card { opacity: 1 !important; transform: none !important; }
    }
