:root {
      --bg: #0a0b0a;
      --ink: #f2f4ef;
      --muted: #8f978a;
      --line: rgba(242, 244, 239, 0.11);
      --volt: #c8f542;
      --volt-dim: rgba(200, 245, 66, 0.14);
      --ice: #9ad7ff;
      --panel: #111411;
      --max: 1200px;
      --ease: cubic-bezier(0.16, 1, 0.3, 1);
      --grid: 64px;
    }
    * { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }
    body {
      font-family: "IBM Plex Sans", system-ui, sans-serif;
      background: var(--bg);
      color: var(--ink);
      line-height: 1.55;
      overflow-x: hidden;
    }
    a { color: inherit; }
    img { max-width: 100%; display: block; }
    .wrap { width: min(100% - 1.5rem, var(--max)); margin-inline: auto; }

    .grid-world {
      position: fixed;
      inset: 0;
      z-index: -1;
      background:
        radial-gradient(circle at var(--mx, 70%) var(--my, 20%), rgba(200,245,66,.07), transparent 28%),
        #0a0b0a;
    }
    .grid-world::before {
      content: "";
      position: absolute;
      inset: 0;
      background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
      background-size: var(--grid) var(--grid);
      mask-image: radial-gradient(ellipse at var(--mx, 70%) var(--my, 30%), black 0%, transparent 55%);
      opacity: 0.7;
    }

    .hero {
      min-height: 100svh;
      padding: 2.5rem 0;
      display: grid;
      align-content: end;
      position: relative;
    }
    .hero-stage {
      display: grid;
      grid-template-columns: 1.35fr 0.65fr;
      gap: 1px;
      background: var(--line);
      border: 1px solid var(--line);
      min-height: calc(100svh - 5rem);
    }
    .hero-main,
    .hero-side {
      background: rgba(10, 11, 10, 0.82);
    }
    .hero-main {
      padding: clamp(1.5rem, 4vw, 3rem);
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      position: relative;
      overflow: hidden;
    }
    .hero-main::after {
      content: "";
      position: absolute;
      inset: auto -10% -30% 40%;
      height: 70%;
      background:
        linear-gradient(115deg, transparent, rgba(200,245,66,.08)),
        url("../images/myphoto_site.png") center top / cover no-repeat;
      filter: grayscale(1) contrast(1.15) brightness(0.55);
      opacity: 0.45;
      mix-blend-mode: screen;
      pointer-events: none;
      animation: drift 18s ease-in-out infinite alternate;
    }
    .code-line {
      font-family: "IBM Plex Mono", ui-monospace, monospace;
      font-size: 0.75rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--volt);
      margin-bottom: 1.2rem;
      position: relative;
      z-index: 1;
      opacity: 0;
      animation: rise .8s var(--ease) .05s forwards;
    }
    .brand {
      font-family: Syne, system-ui, sans-serif;
      font-weight: 800;
      font-size: clamp(3.4rem, 12vw, 7.2rem);
      line-height: 0.86;
      letter-spacing: -0.07em;
      text-transform: uppercase;
      margin-bottom: 1.4rem;
      position: relative;
      z-index: 1;
      opacity: 0;
      animation: rise .9s var(--ease) .15s forwards;
    }
    .brand em {
      font-style: normal;
      color: transparent;
      -webkit-text-stroke: 1.5px rgba(242,244,239,.55);
    }
    .hero h1 {
      font-family: Syne, system-ui, sans-serif;
      font-size: clamp(1.25rem, 2.8vw, 1.85rem);
      font-weight: 700;
      letter-spacing: -0.035em;
      line-height: 1.15;
      max-width: 20ch;
      margin-bottom: 0.9rem;
      position: relative;
      z-index: 1;
      opacity: 0;
      animation: rise .9s var(--ease) .28s forwards;
    }
    .hero-lead {
      color: var(--muted);
      max-width: 34rem;
      font-size: 1.05rem;
      margin-bottom: 1.8rem;
      position: relative;
      z-index: 1;
      opacity: 0;
      animation: rise .9s var(--ease) .4s forwards;
    }
    .hero-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 0.7rem;
      position: relative;
      z-index: 1;
      opacity: 0;
      animation: rise .9s var(--ease) .52s forwards;
    }
    .btn {
      font-family: Syne, system-ui, sans-serif;
      font-weight: 700;
      font-size: 0.92rem;
      text-decoration: none;
      padding: 0.85rem 1.15rem;
      display: inline-flex;
      align-items: center;
      gap: 0.45rem;
      transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s;
    }
    .btn:hover { transform: translateY(-2px); }
    .btn-volt { background: var(--volt); color: #0a0b0a; }
    .btn-ghost { border: 1px solid var(--line); }
    .btn-ghost:hover { border-color: var(--volt); color: var(--volt); }

    .hero-side {
      display: grid;
      grid-template-rows: repeat(5, 1fr);
    }
    .side-cell {
      border-bottom: 1px solid var(--line);
      padding: 0.75rem 1rem;
      display: flex;
      flex-direction: column;
      justify-content: center;
      gap: 0.2rem;
      transition: background .3s;
    }
    .side-cell:last-child { border-bottom: 0; }
    .side-cell:hover { background: var(--volt-dim); }
    .side-cell span {
      font-family: "IBM Plex Mono", ui-monospace, monospace;
      font-size: 0.62rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--muted);
    }
    .side-cell strong {
      font-family: Syne, system-ui, sans-serif;
      font-size: clamp(0.95rem, 1.4vw, 1.1rem);
      letter-spacing: -0.03em;
      line-height: 1.15;
    }
    .side-cell em {
      font-style: normal;
      display: block;
      font-family: "IBM Plex Sans", system-ui, sans-serif;
      font-size: 0.78rem;
      font-weight: 400;
      color: var(--muted);
      letter-spacing: 0;
      text-transform: none;
      line-height: 1.3;
    }

    .ticker {
      border-block: 1px solid var(--line);
      background: #0c0e0c;
      overflow: hidden;
      white-space: nowrap;
      padding: 0.85rem 0;
    }
    .ticker-track {
      display: flex;
      width: max-content;
      gap: 2.5rem;
      will-change: transform;
      font-family: "IBM Plex Mono", ui-monospace, monospace;
      font-size: 0.78rem;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--muted);
    }
    .ticker-track span {
      flex: 0 0 auto;
    }
    .ticker-track b { color: var(--volt); font-weight: 500; }

    section { padding: 4.5rem 0; }
    .h2 {
      font-family: Syne, system-ui, sans-serif;
      font-size: clamp(1.7rem, 4.2vw, 2.7rem);
      font-weight: 800;
      letter-spacing: -0.045em;
      line-height: 1.05;
      margin-bottom: 0.85rem;
      max-width: 18ch;
    }
    .lead {
      color: var(--muted);
      max-width: 42rem;
      margin-bottom: 2rem;
      font-size: 1.05rem;
    }

    .about-grid {
      display: grid;
      grid-template-columns: 1.2fr 0.8fr;
      gap: 1px;
      background: var(--line);
      border: 1px solid var(--line);
    }
    .about-main,
    .about-side {
      background: var(--panel);
      padding: clamp(1.2rem, 3vw, 1.8rem);
    }
    .about-main p + p { margin-top: 1rem; color: #c7cec2; }
    .about-main a {
      color: var(--volt);
      text-decoration: none;
      border-bottom: 1px solid currentColor;
    }
    .about-side h3 {
      font-family: Syne, system-ui, sans-serif;
      font-size: 1rem;
      margin-bottom: 1rem;
      letter-spacing: -0.02em;
    }
    .checklist {
      list-style: none;
      display: grid;
      gap: 0.75rem;
    }
    .checklist li {
      border-top: 1px solid var(--line);
      padding-top: 0.75rem;
      color: var(--muted);
      font-size: 0.95rem;
    }
    .checklist strong {
      display: block;
      color: var(--ink);
      font-family: Syne, system-ui, sans-serif;
      margin-bottom: 0.15rem;
      font-size: 0.98rem;
    }

    .projects { border-block: 1px solid var(--line); background: #080908; }
    .proj-list {
      display: grid;
      gap: 1px;
      background: var(--line);
      border: 1px solid var(--line);
    }
    .proj {
      background: var(--bg);
      padding: clamp(1.3rem, 3vw, 2rem);
      display: grid;
      grid-template-columns: 7.5rem 1fr;
      gap: 1.2rem 1.5rem;
    }
    .proj-idx {
      font-family: "IBM Plex Mono", ui-monospace, monospace;
      font-size: 0.72rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--volt);
    }
    .proj h3 {
      font-family: Syne, system-ui, sans-serif;
      font-size: clamp(1.35rem, 3vw, 1.9rem);
      letter-spacing: -0.035em;
      margin-bottom: 0.35rem;
      display: inline;
      margin-right: 0.55rem;
    }
    .badge-vibe {
      display: inline-block;
      vertical-align: middle;
      font-family: "IBM Plex Mono", ui-monospace, monospace;
      font-size: 0.68rem;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: var(--volt);
      border: 1px solid rgba(200, 245, 66, 0.4);
      background: var(--volt-dim);
      padding: 0.2rem 0.45rem;
      margin-bottom: 0.55rem;
    }
    .proj-url {
      display: inline-block;
      font-family: "IBM Plex Mono", ui-monospace, monospace;
      font-size: 0.78rem;
      color: var(--ice);
      text-decoration: none;
      margin-bottom: 1rem;
      border-bottom: 1px solid rgba(154, 215, 255, 0.35);
    }
    .meta {
      display: grid;
      gap: 0.85rem;
    }
    .meta dt {
      font-family: "IBM Plex Mono", ui-monospace, monospace;
      font-size: 0.68rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--volt);
      margin-bottom: 0.2rem;
    }
    .meta dd {
      color: var(--muted);
      font-size: 0.98rem;
    }

    .how-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1px;
      background: var(--line);
      border: 1px solid var(--line);
    }
    .how-item {
      background: var(--panel);
      padding: 1.4rem 1.15rem;
    }
    .how-item strong {
      display: block;
      font-family: Syne, system-ui, sans-serif;
      font-size: 1.08rem;
      margin-bottom: 0.45rem;
      letter-spacing: -0.02em;
    }
    .how-item p { color: var(--muted); font-size: 0.95rem; }

    .contact-box {
      border: 1px solid var(--line);
      display: grid;
      grid-template-columns: 1.15fr 0.85fr;
      gap: 1px;
      background: var(--line);
    }
    .contact-main,
    .contact-side {
      background: var(--panel);
      padding: clamp(1.3rem, 3vw, 2rem);
    }
    .contact-main h2 {
      font-family: Syne, system-ui, sans-serif;
      font-size: clamp(1.8rem, 4vw, 2.6rem);
      letter-spacing: -0.04em;
      line-height: 1.05;
      margin-bottom: 0.8rem;
    }
    .contact-main p { color: var(--muted); margin-bottom: 1.2rem; max-width: 34rem; }
    .mail {
      font-family: Syne, system-ui, sans-serif;
      font-size: clamp(1.05rem, 2.4vw, 1.35rem);
      font-weight: 700;
      text-decoration: none;
      border-bottom: 2px solid var(--volt);
      display: inline-block;
      margin-bottom: 0.7rem;
    }
    .contacts-row {
      display: flex;
      flex-wrap: wrap;
      gap: 0.85rem 1.25rem;
      margin-bottom: 1.2rem;
      align-items: baseline;
    }
    .tg-link {
      font-family: "IBM Plex Mono", ui-monospace, monospace;
      font-size: 0.9rem;
      letter-spacing: 0.04em;
      text-decoration: none;
      color: var(--ice);
      border-bottom: 1px solid rgba(154, 215, 255, 0.4);
    }
    .tg-link:hover { color: var(--volt); border-color: var(--volt); }
    .topics {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
      margin-bottom: 1rem;
    }
    .topic {
      font-family: "IBM Plex Mono", ui-monospace, monospace;
      font-size: 0.72rem;
      letter-spacing: 0.04em;
      text-decoration: none;
      border: 1px solid var(--line);
      padding: 0.55rem 0.75rem;
      transition: border-color .2s, color .2s, background .2s;
    }
    .topic:hover {
      border-color: var(--volt);
      color: var(--volt);
      background: var(--volt-dim);
    }
    .note {
      font-size: 0.9rem;
      color: var(--muted);
    }
    .contact-side h3 {
      font-family: Syne, system-ui, sans-serif;
      font-size: 1.05rem;
      margin-bottom: 0.9rem;
    }
    .yesno {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1rem;
    }
    .yesno ul {
      list-style: none;
      display: grid;
      gap: 0.55rem;
      color: var(--muted);
      font-size: 0.92rem;
    }
    .yesno h4 {
      font-family: "IBM Plex Mono", ui-monospace, monospace;
      font-size: 0.68rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--volt);
      margin-bottom: 0.55rem;
    }

    footer {
      border-top: 1px solid var(--line);
      padding: 1.2rem 0 2rem;
      font-family: "IBM Plex Mono", ui-monospace, monospace;
      font-size: 0.72rem;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: var(--muted);
      display: flex;
      justify-content: space-between;
      gap: 1rem;
      flex-wrap: wrap;
    }

    .reveal {
      opacity: 0;
      transform: translateY(18px);
      transition: opacity .75s var(--ease), transform .75s var(--ease);
    }
    .reveal.in { opacity: 1; transform: none; }

    @keyframes rise {
      from { opacity: 0; transform: translateY(16px); }
      to { opacity: 1; transform: none; }
    }
    @keyframes drift {
      from { transform: translate3d(0,0,0) scale(1); }
      to { transform: translate3d(-3%, -2%, 0) scale(1.06); }
    }

    @media (max-width: 900px) {
      .hero-stage,
      .about-grid,
      .contact-box,
      .how-grid,
      .yesno { grid-template-columns: 1fr; }
      .proj { grid-template-columns: 1fr; gap: 0.5rem; }
      .hero-stage { min-height: auto; }
      .hero-side { grid-template-rows: none; }
      .hero-main::after {
        inset: 0;
        opacity: 0.22;
      }
    }
