:root {
      --bg: #f7f8fa;
      --paper: #ffffff;
      --text: #101317;
      --muted: #5f6872;
      --soft: #d8dde3;
      --line: #bfc7d1;
      --hard: #101317;
      --accent: #006c86;
      --accent-2: #0b7a4f;
      --max: 1180px;
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      color: var(--text);
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      line-height: 1.55;
      background:
        linear-gradient(to right, rgba(16,19,23,.045) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(16,19,23,.045) 1px, transparent 1px),
        var(--bg);
      background-size: 48px 48px;
    }

    a { color: inherit; text-decoration: none; }

    .page {
      min-height: 100vh;
    }

    .nav {
      width: min(var(--max), calc(100% - 48px));
      margin: 0 auto;
      padding: 28px 0 18px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
      border-bottom: 1px solid var(--hard);
    }

    .brand {
      display: inline-flex;
      align-items: center;
      gap: 12px;
      font-weight: 800;
      letter-spacing: -.03em;
    }

    .brand-mark {
      width: 36px;
      height: 36px;
      display: grid;
      place-items: center;
      background: var(--hard);
      color: #fff;
      font-size: 13px;
      font-weight: 900;
      letter-spacing: -.07em;
    }

    .nav-links {
      display: flex;
      align-items: center;
      gap: 22px;
      color: var(--muted);
      font-size: 13px;
      font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
      text-transform: uppercase;
      letter-spacing: .05em;
    }

    .nav-links a:hover { color: var(--hard); }

    .hero {
      width: min(var(--max), calc(100% - 48px));
      margin: 54px auto 0;
      display: grid;
      grid-template-columns: minmax(0, 1.18fr) minmax(300px, .82fr);
      gap: 48px;
      align-items: stretch;
    }

    .hero-copy {
      background: rgba(255,255,255,.72);
      padding: clamp(34px, 6vw, 76px) 0 clamp(34px, 6vw, 76px) clamp(26px, 4vw, 48px);
      border-left: 8px solid var(--hard);
      position: relative;
    }

    .hero-copy::before {
      content: "01 / PROFILE";
      position: absolute;
      top: 0;
      left: clamp(26px, 4vw, 48px);
      transform: translateY(-50%);
      padding: 4px 9px;
      background: var(--bg);
      border: 1px solid var(--hard);
      color: var(--hard);
      font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: .08em;
    }

    .eyebrow {
      margin: 0 0 20px;
      color: var(--accent);
      font-size: 12px;
      font-weight: 800;
      letter-spacing: .16em;
      text-transform: uppercase;
      font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    }

    h1 {
      margin: 0;
      max-width: 9ch;
      font-size: clamp(58px, 9vw, 116px);
      line-height: .86;
      letter-spacing: -.085em;
    }

    .lead {
      margin: 30px 0 0;
      max-width: 740px;
      color: #252b31;
      font-size: clamp(22px, 2.1vw, 30px);
      line-height: 1.22;
      letter-spacing: -.045em;
    }

    .hero-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 34px;
    }

    .button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 46px;
      padding: 0 16px;
      border: 1px solid var(--hard);
      background: var(--paper);
      color: var(--hard);
      font-size: 13px;
      font-weight: 800;
      letter-spacing: .02em;
      text-transform: uppercase;
      font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    }

    .button.primary {
      background: var(--hard);
      color: #fff;
    }

    .button:hover { outline: 2px solid var(--accent); outline-offset: 2px; }

    .portrait-card {
      background: rgba(255,255,255,.64);
      display: grid;
      grid-template-rows: 1fr auto;
      min-height: 610px;
      border-top: 8px solid var(--hard);
    }

    .portrait {
      min-height: 430px;
      border: 1px solid var(--hard);
      border-top: 0;
      background: #fff;
      display: grid;
      place-items: center;
      position: relative;
      overflow: hidden;
    }

    .portrait-note {
      margin-top: 18px;
      padding: 18px 18px 20px;
      display: grid;
      gap: 9px;
      background: var(--paper);
      border: 1px solid var(--hard);
      border-left-width: 6px;
    }

    .portrait-note-label {
      color: var(--accent);
      font-size: 10px;
      font-weight: 900;
      letter-spacing: .14em;
      text-transform: uppercase;
      font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    }

    .portrait-note strong {
      font-size: 24px;
      line-height: 1.04;
      letter-spacing: -.05em;
    }

    .portrait-note span:last-child {
      color: var(--muted);
      font-size: 15px;
      max-width: 34ch;
    }

    main {
      width: min(var(--max), calc(100% - 48px));
      margin: 56px auto 84px;
      display: grid;
      gap: 46px;
    }

    .index {
      display: grid;
      grid-template-columns: 190px 1fr;
      border-top: 2px solid var(--hard);
      border-bottom: 1px solid var(--hard);
      background: rgba(255,255,255,.56);
    }

    .index-label {
      padding: 14px 18px 14px 0;
      border-right: 1px solid var(--hard);
      color: var(--muted);
      font-size: 11px;
      font-weight: 800;
      letter-spacing: .12em;
      text-transform: uppercase;
      font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    }

    .index-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      padding: 10px 0 10px 18px;
      align-items: center;
    }

    .tag {
      display: inline-flex;
      align-items: center;
      min-height: 32px;
      padding: 0 10px;
      border-left: 3px solid var(--hard);
      background: var(--paper);
      color: #20262d;
      font-size: 12px;
      font-weight: 800;
      letter-spacing: .03em;
      text-transform: uppercase;
      font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    }

    .tag::before {
      content: "#";
      margin-right: 5px;
      color: var(--accent);
    }

    .grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 48px;
      align-items: start;
    }

    .section-card {
      padding-top: 22px;
      border-top: 2px solid var(--hard);
    }

    .section-card:nth-child(even) { border-top-color: var(--accent); }

    h2 {
      margin: 0 0 18px;
      font-size: clamp(30px, 4vw, 50px);
      line-height: .96;
      letter-spacing: -.065em;
    }

    .section-card p {
      margin: 0;
      color: #2b3137;
      font-size: 17px;
      max-width: 62ch;
    }

    .section-card p + p { margin-top: 15px; }

    .list {
      display: grid;
      gap: 0;
      margin-top: 24px;
      border-top: 1px solid var(--line);
    }

    .item {
      display: grid;
      grid-template-columns: minmax(130px, .34fr) 1fr;
      gap: 18px;
      padding: 18px 0;
      border-bottom: 1px solid var(--line);
    }

    .item strong {
      letter-spacing: -.03em;
      font-size: 17px;
    }

    .item span {
      color: var(--muted);
      font-size: 15px;
    }

    .refs {
      display: grid;
      gap: 1px;
      background: var(--hard);
      border: 1px solid var(--hard);
      margin-top: 24px;
    }

    .ref-link {
      display: grid;
      grid-template-columns: 150px 1fr auto;
      gap: 18px;
      align-items: center;
      min-height: 62px;
      padding: 13px 16px;
      background: var(--paper);
    }

    .ref-link:hover { background: #f2f5f8; }

    .ref-kind {
      color: var(--accent);
      font-size: 11px;
      font-weight: 800;
      letter-spacing: .12em;
      text-transform: uppercase;
      font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    }

    .ref-title {
      font-size: 17px;
      font-weight: 850;
      letter-spacing: -.03em;
    }

    .ref-url {
      color: var(--muted);
      font-size: 12px;
      font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
      white-space: nowrap;
    }

    .footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
      padding: 26px 0 0;
      color: var(--muted);
      font-size: 13px;
      border-top: 1px solid var(--hard);
      font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
      text-transform: uppercase;
      letter-spacing: .04em;
    }

    @media (max-width: 900px) {
      .hero, .grid { grid-template-columns: 1fr; }
      .hero { gap: 34px; }
      .portrait-card { min-height: auto; }
      .index { grid-template-columns: 1fr; }
      .index-label { border-right: 0; border-bottom: 1px solid var(--hard); padding-bottom: 10px; }
      .index-tags { padding-left: 0; }
      .ref-link { grid-template-columns: 1fr; gap: 4px; }
      .ref-url { white-space: normal; }
      .nav-links { display: none; }
      .hero-copy { padding-right: 0; }
    }

    @media (max-width: 560px) {
      .nav, .hero, main { width: min(100% - 28px, var(--max)); }
      .hero { margin-top: 34px; }
      .index-tags { gap: 6px; }
      .item { grid-template-columns: 1fr; gap: 4px; }
      .footer { flex-direction: column; align-items: flex-start; }
    }

.identity-map {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #ffffff;
}

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

.portrait {
  background: #ffffff;
}

@media (max-width: 900px) {
  .identity-map {
    min-height: 320px;
  }
}
