  :root {
      --bg: #000000;
      --card: #161616;
      --card-2: #1d1d1d;
      --line: rgba(255, 255, 255, 0.07);
      --ink: #f5f5f2;
      --muted: #9a9a9e;
      --muted-2: #79797d;
      --radius: 26px;
  }

  * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
  }

  html {
      scroll-behavior: smooth;
  }

  body {
      background: var(--bg);
      color: var(--ink);
      font-family: 'Inter', sans-serif;
      -webkit-font-smoothing: antialiased;
  }

  a {
      color: inherit;
      text-decoration: none;
  }

  img {
      display: block;
      max-width: 100%;
  }

  ::selection {
      background: #f5f5f2;
      color: #000;
  }

  /* soft cursor glow, subtle */
  .glow-layer {
      position: fixed;
      inset: 0;
      pointer-events: none;
      z-index: 1;
      background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 20%), rgba(255, 255, 255, 0.05), transparent 60%);
      transition: background .25s ease-out;
  }

  .wrap {
      max-width: 900px;
      margin: 0 auto;
      padding: 56px 20px 90px;
      display: flex;
      flex-direction: column;
      gap: 22px;
      position: relative;
      z-index: 2;
  }

  .top-label {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 6px;
      opacity: 0;
      animation: fadeUp .7s .05s forwards;
  }

  .top-label .name {
      font-weight: 700;
      font-size: 1rem;
      letter-spacing: .01em;
  }

  .top-label .status {
      display: flex;
      align-items: center;
      gap: 8px;
      color: var(--muted);
      font-size: .82rem;
      font-family: 'JetBrains Mono', monospace;
  }

  .top-label .status .dot {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: #4ade80;
      animation: pulse 1.8s infinite;
  }

  @keyframes pulse {

      0%,
      100% {
          opacity: 1;
          box-shadow: 0 0 0 0 rgba(74, 222, 128, .5);
      }

      50% {
          opacity: .5;
          box-shadow: 0 0 0 5px rgba(74, 222, 128, 0);
      }
  }

  .card {
      background: var(--card);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      transition: transform .35s cubic-bezier(.2, .7, .2, 1), border-color .35s, box-shadow .35s;
  }

  .card:hover {
      transform: translateY(-4px);
      border-color: rgba(255, 255, 255, .16);
      box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .6);
  }

  /* reveal on scroll */
  .reveal {
      opacity: 0;
      transform: translateY(28px);
      transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1);
  }

  .reveal.in {
      opacity: 1;
      transform: translateY(0);
  }

  @keyframes fadeUp {
      from {
          opacity: 0;
          transform: translateY(16px);
      }

      to {
          opacity: 1;
          transform: translateY(0);
      }
  }

  /* ROW 1: photo + bio */
  .row-top {
      display: grid;
      grid-template-columns: 220px 1fr;
      gap: 22px;
  }

  .photo-card {
      padding: 0;
      overflow: hidden;
      position: relative;
      aspect-ratio: 1/1.09;
      background: #f2ede4;
  }

  .photo-card img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform .6s cubic-bezier(.2, .7, .2, 1);
      z-index: 1;
      object-position: top;
      filter: grayscale(1);
  }

  .photo-card:hover img {
      transform: scale(1.06) rotate(-1deg);
      filter: none;
      transition: transform .6s cubic-bezier(.2, .7, .2, 1), filter .6s cubic-bezier(.2, .7, .2, 1);
  }

  .bio-card {
      padding: 34px 36px;
      display: flex;
      align-items: center;
  }

  .bio-card p {
      font-style: italic;
      font-weight: 500;
      font-size: clamp(1.05rem, 1.6vw, 1.35rem);
      line-height: 1.55;
      color: #ececec;
  }

  .bio-card p b {
      font-style: normal;
      color: #fff;
  }

  /* Interests */
  .interests-card {
      display: flex;
      align-items: center;
      gap: 18px;
      padding: 22px 30px;
      flex-wrap: wrap;
  }

  .interests-card .h {
      font-weight: 700;
      font-size: 1.05rem;
      white-space: nowrap;
  }

  .divider-v {
      width: 1px;
      height: 26px;
      background: var(--line);
  }

  .pill-row {
      display: flex;
      gap: 12px;
      flex-wrap: wrap;
  }

  .pill {
      display: flex;
      align-items: center;
      gap: 9px;
      background: var(--card-2);
      border: 1px solid var(--line);
      padding: 10px 18px;
      border-radius: 100px;
      font-size: .88rem;
      font-weight: 500;
      transition: transform .3s, background .3s, border-color .3s;
  }

  .pill:hover {
      transform: translateY(-4px);
      border-color: rgba(255, 255, 255, .22);
      background: #232323;
  }

  .pill .ic {
      font-size: 1.05rem;
      transition: transform .35s;
  }

  .pill:hover .ic {
      transform: scale(1.2) rotate(-8deg);
  }

  /* Experience row */
  .row-2col {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 22px;
  }

  .exp-card {
      padding: 30px 32px;
  }

  .exp-top {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      margin-bottom: 2px;
  }

  .exp-top h3 {
      font-size: 1.4rem;
      font-weight: 700;
  }

  .exp-top .badge {
      font-family: 'JetBrains Mono', monospace;
      font-size: .74rem;
      background: var(--card-2);
      border: 1px solid var(--line);
      padding: 6px 14px;
      border-radius: 100px;
      white-space: nowrap;
      color: var(--muted);
  }

  .exp-card .role {
      color: var(--muted-2);
      font-size: .92rem;
      margin-bottom: 16px;
  }

  .exp-card hr {
      border: none;
      border-top: 1px solid var(--line);
      margin-bottom: 16px;
  }

  .exp-card ul {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 11px;
  }

  .exp-card ul li {
      position: relative;
      padding-left: 16px;
      font-size: .9rem;
      color: #d3d3d3;
      line-height: 1.5;
  }

  .exp-card ul li::before {
      content: '•';
      position: absolute;
      left: 0;
      color: var(--muted-2);
  }

  /* Design/Editing/Languages + Education */
  .row-skills {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 22px;
      align-items: start;
  }

  .skills-col {
      display: flex;
      flex-direction: column;
      gap: 22px;
  }

  .skill-mini {
      padding: 22px 26px;
      display: flex;
      align-items: center;
      gap: 18px;
      flex-wrap: wrap;
  }

  .skill-mini .h {
      font-weight: 700;
      font-size: .98rem;
      white-space: nowrap;
  }

  .chip-row {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
  }

  .chip {
      width: 40px;
      height: 40px;
      border-radius: 11px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: .78rem;
      font-weight: 800;
      color: #fff;
      transition: transform .3s;
      position: relative;
  }

  .chip img {
      max-width: 70%;
      max-height: 70%;
      object-fit: contain;
      pointer-events: none;
  }

  .chip[data-tooltip]::after {
      content: attr(data-tooltip);
      position: absolute;
      left: 50%;
      bottom: calc(100% + 10px);
      transform: translate(-50%, 6px) scale(.92);
      background: #0d0d0d;
      color: #f5f5f2;
      border: 1px solid var(--line);
      font-family: 'JetBrains Mono', monospace;
      font-weight: 500;
      font-size: .7rem;
      letter-spacing: .02em;
      white-space: nowrap;
      padding: 6px 11px;
      border-radius: 8px;
      box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .7);
      opacity: 0;
      pointer-events: none;
      transition: opacity .2s ease, transform .2s cubic-bezier(.2, .7, .2, 1);
      z-index: 20;
  }

  .chip[data-tooltip]::before {
      content: '';
      position: absolute;
      left: 50%;
      bottom: calc(100% + 5px);
      transform: translateX(-50%);
      border: 5px solid transparent;
      border-top-color: #0d0d0d;
      opacity: 0;
      transition: opacity .2s ease;
      z-index: 20;
  }

  .chip[data-tooltip]:hover::after {
      opacity: 1;
      transform: translate(-50%, 0) scale(1);
  }

  .chip[data-tooltip]:hover::before {
      opacity: 1;
  }

  .chip:hover {
      transform: translateY(-5px) scale(1.05);
  }

  .flag-chip {
      display: flex;
      align-items: center;
      gap: 8px;
      background: var(--card-2);
      border: 1px solid var(--line);
      padding: 8px 14px;
      border-radius: 100px;
      font-size: .85rem;
      transition: transform .3s;
  }

  .flag-chip:hover {
      transform: translateY(-4px);
  }

  .edu-card {
      padding: 30px 32px;
      display: flex;
      flex-direction: column;
  }

  .edu-row {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      padding: 18px 0;
      border-bottom: 1px solid var(--line);
      gap: 16px;
  }

  .edu-row:first-child {
      padding-top: 0;
  }

  .edu-row:last-child {
      border-bottom: none;
      padding-bottom: 0;
  }

  .edu-row h4 {
      font-size: 1.15rem;
      font-weight: 700;
  }

  .edu-row p {
      color: var(--muted-2);
      font-size: .85rem;
      margin-top: 5px;
      line-height: 1.5;
  }

  .edu-row .badge {
      font-family: 'JetBrains Mono', monospace;
      font-size: .74rem;
      background: var(--card-2);
      border: 1px solid var(--line);
      padding: 6px 14px;
      border-radius: 100px;
      white-space: nowrap;
      color: var(--muted);
  }

  /* Portfolio */
  .portfolio-card {
      padding: 26px 30px;
      display: flex;
      align-items: center;
      gap: 18px;
      flex-wrap: wrap;
  }

  .portfolio-card .h {
      font-weight: 700;
      font-size: 1.05rem;
      white-space: nowrap;
  }

  .port-pill {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 11px 20px;
      border-radius: 100px;
      font-size: 16px;
      font-weight: 600;
      transition: transform .3s, filter .3s;
      position: relative;
      overflow: hidden;
  }

  .port-pill:hover {
      transform: translateY(-5px);
  }

  .port-pill .ic {
      font-size: 1rem;
  }

  /* Details */
  .details-card {
      padding: 26px 30px;
      display: flex;
      align-items: center;
      gap: 18px;
      flex-wrap: wrap;
  }

  .details-card .h {
      font-weight: 700;
      font-size: 1.05rem;
      white-space: nowrap;
  }

  .detail-pill {
      display: flex;
      align-items: center;
      gap: 9px;
      background: var(--card-2);
      border: 1px solid var(--line);
      padding: 10px 18px;
      border-radius: 100px;
      font-size: .86rem;
      transition: transform .3s;
  }

  .detail-pill:hover {
      transform: translateY(-4px);
  }

  footer.page-foot {
      text-align: center;
      color: var(--muted-2);
      font-size: .8rem;
      padding: 10px 20px 40px;
      font-family: 'JetBrains Mono', monospace;
  }

  footer.page-foot a:hover {
      color: var(--ink);
  }

  @media (max-width:720px) {
      .row-top {
          grid-template-columns: 1fr;
      }

      .photo-card {
          aspect-ratio: 16/10;
          max-width: 220px;
      }

      .row-2col,
      .row-skills {
          grid-template-columns: 1fr;
      }

      .bio-card {
          padding: 26px;
      }

      .interests-card,
      .portfolio-card,
      .details-card {
          padding: 20px;
      }
  }

  @media (prefers-reduced-motion: reduce) {
      * {
          animation-duration: .01ms !important;
          transition-duration: .01ms !important;
      }
  }

  /* ===== Tablet ===== */
  @media (max-width: 1024px) {
      .wrap {
          max-width: 720px;
          padding: 44px 18px 70px;
      }

      .row-top {
          grid-template-columns: 180px 1fr;
      }
  }

  /* ===== Small tablet / large phone ===== */
  @media (max-width: 720px) {
      .row-top {
          grid-template-columns: 1fr;
      }

      .photo-card {
          aspect-ratio: 16/10;
          max-width: 260px;
          margin: 0 auto;
      }

      .row-2col,
      .row-skills {
          grid-template-columns: 1fr;
      }

      .bio-card {
          padding: 26px;
          text-align: center;
          justify-content: center;
      }

      .interests-card,
      .portfolio-card,
      .details-card {
          padding: 20px;
          justify-content: center;
          text-align: center;
      }

      .skill-mini {
          justify-content: center;
          text-align: center;
      }

      .exp-top {
          flex-wrap: wrap;
          gap: 8px;
      }

      .edu-row {
          flex-direction: column;
          gap: 6px;
      }

      .edu-row .badge {
          align-self: flex-start;
      }

      .top-label {
          flex-direction: column;
          align-items: flex-start;
          gap: 6px;
      }
  }

  /* ===== Small phones ===== */
  @media (max-width: 480px) {
      .wrap {
          padding: 32px 14px 56px;
          gap: 16px;
      }

      .card {
          border-radius: 20px;
      }

      .bio-card p {
          font-size: 1rem;
      }

      .chip {
          width: 34px;
          height: 34px;
          border-radius: 9px;
          font-size: .68rem;
      }

      .chip-row {
          gap: 8px;
      }

      .pill,
      .flag-chip,
      .detail-pill {
          padding: 8px 14px;
          font-size: .8rem;
      }

      .port-pill {
          padding: 9px 16px;
          font-size: 14px;
      }

      .divider-v {
          display: none;
          /* avoid awkward centered divider when items wrap */
      }

      .interests-card .h,
      .portfolio-card .h,
      .details-card .h,
      .skill-mini .h {
          width: 100%;
      }

      /* keep tooltips readable/on-screen on narrow viewports */
      .chip[data-tooltip]::after {
          font-size: .65rem;
          padding: 5px 9px;
          max-width: 140px;
          white-space: normal;
          text-align: center;
      }
  }

  /* ===== Touch devices: hover tooltips don't work on tap, so fall back to tap-toggle ===== */
  @media (hover: none) {

      .chip[data-tooltip]:active::after,
      .chip[data-tooltip]:active::before {
          opacity: 1;
          transform: translate(-50%, 0) scale(1);
      }
  }