:root {
      color-scheme: light;
      --cream: #fff8ed;
      --paper: #fffdf8;
      --ink: #22201f;
      --muted: #5f554c;
      --line: #eadfcd;
      --coral: #f26f57;
      --mint: #74c7a4;
      --blue: #7aa7e8;
      --plum: #6d5bd0;
      --sun: #ffd166;
      --shadow: 0 16px 30px rgba(0, 0, 0, 0.1);
      --radius: 24px;
      --sans: "Nunito Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      --display: "Bree Serif", Georgia, serif;
    }

    * {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      margin: 0;
      min-height: 100vh;
      background:
        radial-gradient(circle at 14% 12%, rgba(255, 209, 102, 0.35), transparent 24rem),
        radial-gradient(circle at 88% 10%, rgba(122, 167, 232, 0.28), transparent 28rem),
        linear-gradient(180deg, var(--cream), #f8f2e8 64%, #fff8ed);
      color: var(--ink);
      font-family: var(--sans);
      text-rendering: optimizeLegibility;
    }

    a {
      color: inherit;
    }

    ::selection {
      background: rgba(242, 111, 87, 0.28);
      color: var(--ink);
    }

    :focus-visible {
      outline: 3px solid rgba(109, 91, 208, 0.48);
      outline-offset: 5px;
      border-radius: 999px;
    }

    .shell {
      width: min(100% - 32px, 1120px);
      margin: 0 auto;
    }

    .site-header {
      position: sticky;
      top: 0;
      z-index: 20;
      background: rgba(255, 248, 237, 0.78);
      border-bottom: 1px solid rgba(234, 223, 205, 0.75);
      backdrop-filter: blur(18px);
    }

    .topbar {
      min-height: 76px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
    }

    .brand {
      display: inline-flex;
      align-items: center;
      text-decoration: none;
    }

    .brand-logo {
      width: auto;
      height: clamp(48px, 6vw, 58px);
      display: block;
    }

    .nav {
      display: flex;
      align-items: center;
      gap: 10px;
      color: var(--muted);
      font-size: 0.92rem;
      font-weight: 700;
    }

    .nav a {
      padding: 10px 12px;
      border-radius: 999px;
      text-decoration: none;
      transition: color 180ms ease, background 180ms ease;
    }

    .nav a:hover {
      background: rgba(255, 255, 255, 0.74);
      color: var(--ink);
    }

    .hero {
      position: relative;
      display: grid;
      grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
      align-items: center;
      gap: clamp(32px, 7vw, 84px);
      padding: clamp(60px, 8vw, 104px) 0 72px;
    }

    .hero-copy {
      max-width: 680px;
    }

    .hello-line {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      margin: 70px 0 18px;
      color: #7c5147;
      font-size: 0.95rem;
      font-weight: 800;
    }

    .hello-line::before {
      content: "";
      width: 36px;
      height: 4px;
      border-radius: 999px;
      background: linear-gradient(90deg, var(--coral), var(--sun), var(--mint));
    }

    h1 {
      margin: -40px 0 0;
      color: #211c1a;
      font-family: var(--display);
      font-size: clamp(3.9rem, 12vw, 7rem);
      font-weight: 700;
      line-height: 0.9;
      letter-spacing: -0.04em;
      text-wrap: balance;
    }

    .intro {
      margin: 0 0 0;
      max-width: 62ch;
      color: #554b43;
      font-size: clamp(1.12rem, 2vw, 1.35rem);
      line-height: 1.72;
    }

    .intro strong {
      color: #26211f;
      font-weight: 800;
    }

    .actions {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      margin-top: 32px;
    }

    .button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 9px;
      min-height: 48px;
      padding: 0 18px;
      border-radius: 999px;
      border: 1px solid transparent;
      font-size: 0.92rem;
      font-weight: 800;
      text-decoration: none;
      transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
    }

    .button:hover {
      transform: translateY(-2px);
    }

    .button.primary {
      background: #22201f;
      color: #fffdf8;
      box-shadow: 0 12px 26px rgba(0, 0, 0, 0.16);
    }

    .button.secondary {
      background: rgba(255, 255, 255, 0.72);
      border-color: rgba(34, 32, 31, 0.12);
      color: var(--ink);
    }

    .portrait-board {
      position: relative;
      min-height: 520px;
    }

    .floating-card {
      position: absolute;
      border: 1px solid rgba(255, 255, 255, 0.75);
      border-radius: var(--radius);
      background: rgba(255, 253, 248, 0.82);
      box-shadow: var(--shadow);
      backdrop-filter: blur(18px);
    }

    .name-card {
      inset: 34px 10px auto auto;
      width: min(88%, 330px);
      padding: 28px;
      transform: rotate(3deg);
    }

    .name-card p {
      margin: 0;
      color: var(--muted);
      line-height: 1.55;
    }

    .name-card strong {
      display: block;
      margin-bottom: 10px;
      color: var(--ink);
      font-family: var(--display);
      font-size: 2rem;
      line-height: 1.02;
    }

    .skill-card {
      left: 8px;
      bottom: 44px;
      width: min(90%, 360px);
      padding: 18px;
      transform: rotate(-2deg);
    }

    .skill-row {
      display: grid;
      grid-template-columns: auto 1fr;
      gap: 14px;
      align-items: start;
    }

    .spark {
      width: 44px;
      height: 44px;
      border-radius: 16px;
      background: linear-gradient(135deg, var(--plum), var(--blue));
      box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
    }

    .skill-card h2 {
      margin: 0 0 6px;
      font-size: 1rem;
    }

    .skill-card p {
      margin: 0;
      color: var(--muted);
      font-size: 0.94rem;
      line-height: 1.55;
    }

    .color-chip {
      position: absolute;
      width: 156px;
      height: 156px;
      border-radius: 42px;
      background: linear-gradient(135deg, var(--mint), #e8f7b4);
      box-shadow: 0 12px 28px rgba(0, 0, 0, 0.09);
      right: 106px;
      bottom: 150px;
    }

    .color-chip::after {
      content: "";
      position: absolute;
      inset: 18px;
      border: 2px dashed rgba(34, 32, 31, 0.22);
      border-radius: 30px;
    }

    .section {
      padding: 72px 0;
      border-top: 1px solid rgba(234, 223, 205, 0.8);
    }

    .section-head {
      display: grid;
      grid-template-columns: minmax(180px, 0.42fr) 1fr;
      gap: 28px;
      align-items: start;
      margin-bottom: 34px;
    }

    .section h2 {
      margin: 0;
      color: var(--ink);
      font-family: var(--display);
      font-size: clamp(2.25rem, 5vw, 4rem);
      line-height: 0.98;
      letter-spacing: -0.035em;
    }

    .section-lede {
      margin: 0;
      max-width: 66ch;
      color: var(--muted);
      font-size: 1.08rem;
      line-height: 1.75;
    }

    .about-grid {
      display: grid;
      grid-template-columns: 1fr 0.82fr;
      gap: 18px;
    }

    .about-note {
      padding: 26px;
      border-radius: var(--radius);
      background: var(--paper);
      box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    }

    .about-note p {
      margin: 0;
      color: #554b43;
      font-size: 1.06rem;
      line-height: 1.75;
    }

    .tags {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      align-content: start;
    }

    .tag {
      display: inline-flex;
      align-items: center;
      min-height: 42px;
      padding: 0 14px;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.66);
      border: 1px solid rgba(34, 32, 31, 0.08);
      color: #4b443f;
      font-size: 0.9rem;
      font-weight: 800;
    }

    .tag:nth-child(2) {
      background: rgba(116, 199, 164, 0.18);
    }

    .tag:nth-child(3) {
      background: rgba(122, 167, 232, 0.18);
    }

    .tag:nth-child(4) {
      background: rgba(255, 209, 102, 0.24);
    }

    .projects {
      display: grid;
      gap: 18px;
    }

    .project {
      display: grid;
      grid-template-columns: auto 1fr auto;
      gap: 18px;
      align-items: center;
      padding: 22px;
      border: 1px solid rgba(34, 32, 31, 0.08);
      border-radius: var(--radius);
      background: rgba(255, 253, 248, 0.78);
      box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
      transition: transform 180ms ease, box-shadow 180ms ease;
    }

    .project:hover {
      transform: translateY(-3px);
      box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
    }

    .project-icon {
      width: 58px;
      height: 58px;
      display: grid;
      place-items: center;
      border-radius: 20px;
      background: #fff;
      overflow: hidden;
    }

    .project-icon img {
      width: 42px;
      height: 42px;
      object-fit: cover;
      border-radius: 12px;
    }

    .project-icon.local {
      background: linear-gradient(135deg, rgba(109, 91, 208, 0.16), rgba(122, 167, 232, 0.25));
      color: var(--plum);
    }

    .project h3 {
      margin: 0 0 6px;
      color: var(--ink);
      font-family: var(--display);
      font-size: 1.55rem;
      line-height: 1;
    }

    .project p {
      margin: 0;
      color: var(--muted);
      line-height: 1.55;
    }

    .project-actions {
      display: flex;
      flex-wrap: wrap;
      justify-content: flex-end;
      gap: 10px;
    }

    .tiny-link {
      display: inline-flex;
      align-items: center;
      min-height: 40px;
      padding: 0 13px;
      border-radius: 999px;
      background: #fff;
      border: 1px solid rgba(34, 32, 31, 0.08);
      color: #3c3733;
      font-size: 0.82rem;
      font-weight: 800;
      text-decoration: none;
      transition: background 180ms ease, color 180ms ease;
    }

    .tiny-link:hover {
      background: #22201f;
      color: #fffdf8;
    }

    .contact-band {
      position: relative;
      overflow: hidden;
      padding: clamp(30px, 6vw, 56px);
      border-radius: 34px;
      background:
        radial-gradient(circle at 88% 20%, rgba(255, 209, 102, 0.55), transparent 15rem),
        linear-gradient(135deg, #ffe0d5, #e7f5d7 48%, #dceaff);
      box-shadow: var(--shadow);
    }

    .contact-band h2 {
      max-width: 680px;
    }

    .contact-band p {
      max-width: 650px;
      margin: 18px 0 0;
      color: #403832;
      font-size: 1.1rem;
      line-height: 1.7;
    }

    .contact-band .button {
      margin-top: 28px;
    }

    .footer {
      padding: 36px 0 46px;
      color: var(--muted);
      font-size: 0.92rem;
    }

    .footer .shell {
      display: flex;
      justify-content: space-between;
      gap: 18px;
    }

    .reveal {
      opacity: 0.001;
      transform: translateY(18px) rotate(var(--tilt, 0deg));
      transition: opacity 640ms cubic-bezier(.16, 1, .3, 1), transform 640ms cubic-bezier(.16, 1, .3, 1);
      transition-delay: var(--d, 0ms);
    }

    .reveal.in {
      opacity: 1;
      transform: translateY(0) rotate(var(--tilt, 0deg));
    }

    @media (max-width: 860px) {
      .hero,
      .section-head,
      .about-grid {
        grid-template-columns: 1fr;
      }

      .hero {
        padding-top: 44px;
      }

      .portrait-board {
        min-height: 390px;
      }

      .name-card {
        right: 0;
      }

      .skill-card {
        bottom: 12px;
      }

      .color-chip {
        right: 26px;
        bottom: 122px;
        width: 132px;
        height: 132px;
      }

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

      .project-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
        padding-left: 76px;
      }
    }

    @media (max-width: 620px) {
      .topbar {
        min-height: 68px;
      }

      .nav {
        display: none;
      }

      h1 {
        font-size: clamp(3.65rem, 20vw, 5rem);
      }

      .portrait-board {
        min-height: 430px;
      }

      .name-card,
      .skill-card {
        position: relative;
        inset: auto;
        width: 100%;
        transform: none;
      }

      .skill-card {
        margin-top: 16px;
      }

      .color-chip {
        position: absolute;
        right: 12px;
        top: 0;
        width: 96px;
        height: 96px;
      }

      .section {
        padding: 56px 0;
      }

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

      .project-actions {
        padding-left: 0;
      }

      .footer .shell {
        flex-direction: column;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      html {
        scroll-behavior: auto;
      }

      .button,
      .project,
      .reveal {
        transition: none;
      }

      .reveal {
        opacity: 1;
        transform: none;
      }
    }
