:root {
      --bg: #f4f7fb;
      --surface: #ffffff;
      --surface-2: #eef3f8;
      --text: #172033;
      --muted: #667085;
      --line: #dfe6ef;
      --navy: #18324f;
      --blue: #2d6cdf;
      --blue-dark: #1f56b5;
      --accent: #8fb7ff;
      --success: #147d64;
      --shadow: 0 18px 50px rgba(20, 43, 77, .10);
      --radius: 22px;
    }

    * { 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:
        radial-gradient(circle at 8% 0%, rgba(45,108,223,.10), transparent 26rem),
        radial-gradient(circle at 100% 18%, rgba(24,50,79,.08), transparent 22rem),
        var(--bg);
      color: var(--text);
      line-height: 1.6;
    }

    a { color: inherit; }
    button, input { font: inherit; }

    .site-header {
      position: sticky;
      top: 0;
      z-index: 1000;
      background: rgba(244,247,251,.88);
      border-bottom: 1px solid rgba(223,230,239,.92);
      backdrop-filter: blur(16px);
    }

    .nav-wrap {
      width: min(1180px, calc(100% - 32px));
      margin: 0 auto;
      min-height: 78px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 22px;
    }

    .brand {
      text-decoration: none;
      display: flex;
      align-items: center;
      gap: 12px;
      min-width: 230px;
    }

    .brand-mark {
      width: 42px;
      height: 42px;
      min-width: 42px;
      max-width: 42px;
      min-height: 42px;
      max-height: 42px;
      border-radius: 14px;
      display: grid;
      place-items: center;
      flex: 0 0 42px;
      background: linear-gradient(135deg, var(--navy), var(--blue));
      color: #fff;
      font-weight: 800;
      box-shadow: 0 10px 24px rgba(45,108,223,.22);
    }

    .brand-mark.brand-photo {
      padding: 0;
      overflow: hidden;
    }

    .brand-mark.brand-photo img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
      border-radius: inherit;
    }

    .brand-copy strong { display: block; font-size: .98rem; }
    .brand-copy span { display: block; font-size: .75rem; color: var(--muted); margin-top: -3px; }

    .menu {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      justify-content: flex-end;
    }

    .menu-btn {
      border: 1px solid transparent;
      background: transparent;
      color: #3b465a;
      padding: 10px 15px;
      border-radius: 999px;
      cursor: pointer;
      font-weight: 700;
      transition: .2s ease;
    }

    .menu-btn:hover,
    .menu-btn.active {
      background: #fff;
      color: var(--blue-dark);
      border-color: var(--line);
      box-shadow: 0 8px 22px rgba(20,43,77,.07);
    }

    main {
      width: min(1180px, calc(100% - 32px));
      margin: 0 auto;
      padding: 34px 0 70px;
    }

    .page { display: block; animation: fade .25s ease; }
    @keyframes fade { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

    .hero {
      min-height: calc(100vh - 150px);
      display: grid;
      grid-template-columns: 1.25fr .75fr;
      align-items: center;
      gap: 62px;
      padding: 30px 0;
    }

    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 7px 11px;
      border: 1px solid #cbd9ec;
      background: rgba(255,255,255,.72);
      color: var(--blue-dark);
      border-radius: 999px;
      font-size: .78rem;
      font-weight: 800;
      letter-spacing: .08em;
      text-transform: uppercase;
    }

    .dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--success);
      box-shadow: 0 0 0 5px rgba(20,125,100,.10);
    }

    h1 {
      font-size: clamp(2.8rem, 7vw, 6.2rem);
      line-height: .96;
      letter-spacing: -.055em;
      margin: 24px 0 20px;
      max-width: 760px;
    }

    .hero h1 span { color: var(--blue); }

    .lead {
      max-width: 720px;
      color: #515d70;
      font-size: clamp(1.04rem, 1.55vw, 1.23rem);
      margin: 0 0 26px;
    }

    .hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 34px; }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 12px 18px;
      border-radius: 12px;
      text-decoration: none;
      border: 1px solid var(--line);
      background: #fff;
      font-weight: 800;
      cursor: pointer;
      transition: .2s ease;
    }
    .btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(20,43,77,.10); }
    .btn.primary { background: var(--navy); color: white; border-color: var(--navy); }

    .stats {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 12px;
    }
    .stat {
      padding: 15px 16px;
      background: rgba(255,255,255,.68);
      border: 1px solid var(--line);
      border-radius: 16px;
    }
    .stat strong { display: block; font-size: 1.28rem; letter-spacing: -.03em; }
    .stat span { display: block; color: var(--muted); font-size: .78rem; line-height: 1.35; margin-top: 3px; }

    .portrait-wrap {
      position: relative;
      max-width: 420px;
      justify-self: end;
    }
    .portrait-wrap::before {
      content: "";
      position: absolute;
      inset: 12% -9% -4% 16%;
      background: linear-gradient(145deg, #cbdcf8, #edf3fb);
      border-radius: 38px;
      transform: rotate(5deg);
      z-index: -1;
    }
    .portrait-card {
      padding: 12px;
      background: #fff;
      border: 1px solid var(--line);
      border-radius: 30px;
      box-shadow: var(--shadow);
    }
    .portrait-card img {
      display: block;
      width: 100%;
      aspect-ratio: 4/5;
      object-fit: cover;
      object-position: center 30%;
      border-radius: 21px;
      background: #eef1f5;
    }

    .section-head { margin: 20px 0 28px; }
    .section-head h2 { margin: 7px 0 6px; font-size: clamp(2rem, 4vw, 3.6rem); letter-spacing: -.045em; line-height: 1.05; }
    .section-head p { color: var(--muted); max-width: 760px; margin: 0; }

    .grid { display: grid; gap: 18px; }
    .grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .card {
      background: rgba(255,255,255,.86);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      padding: 24px;
      box-shadow: 0 10px 30px rgba(20,43,77,.05);
    }
    .card h3 { margin: 7px 0 8px; letter-spacing: -.025em; }
    .card p { color: var(--muted); margin: 0; }
    .tag {
      display: inline-block;
      padding: 5px 9px;
      border-radius: 999px;
      background: #edf4ff;
      color: var(--blue-dark);
      font-size: .72rem;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: .06em;
    }

    .article-card {
      min-height: 220px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }
    .article-card .article-bottom { margin-top: 24px; color: #8a95a6; font-size: .83rem; }

    .tool-card label { display: block; font-weight: 700; font-size: .86rem; margin: 13px 0 6px; }
    .tool-card input {
      width: 100%;
      border: 1px solid #ccd6e4;
      border-radius: 10px;
      padding: 11px 12px;
      outline: none;
      background: #fbfdff;
    }
    .tool-card input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(45,108,223,.10); }
    .tool-result {
      margin-top: 14px;
      padding: 12px 13px;
      border-radius: 11px;
      background: #edf4ff;
      color: #214b8d;
      font-weight: 800;
      min-height: 48px;
      display: flex;
      align-items: center;
    }

    .fiction-hero {
      border-radius: 28px;
      padding: clamp(28px, 6vw, 60px);
      background: linear-gradient(135deg, #1b2940 0%, #2c4f79 100%);
      color: #fff;
      min-height: 330px;
      display: flex;
      align-items: flex-end;
      box-shadow: var(--shadow);
      position: relative;
      overflow: hidden;
    }
    .fiction-hero::after {
      content: "";
      position: absolute;
      width: 300px;
      height: 300px;
      right: -80px;
      top: -80px;
      border-radius: 50%;
      border: 1px solid rgba(255,255,255,.18);
      box-shadow: 0 0 0 48px rgba(255,255,255,.035), 0 0 0 96px rgba(255,255,255,.025);
    }
    .fiction-hero p { max-width: 650px; color: #d7e1ee; }

    .about-layout { display: grid; grid-template-columns: .88fr 1.12fr; gap: 24px; align-items: start; }
    .profile-mini { position: sticky; top: 110px; }
    .profile-mini img { width: 100%; aspect-ratio: 4/4.8; object-fit: cover; object-position: center 30%; border-radius: 18px; }
    .contact-links { display: grid; gap: 8px; margin-top: 18px; }
    .contact-links a { text-decoration: none; color: var(--blue-dark); font-weight: 700; word-break: break-word; }

    .timeline { position: relative; padding-left: 22px; }
    .timeline::before { content: ""; position: absolute; left: 4px; top: 9px; bottom: 9px; width: 2px; background: #d9e2ee; }
    .timeline-item { position: relative; padding: 0 0 25px 18px; }
    .timeline-item::before { content: ""; position: absolute; left: -22px; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px #e7effd; }
    .timeline-item:last-child { padding-bottom: 0; }
    .timeline-item h3 { margin: 0; font-size: 1.03rem; }
    .timeline-item .meta { color: var(--blue-dark); font-weight: 700; font-size: .85rem; margin: 2px 0 7px; }
    .timeline-item p { color: var(--muted); margin: 0; font-size: .92rem; }

    .chip-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
    .chip { padding: 8px 10px; background: var(--surface-2); border: 1px solid #dbe4ef; border-radius: 999px; font-size: .78rem; font-weight: 700; color: #445166; }

    .edu-row { padding: 13px 0; border-bottom: 1px solid var(--line); }
    .edu-row:last-child { border-bottom: 0; }
    .edu-row strong { display: block; }
    .edu-row span { color: var(--muted); font-size: .88rem; }

    footer {
      width: min(1180px, calc(100% - 32px));
      margin: 0 auto;
      padding: 24px 0 38px;
      color: #7b8797;
      font-size: .82rem;
      border-top: 1px solid var(--line);
      display: flex;
      justify-content: space-between;
      gap: 18px;
      flex-wrap: wrap;
    }

    @media (max-width: 980px) {
      .nav-wrap { align-items: flex-start; padding: 15px 0; flex-direction: column; }
      .brand { min-width: 0; }
      .menu { width: 100%; justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; }
      .menu-btn { white-space: nowrap; }
      .hero { grid-template-columns: 1fr; min-height: auto; gap: 32px; padding-top: 20px; }
      .portrait-wrap { justify-self: start; max-width: 370px; }
      .grid.three { grid-template-columns: 1fr 1fr; }
      .about-layout { grid-template-columns: 1fr; }
      .profile-mini { position: static; }
    }

    @media (max-width: 680px) {
      main { width: min(100% - 22px, 1180px); padding-top: 18px; }
      .brand-copy span { display: none; }
      .stats { grid-template-columns: 1fr 1fr; }
      .grid.three, .grid.two { grid-template-columns: 1fr; }
      .portrait-wrap { max-width: 100%; }
      h1 { font-size: clamp(2.6rem, 15vw, 4.4rem); }
      .card { padding: 20px; }
    }

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

    .menu-btn:focus-visible,
    .btn:focus-visible,
    .brand:focus-visible {
      outline: 3px solid rgba(45,108,223,.25);
      outline-offset: 3px;
    }
