    *, *::before, *::after {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    body {
      font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
      background: #000;
      color: #f5f5f7;
      min-height: 100vh;
    }

    /* ── Nav ── */
    nav {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 9999;
      height: 44px;
      background: rgba(0, 0, 0, 0.85);
      backdrop-filter: saturate(180%) blur(20px);
      -webkit-backdrop-filter: saturate(180%) blur(20px);
      border-bottom: none; /* SVG handles the bottom border */
    }

    /* Mobile dropdown menu (hidden on desktop) */
    .nav-drawer {
      position: fixed;
      top: 44px;
      left: 0;
      right: 0;
      display: none;
      flex-direction: column;
      background: rgba(0,0,0,0.95);
      backdrop-filter: saturate(180%) blur(20px);
      -webkit-backdrop-filter: saturate(180%) blur(20px);
      border-bottom: 1px solid rgba(255,255,255,0.1);
      padding: 6px 0;
      z-index: 9998;
      opacity: 0;
      visibility: hidden;
      transform: translateY(-8px);
      transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    }
    .nav-drawer.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
    .nav-drawer a {
      color: rgba(245,245,247,0.9);
      text-decoration: none;
      font-size: 15px;
      letter-spacing: -0.01em;
      padding: 14px 24px;
    }
    .nav-drawer a:active { background: rgba(255,255,255,0.08); }

    /* Soft fade below the nav so its dark blurred edge dissolves into the
       page instead of leaving a hard horizontal seam over the hero. */
    nav::after {
      content: '';
      position: absolute;
      left: 0;
      right: 0;
      top: 100%;
      height: 40px;
      background: linear-gradient(to bottom, rgba(0,0,0,0.85), rgba(0,0,0,0));
      pointer-events: none;
      z-index: -1;
    }

    nav ul {
      list-style: none;
      display: flex;
      align-items: center;
      justify-content: center;
      height: 100%;
      gap: 0;
      max-width: 980px;
      margin: 0 auto;
      padding: 0 22px;
    }

    nav ul li {
      flex: 1;
      display: flex;
      justify-content: center;
    }

    nav ul li a {
      display: inline-block;
      font-size: 12px;
      font-weight: 400;
      letter-spacing: -0.01em;
      color: rgba(245, 245, 247, 0.8);
      text-decoration: none;
      padding: 0 8px;
      line-height: 44px;
      white-space: nowrap;
      transition: color 0.15s ease;
    }

    nav ul li a:hover {
      color: #f5f5f7;
    }

    /* "Menu" styled like Apple's hamburger label */
    nav ul li:first-child a {
      display: flex;
      align-items: center;
      gap: 5px;
      color: rgba(245, 245, 247, 0.8);
    }

    nav ul li:first-child a svg {
      width: 17px;
      height: 17px;
      fill: currentColor;
      flex-shrink: 0;
    }

    /* ── Hero ── */
    .hero {
      margin-top: 44px;
      height: calc(100vh - 44px);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      background: linear-gradient(to bottom,
        rgba(0,0,0,0.15) 0%,
        rgba(0,0,0,0.15) 78%,
        #0a0a0a 100%);
      text-align: center;
      padding: 0 20px;
    }

    .hero-eyebrow {
      font-size: 17px;
      font-weight: 600;
      letter-spacing: -0.01em;
      color: #27fbf0;
      margin-bottom: 8px;
    }

    .hero-photo {
      width: 160px;
      height: 160px;
      border-radius: 50%;
      overflow: hidden;
      margin-bottom: 32px;
      border: 2px solid rgba(255,255,255,0.15);
      box-shadow: 0 12px 40px rgba(0,0,0,0.5);
      flex-shrink: 0;
    }

    .hero-photo img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .hero-headline {
      font-size: clamp(20px, 2.8vw, 31px);
      font-weight: 700;
      letter-spacing: -0.025em;
      line-height: 1.1;
      max-width: 800px;
      background: linear-gradient(135deg, #fff 30%, #888 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      margin-bottom: 28px;
    }

    .hero-sub {
      font-size: clamp(16px, 2.2vw, 19px);
      font-weight: 400;
      color: #86868b;
      letter-spacing: -0.01em;
      max-width: 640px;
      line-height: 1.6;
    }

    .hero-name {
      font-size: clamp(28px, 4vw, 44px);
      font-weight: 700;
      letter-spacing: -0.02em;
      color: #fff;
      line-height: 1.1;
      margin-bottom: 6px;
    }

    .hero-headline-blue {
      background: none;
      -webkit-text-fill-color: #27fbf0;
      color: #27fbf0;
    }

    .hero-keywords {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 10px;
      margin-bottom: 28px;
    }

    .hero-keywords span {
      font-size: 13px;
      font-weight: 500;
      letter-spacing: 0.01em;
      color: #c7c7cc;
      padding: 7px 16px;
      border: 1px solid rgba(39,251,240,0.45);
      background: rgba(39,251,240,0.08);
      clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
    }

    .hero-sub + .hero-sub {
      margin-top: 18px;
    }

    .hero-cta {
      margin-top: 36px;
      display: grid;
      grid-template-columns: auto auto;
      gap: 14px;
      justify-content: center;
    }
    /* View Reel sits on top, spanning the full width of the two buttons below */
    .hero-cta .btn-primary {
      grid-column: 1 / -1;
      padding: 17px 30px;
      font-size: 19px;
      font-weight: 500;
      text-align: center;
    }
    .hero-cta .btn { white-space: nowrap; }

    @media (max-width: 340px) {
      .hero-cta { grid-template-columns: 1fr; }
      .hero-cta .btn-primary { grid-column: auto; }
    }

    .btn {
      display: inline-block;
      padding: 12px 26px;
      border-radius: 980px;
      font-size: 17px;
      font-weight: 400;
      letter-spacing: -0.01em;
      text-decoration: none;
      transition: opacity 0.15s ease;
    }

    .btn:hover { opacity: 0.85; }

    .btn-primary {
      background: #27fbf0;
      color: #06201f;
    }

    .btn-secondary {
      background: transparent;
      color: #27fbf0;
      border: 1px solid #27fbf0;
    }

    .btn-resume {
      display: inline-flex;
      align-items: center;
      gap: 9px;
    }
    .btn-icon {
      width: 17px;
      height: 17px;
      fill: currentColor;
      flex-shrink: 0;
    }

    /* ── Sections ── */
    .section {
      scroll-margin-top: 44px;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 80px 20px;
      border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .section:nth-child(odd) {
      background: #000;
    }

    .section:nth-child(even) {
      background: #0a0a0a;
    }

    .section-label {
      font-size: 13px;
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: #27fbf0;
      margin-bottom: 16px;
    }

    .section-title {
      font-size: clamp(36px, 5vw, 60px);
      font-weight: 700;
      letter-spacing: -0.025em;
      line-height: 1.1;
      background: linear-gradient(135deg, #fff 30%, #888 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      margin-bottom: 20px;
    }

    .section-body {
      font-size: 17px;
      font-weight: 400;
      color: #6e6e73;
      letter-spacing: -0.01em;
      max-width: 540px;
      line-height: 1.6;
    }

    /* ── About override ── */
    #about {
      display: block;
      text-align: left;
      padding: 80px 0 0;
      background: #111;
    }

    .about-inner {
      max-width: 1060px;
      margin: 0 auto;
      padding: 0 40px;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 36px;
      align-items: center;
    }

    .about-photo {
      width: 100%;
      aspect-ratio: 3 / 4;
      background: #2a2a2a;
      border-radius: 6px;
      overflow: hidden;
    }

    .about-photo img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .about-photo-placeholder {
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #48484a;
      font-size: 13px;
      letter-spacing: 0.06em;
      text-transform: uppercase;
    }

    .about-card {
      background: #1c1c1e;
      border-radius: 10px;
      padding: 52px 44px;
      align-self: stretch;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }

    .about-card h2 {
      font-size: clamp(40px, 5vw, 56px);
      font-weight: 700;
      letter-spacing: -0.02em;
      color: #f5f5f7;
      margin-bottom: 24px;
    }

    .about-card p {
      font-size: 16px;
      line-height: 1.75;
      color: #aeaeb2;
      margin-bottom: 32px;
    }

    .about-card p em {
      font-style: italic;
      color: #c7c7cc;
    }

    .about-download {
      display: inline-block;
      font-size: 15px;
      font-weight: 600;
      color: #f5f5f7;
      text-decoration: none;
      border-bottom: 1px solid rgba(245, 245, 247, 0.35);
      padding-bottom: 3px;
      transition: border-color 0.15s ease;
    }

    .about-download:hover {
      border-color: #f5f5f7;
    }

    .about-footer {
      max-width: 1060px;
      margin: 48px auto 0;
      padding: 24px 40px 48px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .about-contact {
      display: inline-block;
      font-size: 12px;
      font-weight: 600;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: #f5f5f7;
      text-decoration: none;
      border: 1px solid rgba(245, 245, 247, 0.4);
      padding: 10px 22px;
      border-radius: 2px;
      transition: background 0.15s ease, border-color 0.15s ease;
    }

    .about-contact:hover {
      background: rgba(245, 245, 247, 0.06);
      border-color: rgba(245, 245, 247, 0.7);
    }

    .about-socials {
      display: flex;
      gap: 8px;
    }

    .about-socials a {
      width: 38px;
      height: 38px;
      background: #2c2c2e;
      border-radius: 6px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #f5f5f7;
      text-decoration: none;
      transition: background 0.15s ease;
    }

    .about-socials a:hover {
      background: #3a3a3c;
    }

    .about-socials svg {
      width: 16px;
      height: 16px;
      fill: currentColor;
    }

    @media (max-width: 700px) {
      /* Collapse nav to: Menu (hamburger) + centered logo; rest in dropdown */
      nav .nav-menu-item { display: flex !important; }
      .nav-list-left li:not(.nav-menu-item),
      .nav-list-right { display: none !important; }
      .nav-drawer { display: flex; }

      .about-inner {
        grid-template-columns: 1fr;
        padding: 0 20px;
      }
      .about-photo {
        aspect-ratio: 4 / 3;
      }
      .about-card {
        padding: 36px 28px;
      }
      .about-footer {
        padding: 24px 20px 40px;
      }
    }

    /* ── Portfolio Cards ── */
    #portfolio {
      background: #0d0d0d;
      overflow: visible;
      padding-bottom: 80px;
    }

    .card-stage {
      width: 100%;
      perspective: 1600px;
      perspective-origin: 50% 55%;
      margin-top: 56px;
    }

    .card-strip {
      display: flex;
      justify-content: center;
      align-items: flex-end;
      gap: 10px;
      padding: 20px 40px 70px;
      transform-style: preserve-3d;
    }

    .proj-col {
      flex: 0 0 185px;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 14px;
    }

    .card-title-top {
      font-size: 14px;
      font-weight: 700;
      letter-spacing: -0.01em;
      line-height: 1.25;
      color: #fff;
      text-align: center;
      min-height: 2.5em;
      display: flex;
      align-items: flex-end;
      justify-content: center;
    }

    .proj-card {
      width: 185px;
      height: 300px;
      border-radius: 12px;
      position: relative;
      display: block;
      text-decoration: none;
      color: inherit;
      cursor: pointer;
      transform: rotateY(var(--ry)) translateX(var(--tx)) scale(var(--sc));
      transform-origin: bottom center;
      will-change: transform;
      transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1),
                  box-shadow 0.3s ease;
      box-shadow:
        0 24px 64px rgba(0,0,0,0.7),
        0 8px 20px rgba(0,0,0,0.5),
        inset 0 1px 0 rgba(255,255,255,0.06);
      overflow: hidden;
      background: var(--bg);
      background-size: cover;
      background-position: center;
      outline: none;
    }

    .proj-card:hover,
    .proj-card:focus-visible {
      transform: rotateY(var(--ry)) translateX(var(--tx)) translateY(-8px) scale(calc(var(--sc) + 0.05));
      box-shadow:
        0 40px 90px rgba(0,0,0,0.8),
        0 16px 36px rgba(0,0,0,0.6),
        inset 0 1px 0 rgba(255,255,255,0.1);
      z-index: 20;
    }

    .proj-col:nth-child(3) .proj-card { z-index: 5; }

    .card-shine {
      position: absolute;
      inset: 0;
      background: linear-gradient(135deg, rgba(255,255,255,0.10) 0%, transparent 55%);
      pointer-events: none;
      border-radius: inherit;
    }

    .card-content {
      position: absolute;
      inset: 0;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      padding: 18px 16px 14px;
      background: linear-gradient(to bottom, rgba(0,0,0,0.0) 40%, rgba(0,0,0,0.65) 100%);
    }

    .card-title {
      font-size: 17px;
      font-weight: 800;
      letter-spacing: -0.01em;
      color: #fff;
      text-shadow: 0 2px 10px rgba(0,0,0,0.6);
      line-height: 1.15;
    }

    .card-tag {
      font-size: 10px;
      font-weight: 600;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: rgba(255,255,255,0.55);
    }

    /* ── Project Detail Overlay ── */
    .project-overlay {
      position: fixed;
      inset: 0;
      z-index: 10000;
      background: #000;
      display: flex;
      flex-direction: column;
      transform: translateY(100vh);
      transition: transform 0.55s cubic-bezier(0.32, 0.72, 0, 1);
      overflow-y: auto;
      overscroll-behavior: contain;
    }

    .project-overlay.is-open {
      transform: translateY(0);
    }

    .overlay-topbar {
      position: sticky;
      top: 0;
      z-index: 2;
      height: 52px;
      background: rgba(0,0,0,0.75);
      backdrop-filter: saturate(180%) blur(20px);
      -webkit-backdrop-filter: saturate(180%) blur(20px);
      border-bottom: 1px solid rgba(255,255,255,0.08);
      display: flex;
      align-items: center;
      padding: 0 20px;
      gap: 0;
      flex-shrink: 0;
    }

    .overlay-back-btn {
      display: flex;
      align-items: center;
      gap: 6px;
      background: none;
      border: none;
      cursor: pointer;
      text-decoration: none;
      font-family: inherit;
      font-size: 14px;
      font-weight: 500;
      color: rgba(255,255,255,0.8);
      padding: 8px 12px 8px 4px;
      transition: color 0.15s;
      letter-spacing: -0.01em;
    }

    .overlay-back-btn:hover { color: #fff; }

    .overlay-back-btn svg {
      width: 18px;
      height: 18px;
      fill: none;
      stroke: currentColor;
      stroke-width: 2;
      stroke-linecap: round;
      stroke-linejoin: round;
      flex-shrink: 0;
    }

    .overlay-hero {
      width: 100%;
      min-height: 58vh;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      padding: 0 60px 56px;
      background: var(--overlay-bg, #111);
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      position: relative;
      flex-shrink: 0;
    }

    .overlay-hero::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.15) 55%, transparent 100%);
      pointer-events: none;
    }

    .overlay-hero-content {
      position: relative;
      z-index: 1;
      max-width: 700px;
    }

    .overlay-tag {
      font-size: 12px;
      font-weight: 600;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: rgba(255,255,255,0.55);
      margin-bottom: 10px;
    }

    .overlay-title {
      font-size: clamp(42px, 6vw, 76px);
      font-weight: 800;
      letter-spacing: -0.03em;
      color: #fff;
      line-height: 1;
      margin-bottom: 0;
    }

    .overlay-body {
      max-width: 720px;
      margin: 0 auto;
      padding: 56px 40px 100px;
      width: 100%;
    }

    .overlay-desc {
      font-size: 17px;
      line-height: 1.75;
      color: #aeaeb2;
      margin-bottom: 24px;
      letter-spacing: -0.01em;
    }

    .overlay-section-label {
      font-size: 12px;
      font-weight: 600;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: #27fbf0;
      margin: 36px 0 16px;
    }
    .overlay-section-label:empty { display: none; }

    .overlay-bullets {
      list-style: none;
      padding: 0;
      margin: 0;
    }
    .overlay-bullets:empty { display: none; }
    .overlay-bullets li {
      position: relative;
      padding-left: 24px;
      font-size: 16px;
      line-height: 1.7;
      color: #c7c7cc;
      margin-bottom: 14px;
    }
    .overlay-bullets li::before {
      content: '';
      position: absolute;
      left: 2px;
      top: 11px;
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: #27fbf0;
    }

    .overlay-gallery {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
      margin-top: 40px;
    }
    .overlay-gallery:empty { display: none; }
    .overlay-gallery img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      border-radius: 12px;
      border: 1px solid rgba(255,255,255,0.08);
    }
    .overlay-gallery img:first-child { grid-column: 1 / -1; }
    /* Exactly two images: side by side instead of one full + one half */
    .overlay-gallery img:first-child:nth-last-child(2),
    .overlay-gallery img:first-child:nth-last-child(2) ~ img { grid-column: auto; }

    .overlay-chips {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 32px;
    }

    .overlay-chip {
      font-size: 12px;
      font-weight: 500;
      letter-spacing: 0.04em;
      color: rgba(255,255,255,0.7);
      background: rgba(255,255,255,0.08);
      border: 1px solid rgba(255,255,255,0.1);
      border-radius: 20px;
      padding: 5px 14px;
    }

    @media (max-width: 700px) {
      /* Flatten the 3D fan into a horizontal swipe carousel */
      .card-stage { perspective: none; margin-top: 32px; }
      .card-strip {
        justify-content: flex-start;
        align-items: stretch;
        gap: 14px;
        padding: 10px 20px 30px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
      }
      .card-strip::-webkit-scrollbar { display: none; }
      .proj-col { flex: 0 0 78%; scroll-snap-align: center; }
      .proj-card,
      .proj-card:hover,
      .proj-card:focus-visible {
        width: 100%;
        height: 340px;
        transform: none !important;
        z-index: auto !important;
      }
      .card-title-top { font-size: 14px; min-height: 2.5em; }
      .overlay-hero { padding: 0 24px 40px; min-height: 45vh; }
      .overlay-body { padding: 40px 24px 80px; }
      .overlay-gallery { grid-template-columns: 1fr; }
    }

    /* ── Hero canvas ── */
    #heroCanvas {
      position: fixed;
      top: 0; left: 0;
      width: 100%; height: 100%;
      z-index: -1;
      pointer-events: none;
    }

    /* ── Nav: 3-col layout + Logo ── */
    .nav-inner {
      position: relative;
      z-index: 1;
      display: grid;
      grid-template-columns: 1fr auto 1fr;
      align-items: center;
      max-width: 980px;
      margin: 0 auto;
      padding: 0 22px;
      height: 100%;
    }

    nav ul.nav-list {
      display: flex;
      align-items: center;
      height: 100%;
      gap: 0;
      list-style: none;
      max-width: none;
      margin: 0;
      padding: 0;
    }

    .nav-list-right { justify-content: flex-end; }

    /* Hamburger only appears on mobile */
    .nav-menu-item { display: none; }

    .nav-logo {
      display: flex;
      align-items: center;
      justify-content: center;
      text-decoration: none;
      padding: 0 10px;
      height: 44px;
    }

    .nav-logo-svg {
      width: 32px;
      height: 32px;
      overflow: visible;
      transition: filter 0.3s ease;
    }

    .nav-logo:hover .nav-logo-svg {
      filter: drop-shadow(0 0 8px rgba(39,251,240,0.7));
    }

    .logo-spin {
      transform-origin: 50% 50%;
      animation: logoSpin 9s linear infinite;
    }

    @keyframes logoSpin { to { transform: rotate(360deg); } }

    /* ── Sci-fi border SVG ── */
    .nav-sf-svg {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      pointer-events: none;
      z-index: 0;
      overflow: visible;
    }

    .sf-base-line {
      stroke: rgba(255,255,255,0.08);
      stroke-width: 1;
      transition: stroke 0.6s ease;
    }

    nav.is-scrolled .sf-base-line { stroke: rgba(39,251,240,0.3); }

    .sf-corner {
      fill: none;
      stroke: #27fbf0;
      stroke-width: 1.5;
      stroke-linecap: square;
      stroke-dasharray: 62;
      stroke-dashoffset: 62;
      transition: stroke-dashoffset 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    }

    nav.is-scrolled .sf-corner { stroke-dashoffset: 0; }

    .sf-tick {
      stroke: rgba(39,251,240,0.5);
      stroke-width: 1;
      opacity: 0;
      transition: opacity 0.3s ease;
    }

    nav.is-scrolled .sf-t1 { opacity: 1; transition-delay: 0.06s; }
    nav.is-scrolled .sf-t2 { opacity: 1; transition-delay: 0.14s; }
    nav.is-scrolled .sf-t3 { opacity: 1; transition-delay: 0.22s; }
    nav.is-scrolled .sf-t4 { opacity: 1; transition-delay: 0.06s; }
    nav.is-scrolled .sf-t5 { opacity: 1; transition-delay: 0.14s; }
    nav.is-scrolled .sf-t6 { opacity: 1; transition-delay: 0.22s; }

    .sf-diamond {
      fill: none;
      stroke: rgba(39,251,240,0.45);
      stroke-width: 1;
      opacity: 0;
      transition: opacity 0.5s ease 0.3s;
    }

    nav.is-scrolled .sf-diamond { opacity: 1; }

    /* Scan line */
    .nav-scan-line {
      position: absolute;
      bottom: 0;
      left: 0;
      width: 80px;
      height: 2px;
      background: linear-gradient(90deg, transparent, rgba(39,251,240,0.9) 50%, transparent);
      opacity: 0;
      pointer-events: none;
      animation: navScan 3s linear infinite;
      transition: opacity 0.5s ease;
    }

    nav.is-scrolled .nav-scan-line { opacity: 1; }

    @keyframes navScan {
      from { transform: translateX(-80px); }
      to   { transform: translateX(calc(100vw + 80px)); }
    }

    /* ── Reel Video Embed ── */
    #reel {
      padding: 80px 40px 100px;
      background: #000;
    }

    .reel-video-wrap {
      position: relative;
      width: 100%;
      max-width: 1020px;
      margin: 48px auto 0;
      aspect-ratio: 16 / 9;
      border-radius: 10px;
      overflow: hidden;
      background: #111;
      box-shadow: 0 32px 100px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.06);
    }

    .reel-video-wrap iframe {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      border: none;
    }

    /* ── Career Timeline ── */
    #career {
      display: block;
      text-align: center;
      padding: 80px 0 60px;
      overflow: hidden;
      background: #050505;
    }

    #career .section-label,
    #career .section-title {
      display: block;
    }

    .tl-scroll {
      overflow-x: auto;
      overflow-y: visible;
      cursor: grab;
      scrollbar-width: none;
      -ms-overflow-style: none;
      padding: 0 80px;
      margin-top: 56px;
    }

    .tl-scroll::-webkit-scrollbar { display: none; }
    .tl-scroll.is-grabbing { cursor: grabbing; user-select: none; }

    .tl-track {
      display: inline-flex;
      align-items: stretch;
      position: relative;
      min-width: max-content;
      height: 500px;
      padding: 0 40px;
    }

    /* horizontal line through the midpoint */
    .tl-track::before {
      content: '';
      position: absolute;
      left: 0; right: 0;
      top: 50%;
      height: 1px;
      background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255,255,255,0.18) 6%,
        rgba(255,255,255,0.18) 94%,
        transparent 100%
      );
      transform: translateY(-50%);
      pointer-events: none;
    }

    .tl-entry {
      display: flex;
      flex-direction: column;
      align-items: center;
      width: 260px;
      flex-shrink: 0;
      margin: 0 24px;
    }

    /* each half fills equal space; content aligns toward the dot */
    .tl-half {
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      width: 100%;
    }
    .tl-half.top    { justify-content: flex-end; }
    .tl-half.bottom { justify-content: flex-start; }

    /* Company logo circle — replaces the blue dot, sits on the line */
    .tl-logo {
      width: 52px;
      height: 52px;
      flex-shrink: 0;
      border-radius: 50%;
      background: #1c1c1e;
      border: 1.5px solid rgba(255,255,255,0.14);
      box-shadow: 0 0 0 3px rgba(39,251,240,0.18), 0 4px 18px rgba(0,0,0,0.5);
      z-index: 2;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    }

    .tl-logo img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      border-radius: 50%;
    }

    /* placeholder label shown when no image is present */
    .tl-logo-ph {
      font-size: 9px;
      font-weight: 600;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: rgba(255,255,255,0.25);
      text-align: center;
      line-height: 1.3;
      pointer-events: none;
      user-select: none;
    }

    .tl-entry:hover .tl-logo {
      transform: scale(1.12);
      border-color: rgba(39,251,240,0.45);
      box-shadow: 0 0 0 3px rgba(39,251,240,0.35), 0 6px 24px rgba(0,0,0,0.55);
    }

    /* Clickable company logos */
    a.tl-logo { cursor: pointer; }
    a.tl-logo:hover {
      transform: scale(1.16);
      border-color: rgba(39,251,240,0.8);
      box-shadow: 0 0 0 3px rgba(39,251,240,0.5), 0 8px 28px rgba(0,0,0,0.6);
    }

    .tl-stem {
      width: 1px;
      height: 32px;
      flex-shrink: 0;
      background: rgba(255,255,255,0.12);
    }

    .tl-card {
      background: #1c1c1e;
      border: 1px solid rgba(255,255,255,0.07);
      border-radius: 10px;
      padding: 20px 22px;
      width: 240px;
      text-align: left;
      transition: border-color 0.25s ease, box-shadow 0.25s ease;
    }

    .tl-entry:hover .tl-card {
      border-color: rgba(39,251,240,0.28);
      box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    }

    .tl-above:hover .tl-card { transform: translateY(-4px); }
    .tl-below:hover .tl-card { transform: translateY(4px); }
    .tl-card { transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease; }

    .tl-date {
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: #27fbf0;
      margin-bottom: 7px;
    }

    .tl-company {
      font-size: 16px;
      font-weight: 700;
      letter-spacing: -0.01em;
      color: #f5f5f7;
      margin-bottom: 3px;
    }

    .tl-role {
      font-size: 12px;
      color: #636366;
      letter-spacing: 0.01em;
      margin-bottom: 10px;
    }

    .tl-desc {
      font-size: 13px;
      line-height: 1.65;
      color: #aeaeb2;
    }

    /* mobile: collapse to vertical */
    @media (max-width: 760px) {
      .tl-scroll { padding: 0 20px; margin-top: 40px; overflow-x: hidden; cursor: default; }
      .tl-track { display: flex; flex-direction: column; height: auto; width: 100%; min-width: 0; padding: 0; }
      .tl-entry { min-width: 0; }
      .tl-track::before { top: 0; bottom: 0; left: 20px; right: auto; width: 1px; height: auto; transform: none; }
      .tl-entry { flex-direction: row; width: 100%; margin: 0 0 32px 0; align-items: flex-start; flex-wrap: nowrap; }
      .tl-logo { order: -1; margin: 0 16px 0 0; flex-shrink: 0; width: 40px; height: 40px; }
      .tl-half { display: block; flex: 1 1 auto; min-width: 0; width: auto; }
      .tl-half.bottom { display: none; }
      .tl-stem { display: none; }
      .tl-card { width: 100%; box-sizing: border-box; }
    }

