:root {
      --bg: #f4f7fb;
      --surface: #ffffff;
      --surface-soft: #eef4f8;
      --text: #172033;
      --muted: #607089;
      --accent: #0e7490;
      --accent-dark: #155e75;
      --border: #dbe5ee;
      --shadow: 0 14px 35px rgba(23, 32, 51, .08);
      --radius: 18px;
      --max: 1080px;
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      background: linear-gradient(180deg, #eef5f8 0%, var(--bg) 28%, var(--bg) 100%);
      color: var(--text);
      line-height: 1.65;
    }

    a { color: inherit; }
    button, a { -webkit-tap-highlight-color: transparent; }

    .container {
      width: min(calc(100% - 32px), var(--max));
      margin: 0 auto;
      padding-bottom: 48px;
    }

    .topbar {
      display: flex;
      justify-content: flex-end;
      padding: 18px 0 8px;
    }

    .lang-switch {
      display: inline-flex;
      gap: 4px;
      padding: 4px;
      border: 1px solid var(--border);
      background: rgba(255,255,255,.9);
      border-radius: 999px;
      box-shadow: 0 6px 18px rgba(23, 32, 51, .05);
    }

    .lang-switch button {
      border: 0;
      background: transparent;
      color: var(--muted);
      font-weight: 700;
      padding: 8px 12px;
      border-radius: 999px;
      cursor: pointer;
    }

    .lang-switch button.active {
      background: var(--accent);
      color: #fff;
    }

    header {
      position: relative;
      overflow: hidden;
      background: linear-gradient(135deg, #0f172a 0%, #12354a 58%, #0e7490 100%);
      color: #fff;
      padding: 46px;
      border-radius: 28px;
      box-shadow: var(--shadow);
    }

    header::after {
      content: "";
      position: absolute;
      width: 260px;
      height: 260px;
      border-radius: 50%;
      background: rgba(255,255,255,.07);
      right: -80px;
      top: -90px;
    }

    .hero-grid {
      position: relative;
      z-index: 1;
      display: grid;
      grid-template-columns: 112px 1fr;
      gap: 28px;
      align-items: center;
    }

    .profile-wrap {
      width: 112px;
      height: 112px;
      border-radius: 50%;
      display: grid;
      place-items: center;
      background: rgba(255,255,255,.14);
      border: 3px solid rgba(255,255,255,.5);
      overflow: hidden;
      font-size: 30px;
      font-weight: 800;
    }

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

    h1 {
      margin: 0;
      font-size: clamp(2rem, 5vw, 3.25rem);
      line-height: 1.1;
      letter-spacing: -.03em;
    }

    .subtitle {
      margin-top: 10px;
      color: #d5eef4;
      font-size: 1.05rem;
      font-weight: 650;
    }

    .hero-copy {
      max-width: 800px;
      margin-top: 16px;
      color: #e7f1f5;
      font-size: 1rem;
    }

    .social-links {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 22px;
    }

    .social-link {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      min-height: 42px;
      padding: 9px 14px;
      border: 1px solid rgba(255,255,255,.28);
      border-radius: 999px;
      color: #fff;
      text-decoration: none;
      font-weight: 700;
      background: rgba(255,255,255,.08);
      transition: transform .2s ease, background .2s ease;
    }

    .social-link:hover,
    .social-link:focus-visible {
      background: rgba(255,255,255,.16);
      transform: translateY(-1px);
      outline: none;
    }

    .section {
      margin-top: 24px;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 30px;
      box-shadow: 0 8px 26px rgba(23, 32, 51, .045);
    }

    .section h2 {
      margin: 0 0 16px;
      font-size: 1.5rem;
      letter-spacing: -.02em;
    }

    .section-lead {
      margin: -4px 0 22px;
      color: var(--muted);
    }

    .summary-grid,
    .project-grid,
    .link-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 16px;
    }

    .card {
      border: 1px solid var(--border);
      background: linear-gradient(180deg, #fff, #fbfdff);
      border-radius: 16px;
      padding: 20px;
    }

    .card h3 {
      margin: 0 0 8px;
      font-size: 1.05rem;
    }

    .card p {
      margin: 0;
      color: var(--muted);
      font-size: .96rem;
    }

    .tag-list {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 16px;
    }

    .tag {
      display: inline-flex;
      padding: 6px 10px;
      border-radius: 999px;
      background: var(--surface-soft);
      color: var(--accent-dark);
      font-size: .84rem;
      font-weight: 750;
    }

    .mining-panel {
      display: grid;
      grid-template-columns: .9fr 1.1fr;
      gap: 22px;
      align-items: stretch;
    }

    .mining-highlight {
      padding: 24px;
      border-radius: 16px;
      background: linear-gradient(145deg, #ecf7f7, #eef4f8);
      border: 1px solid #cfe4e8;
    }

    .mining-highlight strong {
      display: block;
      font-size: 1.15rem;
      margin-bottom: 8px;
    }

    .timeline {
      display: grid;
      gap: 14px;
    }

    .timeline-item {
      border-left: 3px solid var(--accent);
      padding: 4px 0 4px 16px;
    }

    .timeline-item .year {
      font-weight: 800;
      color: var(--accent-dark);
      font-size: .9rem;
    }

    .timeline-item p { margin: 3px 0 0; color: var(--muted); }

    .external-card {
      text-decoration: none;
      transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    }

    .external-card:hover,
    .external-card:focus-visible {
      transform: translateY(-2px);
      border-color: #9ec8d3;
      box-shadow: 0 12px 24px rgba(23,32,51,.07);
      outline: none;
    }

    .external-card .arrow {
      display: inline-block;
      margin-top: 14px;
      color: var(--accent-dark);
      font-weight: 800;
    }

    .note {
      margin-top: 16px;
      padding: 14px 16px;
      border-radius: 12px;
      background: #f8fafc;
      border: 1px dashed var(--border);
      color: var(--muted);
      font-size: .92rem;
    }

    footer {
      text-align: center;
      color: var(--muted);
      padding: 28px 10px 4px;
      font-size: .9rem;
    }

    @media (max-width: 820px) {
      header { padding: 34px 26px; }
      .hero-grid { grid-template-columns: 1fr; }
      .profile-wrap { width: 90px; height: 90px; }
      .summary-grid, .project-grid, .link-grid { grid-template-columns: 1fr; }
      .mining-panel { grid-template-columns: 1fr; }
    }

    @media (max-width: 520px) {
      .container { width: min(calc(100% - 20px), var(--max)); }
      .section { padding: 22px 18px; }
      header { border-radius: 20px; }
      .social-link { width: 100%; justify-content: center; }
      .topbar { padding-top: 10px; }
    }

    @media (prefers-reduced-motion: reduce) {
      * { scroll-behavior: auto !important; transition: none !important; }
    }


[hidden] { display: none !important; }
