:root {
      --bg: #0b0f14;
      --panel: #121922;
      --text: #e7edf4;
      --muted: #9ba9b8;
      --line: #253140;
      --accent: #7dd3fc;
      --accent-2: #a7f3d0;
      --max: 980px;
    }

    * {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      margin: 0;
      background: var(--bg);
      color: var(--text);
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      line-height: 1.6;
    }

    a {
      color: var(--accent);
      text-decoration: none;
    }

    a:hover {
      text-decoration: underline;
    }

    .container {
      width: min(calc(100% - 2rem), var(--max));
      margin: 0 auto;
    }

    header {
      border-bottom: 1px solid var(--line);
      position: sticky;
      top: 0;
      background: rgba(11, 15, 20, 0.92);
      backdrop-filter: blur(10px);
      z-index: 10;
    }

    nav {
      min-height: 64px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
    }

    .brand {
      font-weight: 700;
      color: var(--text);
      letter-spacing: 0.01em;
    }

    .nav-links {
      display: flex;
      flex-wrap: wrap;
      gap: 1rem;
      font-size: 0.95rem;
    }

    main {
      padding: 5rem 0 3rem;
      padding-top: 0;
    }

    .hero {
      padding: 2.5rem 0 4rem;
    }

    .hero-layout {
      max-width: 820px;
    }

    .hero-identity {
      display: flex;
      align-items: center;
      gap: 1.4rem;
      margin-bottom: 2rem;
    }

    .portrait {
      width: 118px;
      height: 118px;
      flex: 0 0 118px;
      border-radius: 18px;
      overflow: hidden;
      border: 1px solid var(--line);
      background:
        linear-gradient(145deg, rgba(125, 211, 252, 0.10), rgba(167, 243, 208, 0.06)),
        var(--panel);
      display: grid;
      place-items: center;
      box-shadow: 0 12px 35px rgba(0, 0, 0, 0.22);
    }

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

    .portrait-fallback {
      display: none;
      font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
      font-size: 2.2rem;
      font-weight: 800;
      color: var(--accent);
    }

    .identity-copy {
      min-width: 0;
    }

    .hero-name {
      margin: 0 0 0.3rem;
      font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
      font-size: clamp(2rem, 5vw, 3.5rem);
      font-weight: 800;
      letter-spacing: -0.055em;
      line-height: 1;
    }

    .hero-role {
      margin: 0;
      color: var(--muted);
      font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
      font-size: 0.95rem;
    }

    .hero h1 {
      max-width: 760px;
      font-size: clamp(1.8rem, 4vw, 3rem);
      letter-spacing: -0.03em;
      margin-bottom: 1.1rem;
    }

    .hero .lead {
      max-width: 720px;
      font-size: 1.02rem;
    }

    .eyebrow {
      color: var(--accent-2);
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.14em;
      font-size: 0.78rem;
      margin-bottom: 1rem;
    }

    h1, h2, h3 {
      line-height: 1.15;
      margin-top: 0;
    }

    h2 {
      font-size: clamp(1.8rem, 4vw, 2.5rem);
      margin-bottom: 1rem;
    }

    h3 {
      font-size: 1.1rem;
      margin-bottom: 0.5rem;
    }

    .lead {
      max-width: 760px;
      color: var(--muted);
      font-size: 1.15rem;
    }

    .cta-row {
      display: flex;
      flex-wrap: wrap;
      gap: 0.8rem;
      margin-top: 1.75rem;
    }

    .button {
      display: inline-block;
      padding: 0.75rem 1rem;
      border: 1px solid var(--line);
      border-radius: 10px;
      color: var(--text);
      background: var(--panel);
      font-weight: 600;
    }

    .button.primary {
      border-color: var(--accent);
      color: var(--bg);
      background: var(--accent);
    }

    section {
      padding: 3.5rem 0;
      border-top: 1px solid var(--line);
    }

    .section-intro {
      color: var(--muted);
      max-width: 760px;
      margin-bottom: 1.5rem;
    }

    .grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 1rem;
    }

    .card {
      background: var(--panel);
      border: 1px solid var(--line);
      border-radius: 14px;
      padding: 1.25rem;
    }

    .card p {
      color: var(--muted);
      margin-bottom: 0;
    }

    .tag-list {
      display: flex;
      flex-wrap: wrap;
      gap: 0.55rem;
      margin-top: 1rem;
    }

    .tag {
      border: 1px solid var(--line);
      border-radius: 999px;
      padding: 0.35rem 0.7rem;
      color: var(--muted);
      font-size: 0.88rem;
    }

    .project {
      margin-bottom: 1rem;
    }

    .project:last-child {
      margin-bottom: 0;
    }

    footer {
      padding: 2rem 0 3rem;
      color: var(--muted);
      border-top: 1px solid var(--line);
      font-size: 0.9rem;
    }

    .footer-row {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      gap: 1rem;
    }

    .secret-link {
      color: var(--muted);
    }


    .drawer-backdrop {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.65);
      opacity: 0;
      pointer-events: none;
      transition: opacity 180ms ease;
      z-index: 50;
    }

    .drawer-backdrop.open {
      opacity: 1;
      pointer-events: auto;
    }

    .rickroll-drawer {
      position: fixed;
      left: 50%;
      bottom: 0;
      width: min(900px, calc(100% - 1.5rem));
      transform: translate(-50%, 110%);
      background: var(--panel);
      border: 1px solid var(--line);
      border-bottom: 0;
      border-radius: 18px 18px 0 0;
      box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.45);
      transition: transform 220ms ease;
      z-index: 60;
      overflow: hidden;
    }

    .rickroll-drawer.open {
      transform: translate(-50%, 0);
    }

    .drawer-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      padding: 0.9rem 1rem;
      border-bottom: 1px solid var(--line);
      font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    }

    .drawer-title {
      font-size: 0.92rem;
      color: var(--accent-2);
    }

    .drawer-close {
      appearance: none;
      border: 1px solid var(--line);
      background: transparent;
      color: var(--text);
      border-radius: 8px;
      padding: 0.35rem 0.6rem;
      cursor: pointer;
      font: inherit;
    }

    .drawer-close:hover {
      border-color: var(--accent);
    }

    .video-frame {
      position: relative;
      width: 100%;
      aspect-ratio: 16 / 9;
      background: #000;
    }

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

    .video-fallback {
      display: none;
      min-height: 260px;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 2rem;
      background: #000;
    }

    .video-fallback.show {
      display: flex;
    }

    .video-fallback p {
      margin: 0 0 1rem;
      color: var(--muted);
    }

    .video-fallback .button {
      background: var(--accent);
      color: var(--bg);
      border-color: var(--accent);
    }


    @media (max-width: 700px) {
      nav {
        align-items: flex-start;
        flex-direction: column;
        padding: 1rem 0;
      }

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

      .hero-identity {
        align-items: flex-start;
      }

      .portrait {
        width: 92px;
        height: 92px;
        flex-basis: 92px;
        border-radius: 14px;
      }

      .hero-role {
        font-size: 0.82rem;
      }

      main {
        padding-top: 3rem;
      }
    }
