:root {
      --ink: #171a1f;
      --muted: #5f6872;
      --soft: #eef1ed;
      --paper: #fbfaf7;
      --line: #d8dde2;
      --panel: #ffffff;
      --teal: #12696d;
      --brick: #b94c43;
      --amber: #b77b18;
      --green: #3f6d42;
      --shadow: 0 18px 42px rgba(23, 26, 31, 0.14);
    }

    * { box-sizing: border-box; }

    html { scroll-behavior: smooth; }

    body {
      margin: 0;
      color: var(--ink);
      background: var(--paper);
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
      overflow-x: hidden;
    }

    .jarvis-sphere {
      position: fixed;
      inset: 0;
      z-index: 0;
      width: 100vw;
      height: 100vh;
      pointer-events: none;
      opacity: 0.96;
    }

    main,
    footer {
      position: relative;
      z-index: 1;
    }

    a { color: inherit; }

    .site-header {
      position: sticky;
      top: 0;
      z-index: 20;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
      min-height: 64px;
      padding: 0 6vw;
      background: rgba(251, 250, 247, 0.94);
      border-bottom: 1px solid rgba(216, 221, 226, 0.88);
      backdrop-filter: blur(12px);
    }

    .brand {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      font-weight: 900;
      text-decoration: none;
      white-space: nowrap;
    }

    .brand-mark {
      display: grid;
      place-items: center;
      width: 34px;
      height: 34px;
      color: #fff;
      background: var(--ink);
      border-radius: 8px;
      font-weight: 900;
    }

    nav {
      display: flex;
      align-items: center;
      gap: 18px;
      color: var(--muted);
      font-size: 14px;
      white-space: nowrap;
    }

    nav a {
      text-decoration: none;
    }

    nav a:hover { color: var(--ink); }

    .hero {
      position: relative;
      overflow: hidden;
      min-height: clamp(560px, 78vh, 720px);
      max-height: 780px;
      display: grid;
      align-items: center;
      padding: 78px 6vw 92px;
      isolation: isolate;
      background: rgba(237, 241, 238, 0.48);
      border-bottom: 1px solid var(--line);
    }

    .hero::before {
      content: "";
      position: absolute;
      inset: 0;
      z-index: -3;
      background-image: url("../assets/resume-before-after.png");
      background-size: cover;
      background-position: center;
      opacity: 0.045;
      filter: saturate(0.82);
    }

    .hero::after {
      content: "";
      position: absolute;
      inset: 0;
      z-index: -2;
      background: linear-gradient(90deg, rgba(248, 249, 246, 0.94), rgba(248, 249, 246, 0.58) 48%, rgba(248, 249, 246, 0.08));
    }

    .hero-copy {
      max-width: 920px;
    }

    .eyebrow {
      margin: 0 0 16px;
      color: var(--teal);
      font-size: 14px;
      font-weight: 900;
    }

    h1 {
      margin: 0;
      max-width: 1040px;
      font-size: clamp(44px, 7.8vw, 92px);
      line-height: 1.02;
      letter-spacing: 0;
      overflow-wrap: anywhere;
      word-break: break-word;
    }

    .lead {
      max-width: 740px;
      margin: 24px 0 0;
      color: #3f474e;
      font-size: clamp(18px, 2.1vw, 24px);
      line-height: 1.68;
    }

    .hero-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      margin-top: 34px;
    }

    .button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 46px;
      padding: 0 18px;
      border: 1px solid var(--ink);
      border-radius: 8px;
      font-weight: 900;
      text-decoration: none;
      white-space: nowrap;
    }

    .button.primary {
      color: #fff;
      background: var(--ink);
    }

    .button.secondary {
      background: rgba(255, 255, 255, 0.62);
    }

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

    .hero-visual {
      position: absolute;
      right: 6vw;
      bottom: 40px;
      z-index: -1;
      display: flex;
      align-items: flex-end;
      gap: 14px;
      transform: rotate(-3deg);
      opacity: 0.94;
      pointer-events: none;
    }

    .hero-visual img {
      width: clamp(118px, 13vw, 206px);
      aspect-ratio: 3 / 4;
      object-fit: cover;
      border: 1px solid rgba(23, 26, 31, 0.12);
      border-radius: 8px;
      background: #fff;
      box-shadow: var(--shadow);
    }

    .hero-visual img:nth-child(2) {
      transform: translateY(-44px);
    }

    section {
      padding: 64px 6vw;
      scroll-margin-top: 92px;
    }

    .section-inner {
      max-width: 1160px;
      margin: 0 auto;
    }

    .section-head {
      display: flex;
      align-items: end;
      justify-content: space-between;
      gap: 28px;
      margin-bottom: 24px;
      padding-bottom: 18px;
      border-bottom: 1px solid var(--line);
    }

    h2 {
      margin: 0;
      font-size: clamp(28px, 4vw, 46px);
      line-height: 1.15;
      letter-spacing: 0;
    }

    h3 {
      margin: 0;
      font-size: 22px;
      line-height: 1.28;
    }

    p {
      line-height: 1.78;
    }

    .section-note {
      max-width: 520px;
      margin: 0;
      color: var(--muted);
      font-size: 15px;
      line-height: 1.75;
    }

    .about-grid {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
      gap: 20px;
      align-items: stretch;
    }

    .about-main,
    .profile-panel,
    .project-card,
    .store-card,
    .note-card {
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--panel);
    }

    .about-main,
    .profile-panel {
      padding: 24px;
    }

    .about-main p {
      margin: 12px 0 0;
      color: var(--muted);
      font-size: 17px;
    }

    .profile-list {
      display: grid;
      gap: 14px;
      margin: 18px 0 0;
      padding: 0;
      list-style: none;
    }

    .profile-list li {
      display: grid;
      gap: 4px;
      padding-bottom: 12px;
      border-bottom: 1px solid var(--line);
    }

    .profile-list li:last-child {
      border-bottom: 0;
      padding-bottom: 0;
    }

    .profile-list span {
      color: var(--muted);
      font-size: 13px;
      font-weight: 800;
    }

    .profile-list strong {
      font-size: 16px;
    }

    .tags {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 18px;
    }

    .tag {
      display: inline-flex;
      align-items: center;
      min-height: 28px;
      padding: 0 10px;
      color: #fff;
      background: var(--teal);
      border-radius: 999px;
      font-size: 13px;
      font-weight: 800;
    }

    .tag.green { background: var(--green); }
    .tag.amber { background: var(--amber); }
    .tag.brick { background: var(--brick); }
    .tag.ink { background: var(--ink); }

    .projects {
      background: var(--soft);
      border-top: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
    }

    .project-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 16px;
    }

    .project-card {
      min-height: 292px;
      padding: 22px;
    }

    .project-card p {
      margin: 14px 0 0;
      color: var(--muted);
      font-size: 16px;
    }

    .project-link {
      display: inline-flex;
      align-items: center;
      margin-top: 14px;
      color: var(--teal);
      font-size: 14px;
      font-weight: 900;
      text-decoration: none;
    }

    .project-link:hover {
      text-decoration: underline;
    }

    .project-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 18px;
    }

    .project-meta span {
      padding: 6px 9px;
      color: #fff;
      background: var(--ink);
      border-radius: 8px;
      font-size: 12px;
      font-weight: 800;
    }

    .store-layout {
      display: grid;
      grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
      gap: 26px;
      align-items: start;
    }

    .store-list {
      display: grid;
      gap: 14px;
    }

    .store-card {
      padding: 22px;
    }

    .store-card p {
      margin: 12px 0 0;
      color: var(--muted);
    }

    .price-line {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 10px;
      margin-top: 16px;
      font-weight: 900;
    }

    .price-line strong {
      font-size: 28px;
    }

    .preview-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
      position: sticky;
      top: 88px;
    }

    .preview-grid img {
      width: 100%;
      aspect-ratio: 1 / 1;
      object-fit: contain;
      border: 1px solid rgba(23, 26, 31, 0.12);
      border-radius: 8px;
      background: #fff;
      box-shadow: 0 12px 28px rgba(23, 26, 31, 0.12);
    }

    .quant {
      background: rgba(246, 241, 232, 0.78);
      border-top: 1px solid rgba(23, 26, 31, 0.08);
      border-bottom: 1px solid rgba(23, 26, 31, 0.08);
    }

    .note-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 16px;
    }

    .note-card {
      padding: 22px;
      background: rgba(255, 255, 255, 0.74);
    }

    .note-card p {
      margin: 12px 0 0;
      color: var(--muted);
    }

    .contact {
      background: rgba(255, 255, 255, 0.78);
    }

    .contact-box {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
      gap: 24px;
      align-items: stretch;
      padding: 28px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #fffdf8;
    }

    .contact-box p {
      color: var(--muted);
      font-size: 17px;
    }

    .contact-method {
      display: grid;
      gap: 6px;
      margin-bottom: 14px;
      padding: 14px 16px;
      border: 1px solid rgba(23, 26, 31, 0.12);
      border-radius: 8px;
      background: rgba(255, 255, 255, 0.78);
    }

    .contact-method span {
      color: var(--muted);
      font-size: 13px;
      font-weight: 800;
    }

    .contact-method strong {
      color: var(--ink);
      font-size: 22px;
      letter-spacing: 0;
      overflow-wrap: anywhere;
    }

    footer {
      padding: 34px 6vw;
      color: rgba(255, 255, 255, 0.72);
      background: var(--ink);
      font-size: 14px;
      line-height: 1.75;
    }

    footer a {
      color: #fff;
      font-weight: 900;
    }

    @media (max-width: 920px) {
      .site-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        padding: 12px 5vw;
      }

      nav {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 2px;
      }

      .hero {
        min-height: auto;
        padding: 58px 5vw 72px;
      }

      .hero-visual {
        position: relative;
        right: auto;
        bottom: auto;
        margin-top: 36px;
        transform: none;
      }

      .hero-visual img {
        width: 31%;
      }

      .section-head,
      .about-grid,
      .store-layout,
      .contact-box {
        display: grid;
        grid-template-columns: 1fr;
        align-items: start;
      }

      .project-grid,
      .note-grid {
        grid-template-columns: 1fr;
      }

      .preview-grid {
        position: static;
      }
    }

    @media (max-width: 540px) {
      h1 {
        font-size: 38px;
        line-height: 1.08;
      }

      .lead {
        font-size: 17px;
        max-width: 100%;
        overflow-wrap: anywhere;
        word-break: break-all;
      }

      p,
      .section-note {
        overflow-wrap: anywhere;
        word-break: break-all;
      }

      .hero-actions,
      .button {
        width: 100%;
      }

      .hero-visual img:nth-child(3) {
        display: none;
      }

      .hero-visual img {
        width: 48%;
      }

      .preview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .about-main,
      .profile-panel,
      .project-card,
      .store-card,
      .note-card,
      .contact-box {
        padding: 18px;
      }
    }
