    :root {
      /* Refined palette — deep ink + lower-saturation neon */
      --bg: #06070d;
      --bg2: #0c0e16;
      --bg3: #131622;
      --line: rgba(140, 200, 230, 0.08);
      --line2: rgba(140, 200, 230, 0.16);
      --tx: #cfd6e4;
      --tx2: #8893a8;
      --dim: #4a5468;
      --cy: oklch(0.78 0.13 200);
      /* refined cyan */
      --mg: oklch(0.72 0.16 350);
      /* refined magenta */
      --gn: oklch(0.78 0.16 155);
      /* status green */
      --vt: oklch(0.7 0.14 290);
      /* violet accent */
      --display: 'Space Grotesk', system-ui, sans-serif;
      --mono: 'JetBrains Mono', ui-monospace, monospace;
      --sw: 280px;
      --maxw: 1180px;
    }

    Awarded a fully funded international research internship at E´cole Polytechnique de Montr´eal (June–August 2024);

    grant valued at CAD $9000. *,
    *::before,
    *::after {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    html,
    body {
      height: 100%;
      overflow: hidden;
    }

    body {
      background: var(--bg);
      color: var(--tx);
      font-family: var(--display);
      font-size: 17px;
      line-height: 1.6;
      -webkit-font-smoothing: antialiased;
      font-feature-settings: "ss01", "cv11";
    }

    /* ── Subtle blueprint grid backdrop on EVERY page ── */
    body::before {
      content: '';
      position: fixed;
      inset: 0;
      z-index: 0;
      pointer-events: none;
      background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
      background-size: 64px 64px;
      mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
      -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
      opacity: .5;
    }

    /* ── Soft scanline noise ── */
    body::after {
      content: '';
      position: fixed;
      inset: 0;
      pointer-events: none;
      z-index: 9000;
      background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 0, 0, 0.025) 2px, rgba(0, 0, 0, 0.025) 3px);
    }

    ::selection {
      background: var(--cy);
      color: var(--bg);
    }

    /* ════════════ SIDEBAR ════════════ */
    .sidebar {
      position: fixed;
      left: 0;
      top: 0;
      bottom: 0;
      width: var(--sw);
      z-index: 500;
      background: linear-gradient(180deg, rgba(12, 14, 22, .92), rgba(6, 7, 13, .98));
      backdrop-filter: blur(14px);
      border-right: 1px solid var(--line);
      display: flex;
      flex-direction: column;
      transition: transform .4s cubic-bezier(.4, 0, .2, 1);
    }

    .sb-hd {
      padding: 2rem 1.75rem 1.5rem;
      border-bottom: 1px solid var(--line);
    }

    .sb-mark {
      display: flex;
      align-items: center;
      gap: .6rem;
      cursor: pointer;
      font-family: var(--mono);
      font-size: .7rem;
      color: var(--tx2);
      letter-spacing: 2px;
      margin-bottom: 1rem;
    }

    .sb-mark::before {
      content: '';
      width: 8px;
      height: 8px;
      background: var(--gn);
      border-radius: 50%;
      box-shadow: 0 0 10px var(--gn);
      animation: blink 2s ease-in-out infinite;
    }

    .sb-id {
      display: flex;
      align-items: center;
      gap: .85rem;
      cursor: pointer;
    }

    .sb-avatar {
      flex-shrink: 0;
      width: 44px;
      height: 44px;
      border-radius: 50%;
      border: 1.5px solid var(--cy);
      object-fit: cover;
      box-shadow: 0 0 10px rgba(140, 200, 230, .3);
      transition: box-shadow .3s;
    }

    .sb-avatar:hover {
      box-shadow: 0 0 18px rgba(140, 200, 230, .55);
    }

    .sb-name {
      font-family: var(--display);
      font-weight: 700;
      font-size: 1.45rem;
      color: #fff;
      letter-spacing: -.02em;
      line-height: 1;
      display: block;
    }

    .sb-name span {
      display: block;
      color: var(--cy);
    }

    .sb-role {
      margin-top: .6rem;
      font-family: var(--mono);
      font-size: .7rem;
      color: var(--tx2);
      letter-spacing: 1px;
    }

    @keyframes blink {

      0%,
      100% {
        opacity: 1;
      }

      50% {
        opacity: .25;
      }
    }

    .sb-nav {
      flex: 1;
      padding: 1rem 0;
      overflow-y: auto;
    }

    .sb-nav::-webkit-scrollbar {
      width: 0;
    }

    .nav-section {
      font-family: var(--mono);
      font-size: .62rem;
      color: var(--dim);
      letter-spacing: 2.5px;
      padding: 1rem 1.75rem .5rem;
      text-transform: uppercase;
    }

    .nav-item {
      display: flex;
      align-items: center;
      gap: .85rem;
      padding: .7rem 1.75rem;
      color: var(--tx2);
      font-size: .95rem;
      font-weight: 500;
      letter-spacing: .01em;
      border-left: 2px solid transparent;
      transition: all .2s ease;
      cursor: pointer;
      user-select: none;
      position: relative;
    }

    .nav-item .ni-num {
      font-family: var(--mono);
      font-size: .65rem;
      color: var(--dim);
      margin-right: .2rem;
      width: 18px;
    }

    .nav-item .ni-icon {
      width: 14px;
      font-size: .78rem;
      color: var(--dim);
      transition: color .2s;
    }

    .nav-item:hover {
      color: #fff;
      background: rgba(140, 200, 230, .04);
    }

    .nav-item:hover .ni-icon {
      color: var(--cy);
    }

    .nav-item.active {
      color: #fff;
      background: rgba(140, 200, 230, .06);
      border-left-color: var(--cy);
    }

    .nav-item.active .ni-num {
      color: var(--cy);
    }

    .nav-item.active .ni-icon {
      color: var(--cy);
    }

    .sb-ft {
      padding: 1.25rem 1.75rem;
      border-top: 1px solid var(--line);
    }

    .sb-soc {
      display: flex;
      gap: .45rem;
      margin-bottom: 1rem;
    }

    .soc {
      width: 36px;
      height: 36px;
      border: 1px solid var(--line2);
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--tx2);
      text-decoration: none;
      font-size: .9rem;
      transition: all .25s;
    }

    .soc:hover {
      border-color: var(--cy);
      color: var(--cy);
      transform: translateY(-2px);
      background: rgba(140, 200, 230, .05);
    }

    .sb-status {
      font-family: var(--mono);
      font-size: .62rem;
      color: var(--tx2);
      letter-spacing: 1px;
      display: flex;
      align-items: center;
      gap: .5rem;
    }

    .sdot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--gn);
      box-shadow: 0 0 10px var(--gn);
      animation: blink 2s ease-in-out infinite;
    }

    /* hamburger */
    .hbg {
      display: none;
      position: fixed;
      top: 1rem;
      left: 1rem;
      z-index: 600;
      background: rgba(12, 14, 22, .95);
      border: 1px solid var(--line2);
      width: 42px;
      height: 42px;
      border-radius: 8px;
      cursor: pointer;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 5px;
    }

    .hbg span {
      display: block;
      width: 18px;
      height: 1.5px;
      background: var(--cy);
      transition: .25s;
    }

    .hbg.open span:nth-child(1) {
      transform: rotate(45deg) translate(4px, 4px);
    }

    .hbg.open span:nth-child(2) {
      opacity: 0;
    }

    .hbg.open span:nth-child(3) {
      transform: rotate(-45deg) translate(4px, -4px);
    }

    .ovl {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, .7);
      z-index: 490;
      backdrop-filter: blur(4px);
    }

    .ovl.on {
      display: block;
    }

    /* ════════════ STAGE ════════════ */
    .stage {
      position: fixed;
      left: var(--sw);
      top: 0;
      right: 0;
      bottom: 0;
      overflow: hidden;
      display: flex;
      flex-direction: column;
    }

    /* Top bar with progress */
    .topbar {
      flex-shrink: 0;
      padding: .85rem 2.25rem;
      border-bottom: 1px solid var(--line);
      background: rgba(6, 7, 13, .5);
      backdrop-filter: blur(8px);
      display: flex;
      align-items: center;
      gap: 1.5rem;
      z-index: 10;
    }

    .tb-label {
      font-family: var(--mono);
      font-size: .7rem;
      color: var(--tx2);
      letter-spacing: 2px;
      flex-shrink: 0;
    }

    .tb-track {
      flex: 1;
      height: 2px;
      background: var(--line2);
      border-radius: 1px;
      overflow: hidden;
      position: relative;
    }

    .tb-fill {
      height: 100%;
      width: 11.11%;
      background: linear-gradient(90deg, var(--cy), var(--mg));
      border-radius: 1px;
      transition: width .5s cubic-bezier(.4, 0, .2, 1);
      box-shadow: 0 0 12px rgba(140, 200, 230, .4);
    }

    .tb-pct {
      font-family: var(--mono);
      font-size: .7rem;
      color: var(--cy);
      letter-spacing: 1.5px;
      flex-shrink: 0;
    }

    /* ════════════ PAGES ════════════ */
    .content {
      flex: 1;
      position: relative;
      overflow: hidden;
    }

    .page {
      position: absolute;
      inset: 0;
      overflow-y: auto;
      overflow-x: hidden;
      padding: 4rem 3.25rem 5rem;
      z-index: 2;
      opacity: 0;
      pointer-events: none;
      transition: opacity .4s ease, transform .4s cubic-bezier(.4, 0, .2, 1);
      transform: translateY(14px);
    }

    .page.active {
      opacity: 1;
      pointer-events: all;
      transform: none;
    }

    .page-inner {
      max-width: var(--maxw);
      margin: 0 auto;
    }

    .page::-webkit-scrollbar {
      width: 6px;
    }

    .page::-webkit-scrollbar-track {
      background: transparent;
    }

    .page::-webkit-scrollbar-thumb {
      background: var(--line2);
      border-radius: 3px;
    }

    .page::-webkit-scrollbar-thumb:hover {
      background: var(--cy);
    }

    /* ── PAGE HEADER (uniform across all pages) ── */
    .pg-head {
      margin-bottom: 3.5rem;
    }

    .pg-eyebrow {
      font-family: var(--mono);
      font-size: .72rem;
      color: var(--cy);
      letter-spacing: 3px;
      margin-bottom: .85rem;
      text-transform: uppercase;
      display: inline-flex;
      align-items: center;
      gap: .55rem;
    }

    .pg-eyebrow::before {
      content: '';
      width: 24px;
      height: 1px;
      background: var(--cy);
    }

    .pg-title {
      font-family: var(--display);
      font-weight: 600;
      font-size: clamp(2.4rem, 4.5vw, 3.5rem);
      color: #fff;
      letter-spacing: -.025em;
      line-height: 1.05;
      margin-bottom: .6rem;
    }

    .pg-title em {
      font-style: normal;
      color: var(--cy);
      font-weight: 500;
    }

    .pg-sub {
      font-size: 1.05rem;
      color: var(--tx2);
      max-width: 620px;
      line-height: 1.55;
      font-weight: 400;
    }

    /* ── Two-col content shell ── */
    .split {
      display: grid;
      grid-template-columns: 1.35fr 1fr;
      gap: 4rem;
      align-items: start;
    }

    .split.flip {
      grid-template-columns: 1fr 1.35fr;
    }

    /* Featured illustration panel */
    .illus {
      position: sticky;
      top: 2rem;
      aspect-ratio: 1;
      background: radial-gradient(ellipse at center, rgba(140, 200, 230, .04), transparent 70%);
      border: 1px solid var(--line);
      border-radius: 14px;
      padding: 1.25rem;
      position: relative;
      overflow: hidden;
    }

    .illus::before {
      content: '';
      position: absolute;
      inset: 0;
      border-radius: 14px;
      background:
        linear-gradient(135deg, transparent 49.5%, var(--line2) 50%, transparent 50.5%) 0 0/20px 20px;
      opacity: .4;
      pointer-events: none;
    }

    .illus svg.illus-svg {
      width: 100%;
      height: 100%;
      display: block;
      position: relative;
      z-index: 1;
    }

    .illus-corners::before,
    .illus-corners::after,
    .illus-corners>.ic1,
    .illus-corners>.ic2 {
      content: '';
      position: absolute;
      width: 14px;
      height: 14px;
      border: 1.5px solid var(--cy);
    }

    .illus-corners::before {
      top: -1px;
      left: -1px;
      border-right: none;
      border-bottom: none;
    }

    .illus-corners::after {
      top: -1px;
      right: -1px;
      border-left: none;
      border-bottom: none;
    }

    .illus-corners .ic1 {
      bottom: -1px;
      left: -1px;
      border-right: none;
      border-top: none;
    }

    .illus-corners .ic2 {
      bottom: -1px;
      right: -1px;
      border-left: none;
      border-top: none;
    }

    .illus-meta {
      position: absolute;
      bottom: 1rem;
      left: 1.25rem;
      right: 1.25rem;
      display: flex;
      justify-content: space-between;
      font-family: var(--mono);
      font-size: .62rem;
      color: var(--tx2);
      letter-spacing: 1.5px;
      z-index: 2;
      text-transform: uppercase;
    }

    /* stagger animation classes */
    .fade {
      opacity: 0;
      transform: translateY(16px);
      animation: fadeUp .55s cubic-bezier(.4, 0, .2, 1) forwards;
    }

    .f1 {
      animation-delay: .05s;
    }

    .f2 {
      animation-delay: .13s;
    }

    .f3 {
      animation-delay: .21s;
    }

    .f4 {
      animation-delay: .29s;
    }

    .f5 {
      animation-delay: .37s;
    }

    .f6 {
      animation-delay: .45s;
    }

    @keyframes fadeUp {
      to {
        opacity: 1;
        transform: none;
      }
    }

    /* ── Buttons ── */
    .btn {
      display: inline-flex;
      align-items: center;
      gap: .55rem;
      padding: .75rem 1.4rem;
      font-family: var(--display);
      font-weight: 500;
      font-size: .95rem;
      letter-spacing: .01em;
      text-decoration: none;
      border: 1px solid var(--cy);
      color: var(--cy);
      background: rgba(140, 200, 230, .04);
      border-radius: 8px;
      transition: all .25s;
      cursor: pointer;
    }

    .btn:hover {
      background: var(--cy);
      color: var(--bg);
      box-shadow: 0 0 24px rgba(140, 200, 230, .35);
      transform: translateY(-1px);
    }

    .btn.ghost {
      border-color: var(--line2);
      color: var(--tx);
      background: transparent;
    }

    .btn.ghost:hover {
      border-color: var(--mg);
      color: var(--mg);
      background: rgba(255, 100, 200, .05);
      box-shadow: 0 0 20px rgba(255, 100, 200, .2);
    }

    .btn.solid {
      background: var(--cy);
      color: var(--bg);
    }

    .btn.solid:hover {
      background: #fff;
      border-color: #fff;
      color: var(--bg);
    }

    /* ════════════ HERO ════════════ */
    #pg-hero {
      padding-top: 3rem;
    }

    #pg-hero .page-inner {
      display: flex;
      flex-direction: column;
      justify-content: center;
      min-height: calc(100vh - 200px);
    }

    .hero-grid {
      display: grid;
      grid-template-columns: 1.4fr 1fr;
      gap: 4rem;
      align-items: center;
    }

    .h-status {
      display: inline-flex;
      align-items: center;
      gap: .55rem;
      font-family: var(--mono);
      font-size: .72rem;
      color: var(--gn);
      background: rgba(80, 200, 140, .06);
      border: 1px solid rgba(80, 200, 140, .2);
      padding: .4rem .85rem;
      border-radius: 99px;
      letter-spacing: 1.5px;
      margin-bottom: 1.75rem;
    }

    .h-status::before {
      content: '';
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--gn);
      box-shadow: 0 0 8px var(--gn);
      animation: blink 1.5s ease-in-out infinite;
    }

    .h-name-row {
      display: flex;
      align-items: flex-start;
      gap: 3.5rem;
      margin-bottom: 0.25rem;
    }

    .h-avatar-wrap {
      flex: 0 0 auto;
      width: clamp(170px, 19vw, 230px);
      aspect-ratio: 4 / 3;
      border-radius: 6px;
      overflow: hidden;
      border: 2px solid var(--cy);
      box-shadow: 0 0 0 4px rgba(140, 200, 230, .08), 0 0 22px rgba(140, 200, 230, .2);
      margin-top: 1.95rem;
    }

    .h-avatar {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center 30%;
    }

    .h-name {
      font-family: var(--display);
      font-weight: 600;
      font-size: clamp(3rem, 6vw, 5.25rem);
      color: #fff;
      letter-spacing: -.035em;
      line-height: .95;
      margin-bottom: 0;
    }

    .h-name span.cy-stroke {
      color: transparent;
      -webkit-text-stroke: 1.5px var(--cy);
      text-stroke: 1.5px var(--cy);
    }

    .h-role {
      font-family: var(--mono);
      font-size: 1.1rem;
      color: var(--cy);
      margin-bottom: 1rem;
      min-height: 1.65rem;
      letter-spacing: -.005em;
    }

    .h-role::after {
      content: '_';
      animation: caret 1s steps(1) infinite;
      color: var(--mg);
      margin-left: 2px;
    }

    @keyframes caret {
      50% {
        opacity: 0;
      }
    }

    .h-tags {
      font-family: var(--mono);
      font-size: .78rem;
      color: var(--tx2);
      letter-spacing: 2px;
      margin-bottom: 1.6rem;
      text-transform: uppercase;
    }

    .h-tags span {
      color: var(--mg);
      margin: 0 .4rem;
    }

    .h-desc {
      font-size: 1.1rem;
      color: var(--tx);
      line-height: 1.65;
      max-width: 560px;
      margin-bottom: 2.25rem;
    }

    .h-btns {
      display: flex;
      gap: .7rem;
      flex-wrap: wrap;
    }

    /* Hero illustration panel */
    .h-illus {
      aspect-ratio: 1;
      position: relative;
      border: 1px solid var(--line);
      border-radius: 14px;
      padding: 1.25rem;
      background: radial-gradient(ellipse at center, rgba(140, 200, 230, .04), transparent 70%);
      overflow: hidden;
    }

    .h-illus::after {
      content: '';
      position: absolute;
      inset: 0;
      background-image: repeating-linear-gradient(45deg, transparent, transparent 14px, var(--line) 14px, var(--line) 15px);
      opacity: .3;
      pointer-events: none;
      border-radius: 14px;
    }

    .h-illus svg {
      width: 100%;
      height: 100%;
      display: block;
      position: relative;
      z-index: 1;
    }

    .h-illus .h-meta {
      position: absolute;
      font-family: var(--mono);
      font-size: .62rem;
      color: var(--tx2);
      letter-spacing: 1.5px;
      z-index: 2;
    }

    .h-illus .h-meta.tl {
      top: 1rem;
      left: 1.25rem;
      color: var(--cy);
    }

    .h-illus .h-meta.tc {
      top: 0.5rem;
      left: 50%;
      transform: translateX(-50%);
      color: var(--cy);
      text-align: center;
      width: 80%;
    }

    .h-illus .h-meta.tr {
      top: 1rem;
      right: 1.25rem;
    }

    .h-illus .h-meta.bl {
      bottom: 1rem;
      left: 1.25rem;
    }

    .h-illus .h-meta.br {
      bottom: 1rem;
      right: 1.25rem;
      color: var(--mg);
    }

    /* ════════════ ABOUT ════════════ */
    /* About-specific 2-col layout: main content (bio + tags + illustration) | aside (highlights) */
    .about-split {
      grid-template-columns: 1.45fr 1fr;
      gap: 3.5rem;
      align-items: start;
    }

    .about-split.flip {
      grid-template-columns: 1fr 1.45fr;
    }

    .about-split.flip .about-main {
      order: 2;
    }

    .about-split.flip .about-aside {
      order: 1;
    }

    .about-illus {
      margin-top: .25rem;
      max-height: 300px;
    }

    .about-illus-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1rem;
      margin-top: .5rem;
    }

    .about-illus-row .about-illus {
      margin-top: 0;
      max-height: 240px;
      aspect-ratio: 1/1;
    }

    @media(max-width:900px) {
      .about-illus-row {
        grid-template-columns: 1fr;
      }
    }

    .about-aside {
      position: sticky;
      top: 1rem;
    }

    .about-bio {
      font-size: 1.05rem;
      color: var(--tx);
      line-height: 1.7;
      border-left: 2px solid var(--bio-accent, var(--cy));
      padding-left: 1.4rem;
      margin-bottom: 2rem;
      transition: border-color .25s, padding .25s, background .25s;
    }

    .about-bio.bio-plain {
      border-left: none;
      padding-left: 0;
    }

    .about-bio.bio-quote {
      border-left: none;
      padding: 1.5rem 1.6rem 1.5rem 3rem;
      background: rgba(140, 200, 230, .025);
      border: 1px solid var(--line);
      border-radius: 10px;
      position: relative;
    }

    .about-bio.bio-quote::before {
      content: '\201C';
      position: absolute;
      left: .85rem;
      top: .3rem;
      font-family: var(--display);
      font-size: 3.2rem;
      line-height: 1;
      color: var(--bio-accent, var(--cy));
      font-weight: 600;
    }

    .focus-tags.hidden {
      display: none;
    }

    .about-bio strong {
      color: #fff;
      font-weight: 600;
    }

    .about-bio a {
      color: var(--cy);
      text-decoration: none;
      border-bottom: 1px solid var(--line2);
      transition: .2s;
    }

    .about-bio a:hover {
      border-color: var(--cy);
    }

    .focus-tags {
      display: flex;
      flex-wrap: wrap;
      gap: .45rem;
      margin: 1.75rem 0 2.5rem;
    }

    .ftag {
      font-family: var(--mono);
      font-size: .72rem;
      color: var(--tx);
      background: rgba(140, 200, 230, .05);
      border: 1px solid var(--line2);
      padding: .4rem .8rem;
      border-radius: 6px;
      letter-spacing: .5px;
      transition: all .25s;
      cursor: default;
    }

    .ftag:hover {
      border-color: var(--cy);
      color: var(--cy);
      background: rgba(140, 200, 230, .08);
    }

    .section-mini-head {
      font-family: var(--mono);
      font-size: .7rem;
      color: var(--cy);
      letter-spacing: 2.5px;
      text-transform: uppercase;
      margin-bottom: 1.1rem;
      display: flex;
      align-items: center;
      gap: .7rem;
    }

    .section-mini-head::after {
      content: '';
      flex: 1;
      height: 1px;
      background: var(--line);
    }

    /* highlights cards */
    .hl-stack {
      display: flex;
      flex-direction: column;
      gap: .7rem;
    }

    .hl-card {
      display: flex;
      gap: 1rem;
      align-items: flex-start;
      background: linear-gradient(135deg, rgba(140, 200, 230, .03), transparent);
      border: 1px solid var(--line);
      border-radius: 10px;
      padding: 1rem 1.15rem;
      transition: all .25s;
    }

    .hl-card:hover {
      border-color: var(--line2);
      transform: translateX(3px);
    }

    .hl-card .hl-dot {
      flex-shrink: 0;
      width: 32px;
      height: 32px;
      border-radius: 8px;
      background: rgba(140, 200, 230, .08);
      border: 1px solid var(--line2);
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--cy);
      font-size: .85rem;
    }

    .hl-card h4 {
      font-family: var(--display);
      font-weight: 500;
      font-size: .95rem;
      color: #fff;
      margin-bottom: .2rem;
      letter-spacing: -.005em;
    }

    .hl-card p {
      font-size: .86rem;
      color: var(--tx2);
      line-height: 1.5;
    }

    .hl-card a {
      color: var(--cy);
      text-decoration: none;
    }

    /* highlight variant: minimal (no card chrome, just left rule) */
    .hl-stack.hl-minimal .hl-card {
      background: transparent;
      border: none;
      border-left: 1px solid var(--line2);
      border-radius: 0;
      padding: .35rem 0 .35rem 1rem;
    }

    .hl-stack.hl-minimal .hl-card:hover {
      transform: none;
      border-left-color: var(--bio-accent, var(--cy));
    }

    .hl-stack.hl-minimal .hl-card .hl-dot {
      display: none;
    }

    /* highlight variant: numbered (replace icon with index) */
    .hl-stack.hl-numbered {
      counter-reset: hlc;
    }

    .hl-stack.hl-numbered .hl-card {
      counter-increment: hlc;
    }

    .hl-stack.hl-numbered .hl-card .hl-dot i {
      display: none;
    }

    .hl-stack.hl-numbered .hl-card .hl-dot::before {
      content: counter(hlc, decimal-leading-zero);
      font-family: var(--mono);
      font-size: .7rem;
      color: var(--bio-accent, var(--cy));
      letter-spacing: .5px;
    }

    /* accent override for highlights via tweak */
    .hl-card .hl-dot {
      color: var(--bio-accent, var(--cy));
    }

    .hl-card a {
      color: var(--bio-accent, var(--cy));
    }

    /* ── Tech stack categorized ── */
    .stack-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
      gap: 1rem;
      margin-top: 1.5rem;
    }

    .stack-card {
      border: 1px solid var(--line);
      border-radius: 10px;
      padding: 1.15rem 1.25rem;
      background: rgba(12, 14, 22, .4);
      transition: all .25s;
    }

    .stack-card:hover {
      border-color: var(--line2);
      background: rgba(12, 14, 22, .7);
    }

    .stack-card .sc-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: .85rem;
      padding-bottom: .65rem;
      border-bottom: 1px dashed var(--line);
    }

    .stack-card .sc-name {
      font-family: var(--mono);
      font-size: .7rem;
      color: var(--cy);
      letter-spacing: 2px;
      text-transform: uppercase;
    }

    .stack-card .sc-icon {
      color: var(--mg);
      font-size: .85rem;
      opacity: .7;
    }

    .stack-card .sc-list {
      display: flex;
      flex-wrap: wrap;
      gap: .35rem;
    }

    .stack-card .sc-list span {
      font-family: var(--display);
      font-size: .85rem;
      color: var(--tx);
      background: rgba(140, 200, 230, .05);
      border: 1px solid var(--line);
      padding: .32rem .65rem;
      border-radius: 5px;
      letter-spacing: .005em;
      transition: all .2s;
    }

    .stack-card .sc-list span:hover {
      background: rgba(140, 200, 230, .12);
      border-color: var(--cy);
      color: #fff;
    }

    /* ════════════ EDUCATION ════════════ */
    .edu-card {
      background: linear-gradient(135deg, rgba(140, 200, 230, .04), transparent 60%);
      border: 1px solid var(--line);
      border-radius: 14px;
      padding: 2rem 2.25rem;
      position: relative;
      overflow: hidden;
    }

    .edu-card::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 2px;
      background: linear-gradient(90deg, var(--cy), var(--mg), transparent);
    }

    .edu-head {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      flex-wrap: wrap;
      gap: 1rem;
      margin-bottom: .5rem;
    }

    .edu-head h3 {
      font-family: var(--display);
      font-weight: 600;
      font-size: 1.4rem;
      color: #fff;
      letter-spacing: -.015em;
    }

    .edu-dur {
      font-family: var(--mono);
      font-size: .78rem;
      color: var(--gn);
      background: rgba(80, 200, 140, .06);
      border: 1px solid rgba(80, 200, 140, .2);
      padding: .35rem .85rem;
      border-radius: 99px;
      letter-spacing: 1px;
    }

    .edu-inst {
      font-size: 1rem;
      color: var(--tx);
      margin-bottom: .4rem;
    }

    .edu-inst a {
      color: var(--cy);
      text-decoration: none;
    }

    .edu-cgpa {
      display: inline-flex;
      align-items: baseline;
      gap: .6rem;
      font-family: var(--mono);
      font-size: .85rem;
      color: var(--tx2);
      margin-bottom: 1.5rem;
    }

    .edu-cgpa b {
      color: var(--gn);
      font-size: 1.05rem;
      font-weight: 600;
    }

    .edu-tabs {
      display: flex;
      gap: .4rem;
      margin: 1.5rem 0 1.25rem;
      flex-wrap: wrap;
      border-bottom: 1px solid var(--line);
      padding-bottom: .85rem;
    }

    .etab {
      font-family: var(--display);
      font-weight: 500;
      font-size: .92rem;
      padding: .5rem .95rem;
      border-radius: 7px;
      cursor: pointer;
      border: 1px solid transparent;
      color: var(--tx2);
      background: transparent;
      transition: all .2s;
      letter-spacing: .005em;
    }

    .etab:hover {
      color: var(--cy);
    }

    .etab.on {
      border-color: var(--cy);
      color: var(--cy);
      background: rgba(140, 200, 230, .05);
    }

    .etab-c {
      display: none;
    }

    .etab-c.on {
      display: block;
      animation: fadeUp .35s ease;
    }

    .etab-c ul {
      list-style: none;
    }

    .etab-c ul li {
      padding: .5rem 0 .5rem 1.4rem;
      color: var(--tx);
      font-size: .96rem;
      border-bottom: 1px dashed var(--line);
      position: relative;
      line-height: 1.55;
    }

    .etab-c ul li::before {
      content: '›';
      position: absolute;
      left: .2rem;
      color: var(--cy);
      font-size: 1.1rem;
      line-height: 1.4;
    }

    .etab-c ul li:last-child {
      border-bottom: none;
    }

    .crs {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
      gap: .4rem;
    }

    .crs div {
      background: rgba(140, 200, 230, .03);
      border: 1px solid var(--line);
      border-radius: 6px;
      padding: .4rem .7rem;
      font-family: var(--mono);
      font-size: .8rem;
      color: var(--tx2);
      transition: all .2s;
    }

    .crs div:hover {
      border-color: var(--cy);
      color: var(--cy);
    }

    /* ════════════ EXPERIENCE ════════════ */
    .exp-grid {
      display: grid;
      grid-template-columns: 240px 1fr;
      gap: 1.5rem;
    }

    .exp-menu {
      display: flex;
      flex-direction: column;
      gap: .35rem;
      position: sticky;
      top: 1rem;
      align-self: start;
    }

    .exp-tab {
      padding: .85rem 1rem;
      border: 1px solid var(--line);
      border-radius: 9px;
      cursor: pointer;
      background: rgba(12, 14, 22, .4);
      transition: all .25s;
      position: relative;
      overflow: hidden;
    }

    .exp-tab::before {
      content: '';
      position: absolute;
      left: 0;
      top: 0;
      bottom: 0;
      width: 2px;
      background: var(--mg);
      transform: scaleY(0);
      transform-origin: bottom;
      transition: .25s;
    }

    .exp-tab:hover {
      border-color: var(--line2);
      background: rgba(20, 24, 36, .6);
    }

    .exp-tab.on::before {
      transform: scaleY(1);
    }

    .exp-tab.on {
      border-color: rgba(255, 100, 200, .25);
      background: rgba(255, 100, 200, .04);
    }

    .exp-tab .et-co {
      font-family: var(--mono);
      font-size: .68rem;
      color: var(--tx2);
      letter-spacing: 1.5px;
      margin-bottom: .2rem;
    }

    .exp-tab .et-role {
      font-size: .92rem;
      font-weight: 500;
      color: var(--tx);
      letter-spacing: -.005em;
    }

    .exp-tab .et-yr {
      font-family: var(--mono);
      font-size: .65rem;
      color: var(--dim);
      margin-top: .25rem;
    }

    .exp-tab.on .et-co {
      color: var(--mg);
    }

    .exp-tab.on .et-role {
      color: #fff;
    }

    .exp-detail {
      background: linear-gradient(135deg, rgba(255, 100, 200, .04), transparent 60%);
      border: 1px solid var(--line);
      border-radius: 14px;
      padding: 2rem 2.25rem;
      display: none;
    }

    .exp-detail.on {
      display: block;
      animation: fadeUp .4s ease;
    }

    .exp-detail-head {
      padding-bottom: 1.25rem;
      border-bottom: 1px solid var(--line);
      margin-bottom: 1.5rem;
    }

    .exp-co-name {
      font-family: var(--mono);
      font-size: .78rem;
      color: var(--mg);
      letter-spacing: 2px;
      text-transform: uppercase;
      margin-bottom: .45rem;
    }

    .exp-role-big {
      font-family: var(--display);
      font-weight: 600;
      font-size: 1.45rem;
      color: #fff;
      letter-spacing: -.015em;
      margin-bottom: .4rem;
    }

    .exp-period {
      font-family: var(--mono);
      font-size: .78rem;
      color: var(--tx2);
      letter-spacing: 1px;
    }

    .exp-desc {
      font-size: 1rem;
      color: var(--tx);
      line-height: 1.7;
      margin-bottom: 1.5rem;
    }

    .exp-kpis {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
      gap: .7rem;
      margin-bottom: 1.5rem;
    }

    .kpi {
      background: rgba(255, 100, 200, .04);
      border: 1px solid rgba(255, 100, 200, .18);
      border-radius: 8px;
      padding: .85rem .75rem;
      text-align: center;
    }

    .kpi-val {
      font-family: var(--display);
      font-weight: 600;
      font-size: 1.3rem;
      color: var(--mg);
      letter-spacing: -.01em;
    }

    .kpi-lbl {
      font-family: var(--mono);
      font-size: .62rem;
      color: var(--tx2);
      letter-spacing: 1.5px;
      margin-top: .25rem;
      text-transform: uppercase;
    }

    .exp-list {
      list-style: none;
    }

    .exp-list li {
      padding: .55rem 0 .55rem 1.4rem;
      color: var(--tx);
      font-size: .95rem;
      position: relative;
      border-bottom: 1px dashed var(--line);
      line-height: 1.55;
    }

    .exp-list li:last-child {
      border-bottom: none;
    }

    .exp-list li::before {
      content: '';
      position: absolute;
      left: .2rem;
      top: .95rem;
      width: 6px;
      height: 6px;
      background: var(--mg);
      transform: rotate(45deg);
    }

    /* ════════════ PROJECTS ════════════ */
    .proj-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
      gap: 1.25rem;
    }

    .proj-card {
      background: rgba(12, 14, 22, .5);
      border: 1px solid var(--line);
      border-radius: 12px;
      overflow: hidden;
      transition: all .35s;
      cursor: pointer;
      display: flex;
      flex-direction: column;
    }

    .proj-card:hover {
      transform: translateY(-4px);
      border-color: var(--line2);
      box-shadow: 0 18px 40px -10px rgba(0, 0, 0, .5);
    }

    .pimg {
      position: relative;
      aspect-ratio: 16/10;
      overflow: hidden;
      background: linear-gradient(135deg, var(--bg2), var(--bg3));
    }

    .pimg::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(0deg, rgba(12, 14, 22, 1) 0%, transparent 60%);
    }

    .pimg-stripes {
      position: absolute;
      inset: 0;
      background-image: repeating-linear-gradient(45deg, transparent, transparent 12px, var(--line) 12px, var(--line) 13px);
      opacity: .6;
    }

    .pimg-label {
      position: absolute;
      top: .85rem;
      left: .95rem;
      z-index: 2;
      font-family: var(--mono);
      font-size: .65rem;
      color: var(--cy);
      background: rgba(6, 7, 13, .85);
      padding: .3rem .6rem;
      border-radius: 5px;
      letter-spacing: 1.5px;
      text-transform: uppercase;
      border: 1px solid var(--line2);
    }

    .pimg-icon {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--cy);
      font-size: 2.5rem;
      opacity: .6;
    }

    .pbody {
      padding: 1.15rem 1.25rem 1.25rem;
      flex: 1;
      display: flex;
      flex-direction: column;
    }

    .ptitle {
      font-family: var(--display);
      font-weight: 600;
      font-size: 1.05rem;
      color: #fff;
      letter-spacing: -.01em;
      margin-bottom: .5rem;
      line-height: 1.35;
    }

    .pdesc {
      font-size: .9rem;
      color: var(--tx2);
      line-height: 1.6;
      margin-bottom: 1rem;
      flex: 1;
    }

    .pdesc a {
      color: var(--cy);
      text-decoration: none;
    }

    .pchips {
      display: flex;
      flex-wrap: wrap;
      gap: .3rem;
      margin-bottom: .85rem;
    }

    .pchip {
      font-family: var(--mono);
      font-size: .66rem;
      color: var(--tx2);
      background: rgba(140, 200, 230, .04);
      border: 1px solid var(--line);
      padding: .2rem .5rem;
      border-radius: 4px;
      letter-spacing: .5px;
    }

    .plink {
      font-family: var(--mono);
      font-size: .78rem;
      color: var(--cy);
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: .4rem;
      letter-spacing: 1px;
      border-top: 1px solid var(--line);
      padding-top: .85rem;
    }

    .plink:hover {
      color: var(--mg);
    }

    /* ════════════ RESEARCH ════════════ */
    .rtabs {
      display: flex;
      gap: .4rem;
      flex-wrap: wrap;
      margin-bottom: 1.75rem;
      border-bottom: 1px solid var(--line);
      padding-bottom: 1rem;
    }

    .rtab {
      font-family: var(--display);
      font-weight: 500;
      font-size: .92rem;
      padding: .5rem 1rem;
      border-radius: 7px;
      cursor: pointer;
      border: 1px solid transparent;
      color: var(--tx2);
      background: transparent;
      transition: all .2s;
      letter-spacing: .005em;
    }

    .rtab:hover {
      color: var(--cy);
    }

    .rtab.on {
      border-color: var(--cy);
      color: var(--cy);
      background: rgba(140, 200, 230, .05);
    }

    .rtab-c {
      display: none;
    }

    .rtab-c.on {
      display: block;
    }

    .rc {
      background: rgba(12, 14, 22, .5);
      border: 1px solid var(--line);
      border-radius: 10px;
      padding: 1.2rem 1.4rem;
      margin-bottom: .8rem;
      transition: all .25s;
      border-left: 2px solid transparent;
    }

    .rc:hover {
      border-color: var(--line2);
      border-left-color: var(--cy);
      transform: translateX(3px);
    }

    .rc h3,
    .rc h4 {
      font-family: var(--display);
      font-weight: 600;
      font-size: 1.05rem;
      color: #fff;
      margin-bottom: .45rem;
      line-height: 1.4;
      letter-spacing: -.01em;
    }

    .rc p {
      font-size: .9rem;
      color: var(--tx2);
      line-height: 1.55;
      margin: .2rem 0;
    }

    .rc p strong {
      color: var(--tx);
    }

    .rc p em {
      color: var(--cy);
      font-style: normal;
      font-family: var(--mono);
      font-size: .82rem;
    }

    .trow {
      display: flex;
      gap: .35rem;
      flex-wrap: wrap;
      margin-top: .65rem;
    }

    .tag {
      font-family: var(--mono);
      font-size: .7rem;
      color: var(--cy);
      background: rgba(140, 200, 230, .05);
      border: 1px solid var(--line2);
      padding: .25rem .6rem;
      border-radius: 4px;
      text-decoration: none;
      letter-spacing: .5px;
      transition: all .2s;
    }

    .tag:hover {
      background: var(--cy);
      color: var(--bg);
    }

    .tag.warn {
      color: var(--mg);
      border-color: rgba(255, 100, 200, .3);
    }

    /* ════════════ ACHIEVEMENTS ════════════ */
    .ach-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 1.15rem;
    }

    .ach-card {
      background: linear-gradient(135deg, rgba(140, 200, 230, .04), transparent 70%);
      border: 1px solid var(--line);
      border-radius: 12px;
      padding: 1.4rem 1.5rem;
      display: flex;
      gap: 1rem;
      align-items: flex-start;
      transition: all .3s;
      position: relative;
      overflow: hidden;
    }

    .ach-card:hover {
      border-color: var(--line2);
      transform: translateY(-3px);
    }

    .ach-icon {
      flex-shrink: 0;
      width: 38px;
      height: 38px;
      border-radius: 9px;
      background: rgba(140, 200, 230, .07);
      border: 1px solid var(--line2);
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--cy);
      font-size: .95rem;
    }

    .ach-card h4 {
      font-family: var(--display);
      font-weight: 600;
      font-size: 1rem;
      color: #fff;
      margin-bottom: .35rem;
      letter-spacing: -.005em;
    }

    .ach-card p {
      font-size: .88rem;
      color: var(--tx2);
      line-height: 1.55;
    }

    /* ════════════ CERTIFICATIONS ════════════ */
    .cert-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
      gap: 1rem;
    }

    .cert-card {
      background: rgba(12, 14, 22, .5);
      border: 1px solid var(--line);
      border-radius: 10px;
      overflow: hidden;
      transition: all .3s;
      aspect-ratio: 4/3;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      padding: 1.5rem;
      text-align: center;
    }

    .cert-card:hover {
      border-color: var(--cy);
      transform: scale(1.02);
      box-shadow: 0 0 20px rgba(140, 200, 230, .12);
    }

    .cert-card .cc-stripe {
      position: absolute;
      inset: 0;
      background-image: repeating-linear-gradient(135deg, transparent, transparent 12px, var(--line) 12px, var(--line) 13px);
      opacity: .5;
    }

    .cc-content {
      position: relative;
      z-index: 2;
    }

    .cc-icon {
      color: var(--cy);
      font-size: 1.6rem;
      margin-bottom: .7rem;
      opacity: .8;
    }

    .cc-name {
      font-family: var(--display);
      font-weight: 600;
      font-size: .95rem;
      color: #fff;
      margin-bottom: .25rem;
      letter-spacing: -.005em;
      line-height: 1.35;
    }

    .cc-issuer {
      font-family: var(--mono);
      font-size: .7rem;
      color: var(--tx2);
      letter-spacing: 1px;
    }

    /* ════════════ CONTACT ════════════ */
    #pg-contact .page-inner {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      min-height: calc(100vh - 200px);
      text-align: center;
    }

    #pg-contact .pg-eyebrow {
      justify-content: center;
    }

    #pg-contact .pg-eyebrow::after {
      content: '';
      width: 24px;
      height: 1px;
      background: var(--cy);
    }

    #pg-contact .pg-sub {
      margin-left: auto;
      margin-right: auto;
    }

    .contact-illus {
      width: 280px;
      height: 280px;
      margin: 1rem auto 2rem;
      border: 1px solid var(--line);
      border-radius: 50%;
      padding: 1rem;
      background: radial-gradient(circle, rgba(140, 200, 230, .05), transparent 70%);
    }

    .contact-illus svg {
      width: 100%;
      height: 100%;
    }

    .email-link {
      display: inline-block;
      font-family: var(--mono);
      font-size: 1rem;
      color: var(--cy);
      text-decoration: none;
      border: 1px solid var(--cy);
      padding: .85rem 2rem;
      border-radius: 8px;
      background: rgba(140, 200, 230, .04);
      transition: all .25s;
      margin: 1.5rem 0 1.75rem;
      letter-spacing: 1px;
    }

    .email-link:hover {
      background: var(--cy);
      color: var(--bg);
      box-shadow: 0 0 30px rgba(140, 200, 230, .4);
    }

    .contact-btns {
      display: flex;
      gap: .7rem;
      justify-content: center;
      flex-wrap: wrap;
      margin-bottom: 3rem;
    }

    .fn {
      font-family: var(--mono);
      font-size: .7rem;
      color: var(--dim);
      letter-spacing: 1.5px;
    }

    /* ════════════ RESPONSIVE ════════════ */
    @media(max-width:1100px) {

      .split,
      .hero-grid,
      .exp-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
      }

      .about-split,
      .about-split.flip {
        grid-template-columns: 1fr;
        gap: 2.5rem;
      }

      .about-split.flip .about-main {
        order: 1;
      }

      .about-split.flip .about-aside {
        order: 2;
      }

      .about-aside {
        position: static;
      }

      .illus,
      .h-illus {
        aspect-ratio: 16/10;
        max-width: 520px;
        margin: 0 auto;
      }

      .about-illus {
        max-height: none;
      }

      .exp-menu {
        position: relative;
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: .5rem;
        top: auto;
      }

      .exp-tab {
        min-width: 180px;
        flex-shrink: 0;
      }
    }

    @media(max-width:768px) {
      :root {
        --sw: 0px;
      }

      .sidebar {
        transform: translateX(-280px);
        width: 280px;
      }

      .sidebar.open {
        transform: translateX(0);
      }

      .hbg {
        display: flex;
      }

      .stage {
        left: 0;
      }

      .topbar {
        padding-left: 4.25rem;
      }

      .page {
        padding: 3rem 1.5rem 4rem;
      }

      .pg-title {
        font-size: 2rem;
      }

      .h-name {
        font-size: 2.6rem;
      }

      .stack-grid {
        grid-template-columns: 1fr;
      }

      .proj-grid,
      .ach-grid,
      .cert-grid {
        grid-template-columns: 1fr;
      }
    }

    /* ════════════ TWEAKS PANEL ════════════ */
    .tw-panel {
      position: fixed;
      right: 1.25rem;
      bottom: 1.25rem;
      z-index: 700;
      width: 320px;
      max-height: calc(100vh - 2.5rem);
      background: rgba(12, 14, 22, .96);
      backdrop-filter: blur(12px);
      border: 1px solid var(--line2);
      border-radius: 12px;
      box-shadow: 0 20px 60px rgba(0, 0, 0, .5), 0 0 0 1px rgba(140, 200, 230, .04) inset;
      display: none;
      flex-direction: column;
      font-family: var(--display);
      overflow: hidden;
    }

    .tw-panel.on {
      display: flex;
    }

    .tw-hd {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: .85rem 1rem .85rem 1.1rem;
      border-bottom: 1px solid var(--line);
      cursor: move;
      user-select: none;
    }

    .tw-hd-l {
      display: flex;
      align-items: center;
      gap: .6rem;
    }

    .tw-hd-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--cy);
      box-shadow: 0 0 10px var(--cy);
    }

    .tw-hd-ttl {
      font-family: var(--mono);
      font-size: .7rem;
      letter-spacing: 2.5px;
      color: var(--cy);
      text-transform: uppercase;
    }

    .tw-hd-x {
      background: transparent;
      border: 1px solid var(--line2);
      color: var(--tx2);
      width: 24px;
      height: 24px;
      border-radius: 6px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: .2s;
      font-size: .7rem;
    }

    .tw-hd-x:hover {
      color: var(--mg);
      border-color: var(--mg);
    }

    .tw-body {
      overflow-y: auto;
      padding: .25rem 0 .75rem;
    }

    .tw-body::-webkit-scrollbar {
      width: 6px;
    }

    .tw-body::-webkit-scrollbar-thumb {
      background: var(--line2);
      border-radius: 3px;
    }

    .tw-sec {
      padding: 1rem 1.1rem .25rem;
      border-bottom: 1px dashed var(--line);
    }

    .tw-sec:last-child {
      border-bottom: none;
    }

    .tw-sec-ttl {
      font-family: var(--mono);
      font-size: .62rem;
      letter-spacing: 2px;
      color: var(--tx2);
      text-transform: uppercase;
      margin-bottom: .85rem;
      display: flex;
      align-items: center;
      gap: .5rem;
    }

    .tw-sec-ttl::after {
      content: '';
      flex: 1;
      height: 1px;
      background: var(--line);
    }

    .tw-row {
      margin-bottom: 1rem;
    }

    .tw-row:last-child {
      margin-bottom: .5rem;
    }

    .tw-lbl {
      display: block;
      font-size: .8rem;
      color: var(--tx);
      margin-bottom: .45rem;
      letter-spacing: -.005em;
    }

    /* segmented control */
    .tw-seg {
      display: flex;
      gap: 4px;
      background: rgba(140, 200, 230, .04);
      border: 1px solid var(--line);
      border-radius: 8px;
      padding: 3px;
    }

    .tw-seg button {
      flex: 1;
      background: transparent;
      border: none;
      cursor: pointer;
      font-family: var(--mono);
      font-size: .68rem;
      letter-spacing: 1px;
      text-transform: uppercase;
      color: var(--tx2);
      padding: .45rem .35rem;
      border-radius: 5px;
      transition: .2s;
    }

    .tw-seg button:hover {
      color: var(--tx);
    }

    .tw-seg button.on {
      background: var(--cy);
      color: var(--bg);
    }

    /* color swatches */
    .tw-swatches {
      display: flex;
      gap: .5rem;
    }

    .tw-sw {
      flex: 1;
      aspect-ratio: 1.6;
      border-radius: 7px;
      cursor: pointer;
      border: 2px solid transparent;
      transition: .2s;
      position: relative;
      overflow: hidden;
    }

    .tw-sw::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(135deg, transparent 50%, rgba(0, 0, 0, .25));
    }

    .tw-sw.on {
      border-color: #fff;
      box-shadow: 0 0 0 1px var(--bg), 0 0 16px currentColor;
    }

    /* toggle */
    .tw-toggle {
      display: flex;
      align-items: center;
      justify-content: space-between;
      background: rgba(140, 200, 230, .03);
      border: 1px solid var(--line);
      border-radius: 8px;
      padding: .55rem .75rem;
      cursor: pointer;
      transition: .2s;
    }

    .tw-toggle:hover {
      border-color: var(--line2);
    }

    .tw-toggle .tw-tg-lbl {
      font-size: .85rem;
      color: var(--tx);
    }

    .tw-tg-sw {
      width: 32px;
      height: 18px;
      border-radius: 99px;
      background: rgba(140, 200, 230, .1);
      border: 1px solid var(--line2);
      position: relative;
      transition: .25s;
      flex-shrink: 0;
    }

    .tw-tg-sw::after {
      content: '';
      position: absolute;
      top: 1px;
      left: 1px;
      width: 14px;
      height: 14px;
      border-radius: 50%;
      background: var(--tx2);
      transition: .25s;
    }

    .tw-toggle.on .tw-tg-sw {
      background: var(--cy);
      border-color: var(--cy);
    }

    .tw-toggle.on .tw-tg-sw::after {
      left: 15px;
      background: var(--bg);
    }

    /* text input */
    .tw-input {
      width: 100%;
      background: rgba(140, 200, 230, .03);
      border: 1px solid var(--line);
      border-radius: 8px;
      padding: .55rem .75rem;
      color: var(--tx);
      font-family: var(--display);
      font-size: .85rem;
      transition: .2s;
    }

    .tw-input:focus {
      outline: none;
      border-color: var(--cy);
      background: rgba(140, 200, 230, .06);
    }

    .tw-hint {
      font-family: var(--mono);
      font-size: .62rem;
      color: var(--tx2);
      letter-spacing: 1px;
      padding: .65rem 1.1rem .9rem;
      border-top: 1px solid var(--line);
      display: flex;
      align-items: center;
      gap: .45rem;
    }

    .tw-hint i {
      color: var(--cy);
      font-size: .7rem;
    }

    @media(max-width:768px) {
      .tw-panel {
        right: .5rem;
        bottom: .5rem;
        left: .5rem;
        width: auto;
      }
    }
