:root {
      --s50: #fafaf9;
      --s100: #f5f5f4;
      --s200: #e7e5e4;
      --s300: #d6d3d1;
      --s400: #a8a29e;
      --s500: #78716c;
      --s600: #57534e;
      --s700: #44403c;
      --s800: #292524;
      --s900: #1c1917;
      --accent: #a8674f;
      --surface: #ffffff;
      --font-head: 'Cabinet Grotesk', sans-serif;
      --font-body: 'General Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
      --font-mono: 'Space Mono', monospace;
      --font-brand: 'Fraunces', Georgia, serif;
    }

    :root[data-theme="dark"] {
      --s50: #161311;
      --s100: #1c1917;
      --s200: #3a3532;
      --s300: #4d4740;
      --s400: #78716c;
      --s500: #a29a94;
      --s600: #c9c1ba;
      --s700: #e3ddd8;
      --s800: #f5f2ef;
      --s900: #fafaf9;
      --accent: #d69577;
      --surface: #211d1a;
    }

    body {
      transition: background-color .2s ease, color .2s ease;
    }

    ::view-transition-old(root),
    ::view-transition-new(root) {
      animation: none;
      mix-blend-mode: normal;
    }

    ::view-transition-new(root) {
      z-index: 9999;
    }

    ::view-transition-old(root) {
      z-index: 1;
    }

    * {
      box-sizing: border-box;
    }

    body {
      margin: 0;
      background: var(--s50);
      font-family: var(--font-body);
      color: var(--s800);
      overflow-x: hidden;
    }

    .dots {
      position: fixed;
      width: 160px;
      height: 160px;
      background-image: repeating-linear-gradient(45deg, rgba(87, 83, 75, .18) 0 1px, transparent 1px 14px), repeating-linear-gradient(-45deg, rgba(87, 83, 75, .18) 0 1px, transparent 1px 14px);
      pointer-events: none;
      z-index: -1;
    }

    .dots.tl {
      top: -24px;
      left: -24px;
      -webkit-mask-image: radial-gradient(circle at top left, #000 40%, transparent 78%);
      mask-image: radial-gradient(circle at top left, #000 40%, transparent 78%);
    }

    .dots.tr {
      top: -24px;
      right: -24px;
      -webkit-mask-image: radial-gradient(circle at top right, #000 40%, transparent 78%);
      mask-image: radial-gradient(circle at top right, #000 40%, transparent 78%);
    }

    .dots.bl {
      bottom: -24px;
      left: -24px;
      -webkit-mask-image: radial-gradient(circle at bottom left, #000 40%, transparent 78%);
      mask-image: radial-gradient(circle at bottom left, #000 40%, transparent 78%);
    }

    .dots.br {
      bottom: -24px;
      right: -24px;
      -webkit-mask-image: radial-gradient(circle at bottom right, #000 40%, transparent 78%);
      mask-image: radial-gradient(circle at bottom right, #000 40%, transparent 78%);
    }

    .shell {
      display: flex;
      min-height: 100vh;
    }

    .rail {
      width: 190px;
      flex-shrink: 0;
      border-right: 1px solid var(--s200);
      padding: 24px 20px;
      position: sticky;
      top: 0;
      align-self: flex-start;
      height: 100vh;
      overflow-y: auto;
      display: flex;
      flex-direction: column;
      gap: 1px;
    }

    main {
      flex: 1;
      max-width: 820px;
      margin: 0 auto;
      padding: 24px 16px 48px;
    }

    .back-btn {
      display: none;
      align-items: center;
      gap: 6px;
      background: none;
      border: none;
      color: var(--s600);
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      padding: 8px 0;
      margin-bottom: 12px;
      transition: color .15s ease;
    }

    .back-btn:hover {
      color: var(--accent);
    }

    .back-btn svg {
      width: 16px;
      height: 16px;
      transition: transform .25s cubic-bezier(.4,0,.2,1);
    }

    .back-btn:hover svg {
      transform: translateX(-4px);
    }

    .back-btn-label {
      position: relative;
    }

    .back-btn-label::after {
      content: '';
      position: absolute;
      left: 0;
      bottom: -2px;
      width: 100%;
      height: 1px;
      background: currentColor;
      transform: scaleX(0);
      transform-origin: right;
      transition: transform .25s ease;
    }

    .back-btn:hover .back-btn-label::after {
      transform: scaleX(1);
      transform-origin: left;
    }

    .back-btn.visible {
      display: flex;
    }

    .card {
      position: relative;
      background: transparent;
      border-radius: 8px;
      padding: 24px;
    }

    .hero-wrap {
      position: relative;
      overflow: hidden;
      border-radius: 14px;
      padding: 16px 16px 24px;
    }

    .hero {
      position: relative;
      z-index: 1;
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      align-items: center;
      gap: 16px;
    }

    .hero-inner {
      display: flex;
      gap: 16px;
      align-items: center;
    }

    .hero-rotator {
      position: relative;
      flex: 1;
      display: flex;
      justify-content: flex-end;
      align-items: center;
      gap: 4px;
      padding-right: 52px;
    }

    .flap-tile {
      width: 26px;
      height: 36px;
      background: var(--surface);
      color: var(--accent);
      border: 1px solid var(--s200);
      border-radius: 6px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: var(--font-mono);
      font-weight: 700;
      font-size: 16px;
      transition: transform .13s ease;
      flex-shrink: 0;
    }

    .flap-tile.flip {
      transform: rotateX(90deg);
    }

    @media (max-width:700px) {
      .hero-rotator {
        flex: 1 1 100%;
        justify-content: center;
        padding-right: 0;
        order: 3;
        margin-top: 8px;
        flex-wrap: wrap;
      }

      .flap-tile {
        width: 20px;
        height: 28px;
        font-size: 13px;
      }
    }

    #heroConstellation {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
    }

    .avatar {
      width: 180px;
      height: 180px;
      border-radius: 12px;
      background: var(--s200);
      color: var(--s600);
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
      font-size: 26px;
      flex-shrink: 0;
      overflow: hidden;
    }

    .avatar-img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      border-radius: 12px;
    }

    .name-row {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 20px;
      font-weight: 700;
      font-family: var(--font-head);
    }

    .check {
      width: 16px;
      height: 16px;
      color: #3b82f6;
    }

    .loc {
      margin: 4px 0 0;
      font-size: 13px;
      color: var(--s500);
      display: flex;
      align-items: center;
      gap: 4px;
    }

    .role {
      margin: 8px 0 0;
      font-size: 14px;
      font-weight: 500;
      color: var(--s800);
    }

    .hero-social {
      display: flex;
      gap: 10px;
      margin-top: 9px;
    }

    .hero-social a {
      width: 28px;
      height: 28px;
      border-radius: 7px;
      border: 1px solid var(--s200);
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--s600);
      transition: transform .15s ease, border-color .15s ease, color .15s ease;
    }

    .hero-social a:hover {
      transform: translateY(-2px);
      border-color: var(--s400);
    }

    .hero-social svg {
      width: 14px;
      height: 14px;
    }

    .social-github:hover {
      color: var(--s800);
    }

    .social-linkedin:hover {
      color: #0A66C2;
    }

    .ig-shape {
      stroke: currentColor;
      transition: stroke .15s ease;
    }

    .ig-dot {
      fill: currentColor;
      transition: fill .15s ease;
    }

    .social-instagram:hover .ig-shape {
      stroke: url(#igGrad);
    }

    .social-instagram:hover .ig-dot {
      fill: url(#igGrad);
    }

    .btnrow {
      margin-top: 14px;
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
    }

    .btn {
      border: 1px solid var(--s300);
      background: var(--surface);
      color: var(--s700);
      font-size: 12px;
      font-weight: 700;
      padding: 8px 14px;
      border-radius: 6px;
      cursor: pointer;
      text-decoration: none;
      display: inline-block;
      transition: transform .15s ease, border-color .15s ease;
    }

    .btn:hover {
      background: var(--s50);
      border-color: var(--s400);
      transform: translateY(-1px);
    }

    .rail-brand {
      display: block;
      width: 100%;
      background: none;
      border: none;
      border-bottom: 1px solid var(--s200);
      padding: 0 0 12px 12px;
      margin-bottom: 8px;
      font-family: var(--font-brand);
      font-size: 26px;
      font-weight: 600;
      line-height: 1;
      letter-spacing: -.02em;
      font-variation-settings: "SOFT" 100, "WONK" 1;
      color: var(--s800);
      text-align: left;
      cursor: pointer;
      transition: color .15s ease;
    }

    .rail-brand:hover {
      color: var(--accent);
    }

    .navlink {
      display: flex;
      align-items: center;
      gap: 8px;
      text-align: left;
      background: none;
      border: none;
      border-left: 2px solid transparent;
      padding: 9px 0 9px 12px;
      font-size: 13px;
      font-weight: 600;
      color: var(--s500);
      cursor: pointer;
      white-space: nowrap;
      transition: color .15s ease, padding-left .15s ease;
    }

    .navlink svg {
      width: 15px;
      height: 15px;
      flex-shrink: 0;
      opacity: .7;
      transition: opacity .15s ease;
    }

    .nav-scroll {
      position: relative;
      display: flex;
      flex-direction: column;
      gap: 1px;
      border-bottom: 1px solid var(--s200);
      padding-bottom: 16px;
      margin-bottom: 8px;
      min-height: 0;
      overflow-y: auto;
      flex-shrink: 1;
      scrollbar-width: thin;
      scrollbar-color: var(--s300) transparent;
    }

    .nav-scroll::-webkit-scrollbar {
      width: 5px;
    }

    .nav-scroll::-webkit-scrollbar-track {
      background: transparent;
    }

    .nav-scroll::-webkit-scrollbar-thumb {
      background: var(--s300);
      border-radius: 3px;
    }

    .nav-scroll::-webkit-scrollbar-thumb:hover {
      background: var(--s400);
    }

    .navlink:hover {
      color: var(--s800);
      padding-left: 15px;
    }

    .navlink:hover svg {
      opacity: 1;
    }

    .navlink.active {
      color: var(--accent);
    }

    .navlink.active svg {
      opacity: 1;
      color: var(--accent);
    }

    .nav-indicator {
      position: absolute;
      left: 0;
      width: 2px;
      border-radius: 1px;
      background: var(--accent);
      opacity: 0;
      transform: translateY(0);
      height: 0;
      transition: transform .32s cubic-bezier(.4, 0, .2, 1), height .32s cubic-bezier(.4, 0, .2, 1), opacity .2s ease;
      pointer-events: none;
    }

    .nav-indicator.ready {
      opacity: 1;
    }

    .chat-trigger {
      margin-top: 0;
    }

    .sidebar-chat-label {
      margin-top: 0;
      border-top: 1px solid var(--s200);
      padding-top: 16px;
      margin-bottom: 8px;
    }

    .sidebar-contact-label {
      margin-top: 16px;
      margin-bottom: 8px;
      border-top: 1px solid var(--s200);
      padding-top: 16px;
    }

    .sidebar-quote {
      font-size: 11px;
      color: var(--s500);
      line-height: 1.45;
      margin: 0 0 10px;
    }

    .chat-trigger-primary button {
      border-color: var(--accent);
      color: var(--accent);
    }

    .sidebar-actions {
      margin-top: 6px;
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .chat-fab {
      display: none;
    }

    /* icon swings like a pendulum, then rests */
    @keyframes chatSwing {
      0%, 30%, 100% {
        transform: rotate(0deg);
      }

      5% {
        transform: rotate(14deg);
      }

      10% {
        transform: rotate(-12deg);
      }

      15% {
        transform: rotate(9deg);
      }

      20% {
        transform: rotate(-6deg);
      }

      25% {
        transform: rotate(3deg);
      }
    }

    @media (prefers-reduced-motion: reduce) {
      .chat-fab svg {
        animation: none !important;
      }
    }

    .chat-trigger button,
    .sidebar-actions button {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 7px;
      padding: 9px 0;
      border: 1px solid var(--s200);
      background: var(--surface);
      color: var(--s700);
      font-size: 12px;
      font-weight: 700;
      border-radius: 6px;
      cursor: pointer;
      transition: border-color .15s ease, color .15s ease;
    }

    .chat-trigger button svg,
    .sidebar-actions button svg {
      width: 15px;
      height: 15px;
      flex-shrink: 0;
    }

    .chat-trigger button:hover,
    .sidebar-actions button:hover {
      border-color: var(--accent);
      color: var(--accent);
    }

    .chat-live {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      margin-left: 2px;
      font-size: 11px;
      font-weight: 700;
      color: var(--s600);
    }

    .chat-live-dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: #5a9e6f;
      flex-shrink: 0;
      box-shadow: 0 0 0 0 rgba(90, 158, 111, .5);
      animation: chatLivePulse 2s infinite;
    }

    @keyframes chatLivePulse {
      0% {
        box-shadow: 0 0 0 0 rgba(90, 158, 111, .45);
      }

      70% {
        box-shadow: 0 0 0 5px rgba(90, 158, 111, 0);
      }

      100% {
        box-shadow: 0 0 0 0 rgba(90, 158, 111, 0);
      }
    }

    .theme-switch-wrap {
      margin-top: auto;
      margin-bottom: auto;
      padding: 12px 0;
    }

    .theme-switch-label {
      font-size: 10px;
      font-weight: 700;
      letter-spacing: .06em;
      text-transform: uppercase;
      color: var(--s500);
      margin-bottom: 10px;
    }

    .theme-switch {
      display: flex;
      gap: 2px;
      background: var(--s100);
      border-radius: 8px;
      padding: 3px;
    }

    .theme-btn {
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 5px;
      padding: 7px 0;
      border: none;
      background: transparent;
      color: var(--s500);
      border-radius: 6px;
      cursor: pointer;
      font-size: 10px;
      font-weight: 600;
      transition: color .15s ease, background .15s ease, box-shadow .15s ease;
    }

    .theme-btn svg {
      width: 14px;
      height: 14px;
      flex-shrink: 0;
    }

    .theme-btn:hover:not(.active) {
      color: var(--s800);
    }

    .theme-btn.active {
      color: var(--accent);
      background: var(--surface);
      box-shadow: 0 1px 3px rgba(20, 18, 17, .12);
    }

    @keyframes iconPop {
      0% {
        transform: scale(.4) rotate(-50deg);
        opacity: 0;
      }

      60% {
        transform: scale(1.2) rotate(10deg);
        opacity: 1;
      }

      100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
      }
    }

    .theme-btn.active svg {
      animation: iconPop .4s cubic-bezier(.34, 1.56, .64, 1);
    }

    .page {
      display: none;
      animation: fade .25s ease;
    }

    .page.active {
      display: block;
    }

    @keyframes fade {
      from {
        opacity: 0;
        transform: translateY(4px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    h2 {
      font-size: 18px;
      font-weight: 700;
      margin: 0 0 16px;
      font-family: var(--font-head);
    }

    h3 {
      font-family: var(--font-head);
    }

    p {
      font-size: 14px;
      line-height: 1.6;
      color: var(--s700);
      margin: 0 0 10px;
    }

    .tag {
      display: inline-flex;
      border: 1px solid var(--s100);
      background: var(--s50);
      color: var(--s600);
      font-size: 12px;
      font-weight: 600;
      padding: 5px 10px;
      border-radius: 5px;
      margin: 0 6px 6px 0;
      font-family: var(--font-mono);
    }

    .grouplabel {
      font-size: 10px;
      font-weight: 700;
      letter-spacing: .15em;
      text-transform: uppercase;
      color: var(--s400);
      margin: 14px 0 8px;
      font-family: var(--font-mono);
    }

    .proj {
      border: 1px solid var(--s200);
      border-radius: 6px;
      padding: 16px;
      margin-bottom: 10px;
      transition: transform .15s ease, border-color .15s ease;
    }

    .proj:hover {
      border-color: var(--s400);
      transform: translateY(-2px);
    }

    .proj h3 {
      font-size: 14px;
      margin: 0 0 6px;
    }

    .proj p {
      font-size: 12px;
      color: var(--s500);
      margin: 0;
    }

    .proj-view {
      display: none;
    }

    .proj-view.active {
      display: block;
      animation: fade .25s ease;
    }

    .projg-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
    }

    .projg-card {
      border: 1px solid var(--s200);
      border-radius: 10px;
      overflow: hidden;
      transition: transform .15s ease, border-color .15s ease;
    }

    .projg-card:hover {
      border-color: var(--s400);
      transform: translateY(-2px);
    }

    .projg-img {
      position: relative;
      aspect-ratio: 16/9;
      display: flex;
      align-items: flex-end;
      padding: 10px 12px;
    }

    .projg-img::after {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, rgba(0, 0, 0, .6), transparent 65%);
    }

    .projg-tag {
      position: relative;
      z-index: 1;
      color: #fff;
      font-family: var(--font-head);
      font-weight: 700;
      font-size: 13px;
      letter-spacing: .02em;
    }

    .projg-body {
      padding: 12px 14px;
    }

    .projg-body h3 {
      font-size: 13px;
      margin: 0 0 6px;
    }

    .projg-body p {
      font-size: 12px;
      color: var(--s500);
      margin: 0;
    }

    @media (max-width:520px) {
      .projg-grid {
        grid-template-columns: 1fr;
      }
    }

    .xp {
      border-left: 2px solid var(--s200);
      padding-left: 16px;
      margin-bottom: 16px;
      position: relative;
    }

    .xp::before {
      content: "";
      position: absolute;
      left: -5px;
      top: 2px;
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--accent);
    }

    .xp-head {
      display: flex;
      justify-content: space-between;
      font-size: 14px;
      font-weight: 700;
    }

    .xp-head span {
      font-family: var(--font-mono);
    }

    .xp-sub {
      font-size: 12px;
      color: var(--s500);
      margin-top: 2px;
    }

    .cert {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 12px 0;
      border-bottom: 1px solid var(--s100);
    }

    .cert:last-child {
      border-bottom: none;
    }

    .cert>div>div:last-child {
      font-family: var(--font-mono);
    }

    .certs-head {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 14px;
      margin-bottom: 16px;
    }

    .certs-head h2 {
      margin: 0;
    }

    .cert-view-switch {
      position: relative;
      display: flex;
      gap: 2px;
      border: 1px solid var(--s200);
      border-radius: 8px;
      padding: 2px;
      background: var(--surface);
    }

    .view-switch-indicator {
      position: absolute;
      top: 2px;
      left: 2px;
      width: 30px;
      height: 30px;
      border-radius: 6px;
      background: var(--s100);
      transition: transform .25s cubic-bezier(.4, 0, .2, 1);
      z-index: 0;
    }

    .view-btn {
      position: relative;
      z-index: 1;
      width: 30px;
      height: 30px;
      border: none;
      background: none;
      color: var(--s600);
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 6px;
      cursor: pointer;
      transition: color .15s ease;
      padding: 0;
    }

    .view-btn svg {
      width: 15px;
      height: 15px;
    }

    .view-btn:hover {
      color: var(--s800);
    }

    .view-btn.active {
      color: var(--accent);
    }

    .cert-view {
      display: none;
    }

    .cert-view.active {
      display: block;
      animation: fade .25s ease;
    }

    /* B - card, image on top, verify floats on the image */
    .certb-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
    }

    .certb-card {
      border: 1px solid var(--s200);
      border-radius: 10px;
      overflow: hidden;
    }

    .certb-img {
      aspect-ratio: 4/3;
      background: var(--s100);
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--s400);
      font-size: 11px;
      overflow: hidden;
    }

    .certb-img img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .certb-body {
      padding: 12px 14px;
    }

    .certb-title {
      font-weight: 700;
      font-size: 13px;
    }

    .certb-meta {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      margin-top: 5px;
    }

    .certb-issuer {
      font-size: 10px;
      color: var(--s400);
      text-transform: uppercase;
      letter-spacing: .1em;
      font-family: var(--font-mono);
    }

    .certb-verify {
      background: var(--surface);
      border: 1px solid var(--s300);
      color: var(--s700);
      font-size: 10px;
      font-weight: 700;
      padding: 5px 10px;
      border-radius: 6px;
      cursor: pointer;
      flex-shrink: 0;
      transition: border-color .15s ease, color .15s ease;
      text-decoration: none;
      display: inline-block;
    }

    .certb-verify:hover {
      border-color: var(--s400);
      color: var(--s800);
    }

    @media (max-width:520px) {
      .certb-grid {
        grid-template-columns: 1fr;
      }
    }

    /* D - full-image cards, ribbon-style verify */
    .certd-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
    }

    .certd-card {
      position: relative;
      aspect-ratio: 4/5;
      border-radius: 10px;
      overflow: hidden;
    }

    .certd-bg {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      z-index: 0;
    }

    .certd-card::after {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, rgba(0, 0, 0, .65), transparent 60%);
    }

    .certd-verify {
      position: absolute;
      top: 0;
      right: 0;
      background: var(--accent);
      color: var(--surface);
      font-size: 9px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: .05em;
      padding: 4px 10px;
      border-radius: 0 0 0 8px;
      z-index: 3;
      cursor: pointer;
      border: none;
      text-decoration: none;
      display: inline-block;
    }

    .certd-text {
      position: absolute;
      left: 10px;
      bottom: 9px;
      z-index: 2;
      color: #fff;
    }

    .certd-text .certd-name {
      font-family: var(--font-head);
      font-weight: 700;
      font-size: 12px;
    }

    .certd-text .certd-issuer {
      color: rgba(255, 255, 255, .75);
      font-size: 10px;
      text-transform: uppercase;
      letter-spacing: .06em;
      font-family: var(--font-mono);
      margin-top: 2px;
    }

    .certd-badge {
      position: absolute;
      bottom: 10px;
      right: 10px;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      overflow: hidden;
      border: 2px solid rgba(255, 255, 255, .3);
      z-index: 3;
    }

    .certd-badge img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    @media (max-width:520px) {
      .certd-grid {
        grid-template-columns: 1fr;
      }
    }

    /* E - ticket stub, dashed divider */
    .certe-card {
      display: flex;
      border: 1px solid var(--s200);
      border-radius: 8px;
      overflow: hidden;
      margin-bottom: 12px;
    }

    .certe-img {
      width: 70px;
      flex-shrink: 0;
      position: relative;
      background: var(--s100);
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--s400);
      font-size: 10px;
      overflow: hidden;
    }

    .certe-img img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .certe-img::after {
      content: "";
      position: absolute;
      top: 0;
      bottom: 0;
      right: 0;
      border-right: 2px dashed var(--s300);
    }

    .certe-body {
      flex: 1;
      padding: 12px 78px 12px 14px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      position: relative;
    }

    .certe-verify {
      position: absolute;
      bottom: 10px;
      right: 12px;
      border: 1px solid var(--s300);
      background: var(--surface);
      color: var(--s700);
      font-size: 10px;
      font-weight: 700;
      padding: 5px 10px;
      border-radius: 6px;
      cursor: pointer;
      transition: border-color .15s ease, color .15s ease;
      text-decoration: none;
      display: inline-block;
    }

    .certe-verify:hover {
      border-color: var(--s400);
      color: var(--s800);
    }

    /* Services: two lead cards + compact list */
    .svc-ico {
      display: grid;
      place-items: center;
      flex-shrink: 0;
      color: var(--accent);
      background: var(--s50);
      border: 1px solid var(--s200);
    }

    .svc-ico svg {
      width: 18px;
      height: 18px;
    }

    .svc-hatch {
      position: absolute;
      right: -22px;
      top: -22px;
      width: 130px;
      height: 130px;
      background-image: repeating-linear-gradient(45deg, rgba(120, 113, 108, .24) 0 1px, transparent 1px 8px), repeating-linear-gradient(-45deg, rgba(120, 113, 108, .24) 0 1px, transparent 1px 8px);
      pointer-events: none;
      -webkit-mask-image: radial-gradient(circle at top right, #000 35%, transparent 75%);
      mask-image: radial-gradient(circle at top right, #000 35%, transparent 75%);
    }

    .svc-lead {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
    }

    .svc-big {
      position: relative;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      min-height: 220px;
      border: 1px solid var(--s200);
      border-radius: 12px;
      padding: 22px;
      background: var(--surface);
    }

    .svc-big>*:not(.svc-hatch) {
      position: relative;
    }

    .svc-big .svc-ico {
      width: 44px;
      height: 44px;
      border-radius: 11px;
      background: var(--accent);
      border-color: var(--accent);
      color: var(--surface);
      margin-bottom: auto;
    }

    .svc-big .svc-ico svg {
      width: 20px;
      height: 20px;
    }

    .svc-big h3 {
      font-size: 17px;
      margin: 22px 0 8px;
    }

    .svc-big p {
      font-size: 12.5px;
      line-height: 1.65;
      color: var(--s600);
      margin: 0;
    }

    .svc-list {
      border: 1px solid var(--s200);
      border-radius: 12px;
      overflow: hidden;
      background: var(--surface);
    }

    .svc-row {
      display: grid;
      grid-template-columns: 36px 1fr;
      gap: 14px;
      align-items: start;
      padding: 15px 16px;
      transition: background .2s ease;
    }

    .svc-row+.svc-row {
      border-top: 1px solid var(--s200);
    }

    .svc-row:hover {
      background: var(--s50);
    }

    .svc-row .svc-ico {
      width: 36px;
      height: 36px;
      border-radius: 9px;
    }

    .svc-row h3 {
      font-size: 13.5px;
      margin: 0 0 3px;
    }

    .svc-row p {
      font-size: 12px;
      line-height: 1.6;
      color: var(--s500);
      margin: 0;
    }

    @media (max-width:560px) {
      .svc-lead {
        grid-template-columns: 1fr;
      }

      .svc-big {
        min-height: 0;
      }
    }

    .mini-project-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 8px;
      margin-top: 2px;
    }

    .mini-project {
      position: relative;
      aspect-ratio: 4/5;
      border-radius: 8px;
      overflow: hidden;
    }

    .mini-project:not(.showcase-card)::after {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, rgba(0, 0, 0, .6), transparent 65%);
    }

    .mini-project-title {
      position: absolute;
      left: 8px;
      bottom: 7px;
      z-index: 1;
      color: #fff;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: .02em;
      font-family: var(--font-head);
      text-shadow: 0 1px 3px rgba(0, 0, 0, .5);
    }

    .showcase-card .mini-project-title {
      position: relative;
      left: 0;
      bottom: 0;
      text-shadow: 0 2px 4px rgba(0, 0, 0, .8);
    }

    /* Professional Showcase Cards */
    .showcase-card {
      border-radius: 12px;
      overflow: hidden;
      cursor: pointer;
      box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
      transition: transform .3s ease, box-shadow .3s ease;
    }

    .showcase-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 8px 16px rgba(0, 0, 0, .15);
    }

    .showcase-image {
      width: 100%;
      height: 100%;
      overflow: hidden;
      background: var(--s100);
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .showcase-image img {
      max-width: 100%;
      max-height: 100%;
      object-fit: contain;
      transition: transform .3s ease;
    }

    .showcase-card:hover .showcase-image img {
      transform: scale(1.05);
    }



    .showcase-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, rgba(0, 0, 0, .4), transparent 50%);
      display: flex;
      align-items: flex-end;
      padding: 12px;
      transition: background .3s ease;
    }

    .showcase-card:hover .showcase-overlay {
      background: linear-gradient(to top, rgba(0, 0, 0, .6), transparent 30%);
    }

    .showcase-content {
      width: 100%;
    }

    .showcase-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 4px;
      margin-top: 6px;
      opacity: 0;
      transform: translateY(10px);
      transition: opacity .3s ease, transform .3s ease;
    }

    .showcase-card:hover .showcase-tags {
      opacity: 1;
      transform: translateY(0);
    }

    .showcase-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 4px;
      margin-top: 6px;
    }

    .showcase-tag {
      background: rgba(0, 0, 0, .6);
      backdrop-filter: blur(4px);
      color: #fff;
      font-size: 9px;
      font-weight: 600;
      padding: 3px 8px;
      border-radius: 4px;
      font-family: var(--font-mono);
      border: 1px solid rgba(255, 255, 255, .2);
    }

    .mini-slider {
      margin-top: 4px;
    }

    .mini-slider-stage {
      position: relative;
      max-width: 320px;
      margin: 0 auto;
    }

    .mini-slider-viewport {
      aspect-ratio: 4/3;
      max-width: 320px;
      margin: 0 auto;
      background: var(--s100);
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--s400);
      font-size: 11px;
      overflow: hidden;
      position: relative;
    }

    .mini-slider-viewport span {
      position: relative;
      z-index: 2;
      background: rgba(0,0,0,0.5);
      padding: 2px 8px;
      border-radius: 4px;
      color: white;
    }

    .mini-slider-arrow {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      width: 22px;
      height: 22px;
      border-radius: 50%;
      background: var(--surface);
      border: 1px solid var(--s200);
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      color: var(--s600);
      font-size: 12px;
      line-height: 1;
      padding: 0;
    }

    .mini-slider-arrow:hover {
      background: var(--s50);
    }

    .mini-slider-arrow.prev {
      left: 6px;
    }

    .mini-slider-arrow.next {
      right: 6px;
    }

    .mini-slider-dots {
      display: flex;
      justify-content: center;
      gap: 5px;
      margin-top: 8px;
    }

    .mini-dot {
      width: 5px;
      height: 5px;
      border-radius: 50%;
      background: var(--s300);
      transition: background .15s ease;
    }

    .mini-dot.active {
      background: var(--s700);
    }

    .rec-slide-stage {
      position: relative;
      border: 1px solid var(--s200);
      border-radius: 8px;
      padding: 18px 40px;
    }

    .rec-quote-mark {
      color: var(--accent);
      font-size: 26px;
      font-weight: 800;
      line-height: 1;
      margin-bottom: 2px;
      font-family: var(--font-head);
    }

    .rec-content .rec-text {
      font-size: 13px;
      color: var(--s700);
      line-height: 1.55;
      margin: 0 0 20px;
    }

    .rec-person {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .rec-avatar {
      width: 28px;
      height: 28px;
      border-radius: 50%;
      background: var(--s200);
      color: var(--s600);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 11px;
      font-weight: 700;
      flex-shrink: 0;
    }

    .rec-name {
      font-size: 12px;
      font-weight: 700;
      color: var(--s800);
    }

    .rec-role {
      font-size: 11px;
      color: var(--s500);
    }

    .rec-content {
      transition: opacity .22s ease, transform .22s ease;
    }

    .rec-content.rec-fade {
      opacity: 0;
      transform: translateY(6px);
    }

    .chat-view {
      display: none;
    }

    .chat-view.active {
      display: block;
      animation: fade .25s ease;
    }

    .chat-join {
      max-width: 300px;
      margin: 0 auto;
      text-align: center;
    }

    .chat-join-title {
      font-family: var(--font-head);
      font-weight: 800;
      font-size: 16px;
      color: var(--s800);
      margin-bottom: 4px;
    }

    .chat-join-sub {
      font-size: 12px;
      color: var(--s500);
      margin-bottom: 20px;
    }

    .chat-join-input {
      width: 100%;
      box-sizing: border-box;
      padding: 10px 0;
      border: none;
      border-bottom: 1.5px solid var(--s300);
      border-radius: 0;
      font-size: 14px;
      margin-bottom: 6px;
      font-family: var(--font-body);
      background: transparent;
      color: var(--s800);
      transition: border-color .15s ease;
      appearance: none;
      -webkit-appearance: none;
    }

    .chat-join-error {
      min-height: 15px;
      margin-bottom: 14px;
      font-size: 11px;
      font-weight: 600;
      color: #c0392b;
      text-align: left;
    }

    [data-theme="dark"] .chat-join-error {
      color: #e57373;
    }

    .chat-join-input:focus {
      outline: none;
      border-bottom-color: var(--accent);
    }

    .chat-join-btn {
      width: 100%;
      background: var(--s800);
      color: var(--surface);
      border: none;
      padding: 11px;
      border-radius: 6px;
      font-weight: 700;
      font-size: 13px;
      cursor: pointer;
      transition: opacity .15s ease;
    }

    .chat-join-btn:hover {
      opacity: .85;
    }

    .chat-room {
      border: 1px solid var(--s200);
      border-radius: 10px;
      overflow: hidden;
      display: flex;
      flex-direction: column;
    }

    .chat-room-head {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 14px 16px;
      border-bottom: 1px solid var(--s200);
    }

    .chat-room-left {
      display: flex;
      flex-direction: column;
      gap: 4px;
    }

    .chat-room-right {
      display: flex;
      align-items: center;
    }

    .chat-room-title {
      font-weight: 700;
      font-size: 13px;
      color: var(--s800);
    }

    .chat-online {
      font-size: 10px;
      color: var(--s500);
      font-family: var(--font-mono);
    }

    .chat-online-dot {
      display: none;
    }

    .chat-message-count {
      font-size: 10px;
      color: var(--s500);
      font-family: var(--font-mono);
      margin-left: auto;
    }

    .chat-messages {
      max-height: 50vh;
      max-height: 50dvh;
      overflow-y: auto;
      padding: 16px;
      display: flex;
      flex-direction: column;
      gap: 14px;
      scrollbar-width: thin;
      scrollbar-color: var(--s300) transparent;
    }

    .chat-messages::-webkit-scrollbar {
      width: 6px;
    }

    .chat-messages::-webkit-scrollbar-track {
      background: transparent;
    }

    .chat-messages::-webkit-scrollbar-thumb {
      background: var(--s300);
      border-radius: 3px;
    }

    .chat-messages::-webkit-scrollbar-thumb:hover {
      background: var(--s400);
    }

    .chat-msg {
      display: flex;
      gap: 10px;
    }

    .chat-msg-avatar {
      position: relative;
      overflow: hidden;
      width: 26px;
      height: 26px;
      border-radius: 50%;
      background: var(--s200);
      color: var(--s600);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 11px;
      font-weight: 700;
      flex-shrink: 0;
    }

    .chat-msg-avatar img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .chat-msg.me .chat-msg-avatar {
      background: var(--accent);
      color: var(--surface);
    }

    .chat-msg-meta {
      display: flex;
      gap: 6px;
      align-items: baseline;
      flex-wrap: wrap;
    }

    .chat-msg-name {
      font-weight: 700;
      font-size: 11.5px;
      color: var(--s800);
    }

    .chat-msg-time {
      font-size: 9.5px;
      color: var(--s400);
      font-family: var(--font-mono);
    }

    .chat-msg-location {
      font-size: 10px;
      color: var(--s500);
      font-weight: 500;
    }

    .chat-msg-device {
      display: flex;
      align-items: center;
      color: var(--s500);
    }

    .chat-msg-device svg {
      width: 10px;
      height: 10px;
    }

    .chat-msg-text {
      font-size: 12.5px;
      color: var(--s700);
      margin-top: 2px;
      overflow-wrap: break-word;
      word-break: break-word;
      line-height: 1.5;
      max-width: 100%;
    }

    @media (max-width: 480px) {
      .chat-messages {
        padding: 12px;
        gap: 12px;
        scrollbar-width: thin;
        scrollbar-color: var(--s300) transparent;
      }

      .chat-messages::-webkit-scrollbar {
        width: 4px;
      }

      .chat-messages::-webkit-scrollbar-track {
        background: transparent;
      }

      .chat-messages::-webkit-scrollbar-thumb {
        background: var(--s300);
        border-radius: 2px;
      }

      .chat-msg {
        gap: 8px;
      }

      .chat-msg-avatar {
        width: 24px;
        height: 24px;
        font-size: 10px;
      }

      .chat-msg-meta {
        gap: 4px;
      }

      .chat-msg-name {
        font-size: 11px;
      }

      .chat-msg-location {
        font-size: 9px;
      }

      .chat-msg-text {
        font-size: 12px;
      }
    }

    @media (min-width: 768px) {
      .chat-messages {
        max-height: 55vh;
        max-height: 55dvh;
      }

      .chat-msg-text {
        font-size: 13px;
      }
    }

    @media (min-width: 1024px) {
      .chat-messages {
        max-height: 60vh;
        max-height: 60dvh;
      }

      .chat-msg-text {
        font-size: 13.5px;
      }
    }

    .chat-input-row {
      display: flex;
      align-items: center;
      gap: 4px;
      padding: 0 16px;
      border-top: 1px solid var(--s200);
    }

    .chat-msg-input {
      flex: 1;
      min-width: 0;
      padding: 13px 0;
      border: none;
      border-radius: 0;
      font-size: 12.5px;
      font-family: var(--font-body);
      background: transparent;
      color: var(--s800);
      appearance: none;
      -webkit-appearance: none;
    }

    @media (max-width: 480px) {
      .chat-input-row {
        padding: 0 12px;
      }

      .chat-msg-input {
        font-size: 12px;
        padding: 11px 0;
      }
    }

    @media (min-width: 768px) {
      .chat-msg-input {
        font-size: 13px;
      }
    }

    .chat-msg-input:focus {
      outline: none;
    }

    .chat-send-btn {
      background: none;
      border: none;
      color: var(--accent);
      font-weight: 700;
      font-size: 12px;
      cursor: pointer;
      padding: 4px 4px 4px 8px;
      flex-shrink: 0;
    }

    .chat-send-btn:hover {
      opacity: .75;
    }

    .gallerygrid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 8px;
    }

    .gallery-masonry {
      display: flex;
      gap: 8px;
    }

    .masonry-col {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 8px;
      min-width: 0;
    }

    .gallery-masonry .ph {
      width: 100%;
      flex-shrink: 0;
      min-height: 0;
    }

    .gallery-masonry .ph img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
    }

    .ph {
      aspect-ratio: 1;
      min-height: 100px;
      background: var(--s100);
      border: 1px dashed var(--s300);
      border-radius: 6px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--s400);
      font-size: 11px;
      overflow: hidden;
    }

    .ph img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
    }

    .empty {
      text-align: center;
      padding: 36px 0;
      color: var(--s500);
      font-size: 13px;
      font-weight: 600;
    }

    .status-line {
      display: flex;
      align-items: center;
      gap: 9px;
      font-size: 12px;
      font-weight: 600;
      color: var(--s600);
      margin: 0 0 20px;
      font-family: var(--font-mono);
    }

    .about-lead {
      font-size: 16px;
      font-weight: 500;
      color: var(--s800);
      line-height: 1.65;
      margin: 0 0 16px;
    }

    #about {
      font-family: var(--font-mono);
    }

    #about h2 {
      font-family: var(--font-mono);
    }

    .package-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 12px;
      margin-top: 14px;
    }

    .package-card {
      border: 1px solid var(--s200);
      border-radius: 8px;
      padding: 16px;
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .package-name {
      font-family: var(--font-head);
      font-weight: 700;
      font-size: 14px;
    }

    .package-price {
      font-family: var(--font-mono);
      font-weight: 700;
      font-size: 18px;
      color: var(--accent);
    }

    .package-price span {
      font-size: 10px;
      color: var(--s500);
      font-weight: 600;
      font-family: var(--font-body);
    }

    .package-desc {
      font-size: 11px;
      color: var(--s600);
      line-height: 1.5;
      margin: 0;
    }

    .package-features {
      list-style: none;
      padding: 0;
      margin: 2px 0 0;
      display: flex;
      flex-direction: column;
      gap: 5px;
    }

    .package-features li {
      font-size: 11px;
      color: var(--s700);
      display: flex;
      gap: 6px;
      align-items: flex-start;
    }

    .tlb-wrap {
      position: relative;
      padding: 4px 0;
    }

    .tlb-wrap::before {
      content: "";
      position: absolute;
      left: 19px;
      transform: translateX(-50%);
      top: var(--line-top, 25px);
      bottom: 6px;
      width: 2.5px;
      border-radius: 2px;
      background: linear-gradient(var(--accent), var(--s300) 65%);
    }

    .tlb-item {
      display: flex;
      align-items: center;
      gap: 14px;
      position: relative;
      margin-bottom: 16px;
    }

    .tlb-item:last-child {
      margin-bottom: 0;
    }

    .tlb-icon {
      width: 38px;
      height: 38px;
      border-radius: 50%;
      background: var(--surface);
      border: 1px solid var(--s200);
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      z-index: 1;
      color: var(--s500);
      transition: background .2s ease, border-color .2s ease, color .2s ease;
    }

    .tlb-icon svg {
      width: 17px;
      height: 17px;
    }

    .tlb-icon.current {
      background: var(--accent);
      border-color: var(--accent);
      color: var(--surface);
    }

    .tlb-card {
      flex: 1;
      background: var(--surface);
      border: 1px solid var(--s200);
      border-radius: 8px;
      padding: 13px 16px;
      min-width: 0;
      transition: border-color .2s ease;
    }

    .tlb-card:hover {
      border-color: var(--s400);
    }

    .tlb-head-row {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 8px;
    }

    .tlb-card .tl-head {
      font-weight: 700;
      font-size: 13px;
    }

    .tlb-badge {
      font-size: 9px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: .04em;
      color: var(--surface);
      background: var(--accent);
      padding: 2px 8px;
      border-radius: 20px;
    }

    .tlb-card .tl-sub {
      font-size: 11px;
      color: var(--s500);
      margin-top: 3px;
    }

    .tlb-card .tl-desc {
      font-size: 12px;
      color: var(--s600);
      margin-top: 8px;
      line-height: 1.6;
    }

    @media (max-width:520px) {
      .tlb-icon {
        width: 32px;
        height: 32px;
      }

      .tlb-icon svg {
        width: 15px;
        height: 15px;
      }

      .tlb-card {
        padding: 11px 13px;
      }

      .tlb-wrap::before {
        left: 16px;
      }

      .modal-overlay {
        padding: 10px;
      }

      .modal-box {
        padding: 16px;
      }

      .chat-join-input {
        font-size: 16px;
      }

      .chat-msg-input {
        font-size: 16px;
      }

      .chat-messages {
        max-height: 45vh;
        max-height: 45dvh;
        padding: 12px;
        gap: 12px;
      }

      .chat-room-head {
        padding: 10px 12px;
      }

      .chat-input-row {
        padding: 0 12px;
        gap: 4px;
      }
    }

    .package-features li::before {
      content: "—";
      color: var(--accent);
      flex-shrink: 0;
    }

    .proj-actions {
      display: flex;
      justify-content: flex-end;
      gap: 8px;
      margin-top: 10px;
    }

    .proj-actions .btn {
      padding: 5px 10px;
      font-size: 10px;
    }

    .modal-overlay {
      position: fixed;
      inset: 0;
      background: rgba(20, 18, 17, .75);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 50;
      padding: 20px;
    }

    .modal-overlay.open {
      display: flex;
    }

    .modal-box {
      position: relative;
      background: var(--surface);
      border-radius: 12px;
      padding: 22px;
      max-width: 90vw;
      width: 100%;
      max-height: 85vh;
      max-height: 85dvh;
      overflow-y: auto;
    }

    @media (min-width: 768px) {
      .modal-box {
        max-width: 500px;
      }
    }

    @media (min-width: 1024px) {
      .modal-box {
        max-width: 600px;
      }
    }

    @media (min-width: 1280px) {
      .modal-box {
        max-width: 700px;
      }
    }

    .modal-close {
      position: absolute;
      top: 12px;
      right: 12px;
      width: 28px;
      height: 28px;
      border-radius: 50%;
      border: 1px solid var(--s200);
      background: var(--surface);
      cursor: pointer;
      font-size: 16px;
      line-height: 1;
      color: var(--s600);
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 0;
    }

    .modal-title {
      font-family: var(--font-head);
      font-size: 16px;
      font-weight: 700;
      margin: 0 26px 12px 0;
    }

    .modal-slider {
      position: relative;
      margin-bottom: 2px;
    }

    .modal-slide-viewport {
      aspect-ratio: 16/9;
      max-height: 300px;
      width: 100%;
      background: var(--s100);
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--s400);
      font-size: 12px;
      overflow: hidden;
      position: relative;
    }

    /* keeps rounded corners clipping the sliding layers (Safari) */
    .modal-slide-viewport,
    .mini-slider-viewport {
      isolation: isolate;
    }

    .modal-slide,
    .mini-slide {
      position: absolute;
      inset: 0;
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      transition: transform .45s cubic-bezier(.4, 0, .2, 1);
      will-change: transform;
    }

    @media (prefers-reduced-motion: reduce) {
      .modal-slide,
      .mini-slide {
        transition: none;
      }
    }

    .modal-slide-info {
      position: absolute;
      bottom: 8px;
      left: 8px;
      background: rgba(0, 0, 0, 0.6);
      color: white;
      padding: 4px 8px;
      border-radius: 4px;
      font-size: 11px;
      font-weight: 600;
      z-index: 1;
    }

    /* Real SVG chevrons instead of text glyphs or a rotated border-corner —
       an SVG polyline centers exactly via the button's flexbox, with no
       font-metric or rotation-offset guesswork. Scoped to the project
       modal only. */
    #modalPrev svg,
    #modalNext svg {
      width: 14px;
      height: 14px;
    }

    .modal-desc {
      font-size: 12px;
      color: var(--s600);
      line-height: 1.6;
      margin-top: 12px;
    }

    .modal-tech {
      margin-top: 16px;
      padding-top: 12px;
      border-top: 1px solid var(--s200);
    }

    .modal-tech-label {
      font-size: 10px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: .06em;
      color: var(--s400);
      font-family: var(--font-mono);
      margin-bottom: 10px;
    }

    .modal-tech-grid {
      display: flex;
      flex-wrap: wrap;
      gap: 8px 16px;
    }

    .modal-tech-tag {
      display: flex;
      align-items: center;
      gap: 7px;
      font-size: 12px;
      font-weight: 600;
      color: var(--s700);
    }

    .modal-tech-tag svg {
      width: 14px;
      height: 14px;
      color: var(--accent);
      flex-shrink: 0;
    }

    .modal-tech-tag img.tech-icon {
      width: 14px;
      height: 14px;
      flex-shrink: 0;
      vertical-align: middle;
    }

    /* Dark theme icon color adjustment */
    [data-theme="dark"] .modal-tech-tag img.tech-icon {
      filter: brightness(0) invert(1);
    }

    [data-theme="dark"] .modal-tech-tag svg {
      color: var(--accent);
    }

    .brief-list {
      position: relative;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      margin-top: 8px;
    }

    .brief-row {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 10px;
      font-size: 12px;
      color: var(--s700);
      padding: 8px 15px;
      border-top: 1px solid var(--s200);
      border-bottom: 1px solid var(--s200);
    }

    .brief-row+.brief-row {
      margin-top: -1px;
    }

    .brief-row span:last-child {
      color: var(--s400);
      font-family: var(--font-mono);
      flex-shrink: 0;
    }

    .brief-list::before,
    .brief-list::after {
      content: "";
      position: absolute;
      width: 44px;
      height: 44px;
      background-image: repeating-linear-gradient(45deg, rgba(87, 83, 75, .18) 0 1px, transparent 1px 6px), repeating-linear-gradient(-45deg, rgba(87, 83, 75, .18) 0 1px, transparent 1px 6px);
      pointer-events: none;
      z-index: 0;
    }

    .brief-list::before {
      top: -12px;
      right: -12px;
      -webkit-mask-image: radial-gradient(circle at top right, #000 40%, transparent 78%);
      mask-image: radial-gradient(circle at top right, #000 40%, transparent 78%);
    }

    .brief-list::after {
      bottom: -12px;
      left: -12px;
      -webkit-mask-image: radial-gradient(circle at bottom left, #000 40%, transparent 78%);
      mask-image: radial-gradient(circle at bottom left, #000 40%, transparent 78%);
    }

    .brief-row {
      position: relative;
      z-index: 1;
    }

    .stat-row {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      border-top: 1px solid var(--s200);
      margin-bottom: 14px;
    }

    .stat-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      padding: 16px 8px;
      border-right: 1px solid var(--s200);
    }

    .stat-item:last-child {
      border-right: none;
    }

    .stat-num {
      font-size: 24px;
      font-weight: 700;
      color: var(--s800);
      font-family: var(--font-mono);
      margin-bottom: 4px;
    }

    .stat-label {
      font-size: 11px;
      color: var(--s500);
      text-transform: uppercase;
      letter-spacing: .05em;
    }

    .gh-wrap {
      overflow-x: auto;
      padding-bottom: 4px;
    }

    .home-summary-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 10px;
    }

    .summary-card {
      border: none;
      border-radius: 6px;
      padding: 14px 16px;
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .summary-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
    }

    .summary-card h3 {
      font-size: 13px;
      margin: 0;
    }

    .summary-card p {
      font-size: 12px;
      color: var(--s500);
      margin: 0;
      line-height: 1.5;
      padding-left: 15px;
    }

    .summary-card>div:not(.summary-head) {
      padding-left: 15px;
    }

    .viewall {
      flex-shrink: 0;
      background: none;
      border: none;
      color: var(--accent);
      font-size: 12px;
      font-weight: 700;
      cursor: pointer;
      padding: 0;
      display: inline-flex;
      align-items: center;
      gap: 4px;
    }

    .viewall .arrow {
      display: inline-block;
      transition: transform .15s ease;
    }

    .viewall:hover .arrow {
      transform: translateX(3px);
    }

    .mobile-topbar {
      display: none;
    }

    .burger-btn {
      width: 36px;
      height: 36px;
      border-radius: 8px;
      border: 1px solid var(--s200);
      background: var(--surface);
      align-items: center;
      justify-content: center;
      cursor: pointer;
      color: var(--s700);
      padding: 0;
    }

    .burger-btn svg {
      width: 18px;
      height: 18px;
    }

    @media (max-width:700px) {
      .shell {
        flex-direction: column;
      }

      .mobile-topbar {
        display: flex;
        align-items: center;
        padding: 14px 16px;
        border-bottom: 1px solid var(--s200);
      }

      .mobile-topbar.sticky-home {
        position: sticky;
        top: 0;
        z-index: 15;
        background: var(--s50);
      }

      .mobile-topbar.sticky-home+.rail {
        position: sticky;
        top: 65px;
        z-index: 14;
        background: var(--s50);
      }

      .burger-btn {
        display: flex;
      }

      .chat-trigger {
        display: none;
      }

      .chat-fab {
        display: flex;
        align-items: center;
        gap: 6px;
        position: fixed;
        bottom: 18px;
        right: 18px;
        padding: 12px 16px;
        border-radius: 30px;
        background: var(--surface);
        color: var(--s700);
        border: 1px solid var(--s200);
        box-shadow: 0 4px 18px rgba(0, 0, 0, .18);
        cursor: pointer;
        z-index: 40;
        font-size: 12px;
        font-weight: 700;
        white-space: nowrap;
        transition: transform .15s ease, border-color .15s ease;
      }

      .chat-fab:active {
        transform: scale(.96);
      }

      .chat-fab svg {
        width: 16px;
        height: 16px;
        flex-shrink: 0;
        transform-origin: 50% 0;
        animation: chatSwing 4s ease-in-out infinite;
      }

      .rail {
        position: relative;
        width: 100%;
        height: auto;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        flex-direction: column;
        border-right: none;
        border-bottom: 1px solid transparent;
        padding: 0 16px;
        gap: 1px;
        transition: max-height .32s ease, opacity .25s ease, border-color .32s ease;
      }

      .rail.open {
        max-height: 600px;
        opacity: 1;
        padding: 8px 16px 14px;
        border-bottom-color: var(--s200);
      }

      .navlink {
        border-left: 2px solid transparent;
        border-bottom: none;
        padding: 10px 4px;
      }

      .navlink:hover {
        padding-left: 6px;
      }

      .nav-scroll {
        max-height: 156px;
        overflow-y: auto;
      }

      main {
        padding: 20px 14px 40px;
      }

      .back-btn {
        font-size: 12px;
        padding: 6px 0;
        margin-bottom: 10px;
      }

      .back-btn svg {
        width: 14px;
        height: 14px;
      }

      .card {
        padding: 16px;
      }

      .avatar {
        width: 130px;
        height: 130px;
        font-size: 20px;
      }

      .avatar-img {
        width: 130px;
        height: 130px;
      }

      .name-row {
        font-size: 18px;
      }

      .stat-row {
        grid-template-columns: 1fr;
      }

      .stat-item {
        border-right: none;
        border-bottom: 1px solid var(--s200);
      }

      .stat-item:last-child {
        border-bottom: none;
      }

      .mini-project-grid {
        gap: 6px;
      }

      .showcase-overlay {
        padding: 10px;
      }

      .showcase-tag {
        font-size: 8px;
        padding: 2px 6px;
      }

      .mini-project-title {
        font-size: 10px;
      }

      .mini-slider-arrow {
        width: 30px;
        height: 30px;
        font-size: 15px;
      }

      .rec-slide-stage {
        padding: 16px 44px;
      }

      .hero-wrap {
        padding: 12px 12px 20px;
      }

      .gallerygrid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
      }

      .gallery-masonry {
        gap: 10px;
      }

      .masonry-col {
        gap: 10px;
      }

      .package-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @media (max-width:420px) {
      .mini-project {
        aspect-ratio: 1/1;
      }

      .mini-project-title {
        font-size: 10px;
      }

      .mini-project-grid {
        grid-template-columns: 1fr;
        gap: 8px;
      }

      .showcase-overlay {
        padding: 8px;
      }

      .showcase-tag {
        font-size: 7px;
        padding: 2px 5px;
      }

      .gallerygrid {
        grid-template-columns: 1fr;
        gap: 10px;
      }

      .gallery-masonry {
        gap: 6px;
      }

      .masonry-col {
        gap: 6px;
      }

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