/* ── Project documentation body ── */
.doc-headline {
  font-size: clamp(22px, 3vw, 29px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #f5f5f7;
  margin-bottom: 22px;
}
.doc-tldr {
  font-size: 17px;
  line-height: 1.75;
  color: #d2d2d7;
  border-left: 2px solid #27fbf0;
  padding-left: 20px;
  margin-bottom: 40px;
  letter-spacing: -0.01em;
}
.doc-meta {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 11px 24px;
  margin: 0 0 44px;
  padding: 24px 26px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
}
.doc-meta dt {
  color: #27fbf0;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 11px;
  align-self: start;
  padding-top: 3px;
}
.doc-meta dd {
  color: #c7c7cc;
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
}
.doc-h2 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #27fbf0;
  margin: 48px 0 18px;
}
.doc-h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #f5f5f7;
  margin: 30px 0 12px;
}
.doc-p {
  font-size: 16px;
  line-height: 1.8;
  color: #aeaeb2;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}
.doc-p:last-child { margin-bottom: 0; }
.doc-body .overlay-bullets { margin: 6px 0 18px; }
.doc-body .overlay-gallery { margin-top: 44px; }

@media (max-width: 700px) {
  .doc-meta { grid-template-columns: 1fr; gap: 4px 0; padding: 20px 22px; }
  .doc-meta dt { margin-top: 12px; }
  .doc-meta dt:first-child { margin-top: 0; }
}
