  :root {
    --bg: #eef0f3;
    --surface: #ffffff;
    --surface-2: #f5f6f8;
    --border: rgba(27, 33, 43, 0.08);
    --text: #1b212b;
    --text-muted: #5b6472;
    --accent: #b8712a;
    --accent-soft: rgba(184, 113, 42, 0.12);
    --shadow: 0 1px 2px rgba(20, 24, 32, 0.04), 0 8px 24px rgba(20, 24, 32, 0.05);
    --radius: 8px;
    --azure: #0f6cbd;
    --m365: #6a5fd3;
  }

  @media (prefers-color-scheme: dark) {
    :root {
      --bg: #10141b;
      --surface: #171e28;
      --surface-2: #1c2430;
      --border: rgba(231, 235, 241, 0.1);
      --text: #e7ebf1;
      --text-muted: #8b95a5;
      --accent: #d98c3d;
      --accent-soft: rgba(217, 140, 61, 0.14);
      --shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 12px 32px rgba(0, 0, 0, 0.3);
      --azure: #4cc2ff;
      --m365: #a29bfe;
    }
  }

  :root[data-theme="dark"] {
    --bg: #10141b;
    --surface: #171e28;
    --surface-2: #1c2430;
    --border: rgba(231, 235, 241, 0.1);
    --text: #e7ebf1;
    --text-muted: #8b95a5;
    --accent: #d98c3d;
    --accent-soft: rgba(217, 140, 61, 0.14);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 12px 32px rgba(0, 0, 0, 0.3);
    --azure: #4cc2ff;
    --m365: #a29bfe;
  }

  :root[data-theme="light"] {
    --bg: #eef0f3;
    --surface: #ffffff;
    --surface-2: #f5f6f8;
    --border: rgba(27, 33, 43, 0.08);
    --text: #1b212b;
    --text-muted: #5b6472;
    --accent: #b8712a;
    --accent-soft: rgba(184, 113, 42, 0.12);
    --shadow: 0 1px 2px rgba(20, 24, 32, 0.04), 0 8px 24px rgba(20, 24, 32, 0.05);
    --azure: #0f6cbd;
    --m365: #6a5fd3;
  }

  * { box-sizing: border-box; }

  @media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  }

  html, body { height: 100%; overflow: hidden; }

  body {
    margin: 0;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--text);
    font-family: "IBM Plex Sans", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
    position: relative;
  }

  .mono {
    font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  }

  a { color: inherit; }

  .wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
  }

  /* ---------- aurora backdrop ---------- */

  .bg-aurora {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
  }

  .blob {
    position: absolute;
    width: 46vw;
    height: 46vw;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.20;
  }

  .blob-a {
    top: -14%;
    left: -8%;
    background: var(--accent);
    animation: drift-a 22s ease-in-out infinite alternate;
  }

  .blob-b {
    bottom: -18%;
    right: -10%;
    background: var(--azure);
    animation: drift-b 26s ease-in-out infinite alternate;
  }

  @keyframes drift-a {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(6vw, 5vw) scale(1.15); }
  }
  @keyframes drift-b {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-5vw, -6vw) scale(1.1); }
  }

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

  /* ---------- scrollbars ---------- */

  .scroll-y {
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
  }
  .scroll-y::-webkit-scrollbar { width: 7px; }
  .scroll-y::-webkit-scrollbar-track { background: transparent; }
  .scroll-y::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }
  .scroll-y::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

  /* ---------- main / layout ---------- */

  main {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: stretch;
    overflow: hidden;
  }

  main .wrap { display: flex; }

  .hero {
    width: 100%;
    height: 100%;
    padding: 1.5rem 0;
    display: grid;
    grid-template-columns: 1fr 1.12fr;
    gap: 3rem;
    align-items: center;
    min-height: 0;
  }

  .profile-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
    padding-right: 0.25rem;
  }

  .panel-col {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    padding: 0.75rem 0;
  }

  .avatar-wrap {
    position: relative;
    width: 168px;
    height: 168px;
    flex: none;
    margin-bottom: 1.4rem;
  }

  .avatar-glow {
    position: absolute;
    inset: -14px;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--accent) 55%, transparent) 0%, transparent 70%);
    filter: blur(10px);
    animation: breathe 5s ease-in-out infinite;
  }

  @keyframes breathe {
    0%, 100% { opacity: 0.35; transform: scale(0.96); }
    50%      { opacity: 0.75; transform: scale(1.04); }
  }

  .avatar-orbit {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0%, var(--accent) 8%, color-mix(in srgb, var(--azure) 80%, var(--accent)) 16%, transparent 30%, transparent 100%);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2.5px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2.5px));
    animation: spin 7s linear infinite;
  }

  .avatar-ring-static {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 1px solid var(--border);
  }

  @keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
  }

  .avatar {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--surface-2);
    border: 2px solid var(--surface);
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(20, 24, 32, 0.18);
    z-index: 1;
  }

  .avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  h1 {
    font-size: clamp(2.15rem, 4.4vw, 3rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 0 0 0.55rem;
    text-wrap: balance;
    opacity: 0;
    animation: rise 0.6s ease forwards;
  }

  .role-line {
    font-family: "IBM Plex Mono", monospace;
    font-size: 1.08rem;
    color: var(--accent);
    margin: 0 0 0.95rem;
    min-height: 1.4em;
    opacity: 0;
    animation: rise 0.6s ease forwards;
    animation-delay: 0.08s;
  }

  .cursor {
    display: inline-block;
    animation: blink 1s steps(2, start) infinite;
  }
  @keyframes blink { 50% { opacity: 0; } }

  .tagline {
    color: var(--text-muted);
    font-size: 1.02rem;
    max-width: 46ch;
    margin: 0 0 1.4rem;
    opacity: 0;
    animation: rise 0.6s ease forwards;
    animation-delay: 0.16s;
  }

  @keyframes rise {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    max-width: 50ch;
    margin: 0 0 1.5rem;
    opacity: 0;
    animation: rise 0.6s ease forwards;
    animation-delay: 0.24s;
  }

  .tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.72rem;
    color: var(--text-muted);
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 0.28rem 0.65rem 0.28rem 0.55rem;
    white-space: nowrap;
  }

  .tag-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex: none;
  }
  .tag-dot.m365 { background: var(--m365); }
  .tag-dot.azure { background: var(--azure); }
  .tag-dot.onprem { background: var(--accent); }

  .cta-row {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: rise 0.6s ease forwards;
    animation-delay: 0.36s;
  }

  .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.94rem;
    font-weight: 500;
    text-decoration: none;
    padding: 0.65rem 1.2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
  }

  .btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
  }
  .btn-primary:hover { background: color-mix(in srgb, var(--accent) 85%, black); transform: translateY(-1px); }

  .btn-ghost {
    color: var(--text);
    background: transparent;
  }
  .btn-ghost:hover { border-color: var(--accent); transform: translateY(-1px); }

  /* ---------- certification panel ---------- */

  .panel {
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    backdrop-filter: blur(6px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    transition: box-shadow 0.2s ease;
  }

  .panel[hidden] { display: none !important; }

  .panel.is-minimized {
    height: auto;
    flex: none;
  }
  .panel.is-minimized .panel-body { display: none; }

  .panel.is-maximized {
    position: fixed;
    inset: 6vh 6vw;
    height: auto;
    width: auto;
    max-width: none;
    z-index: 60;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  }

  .panel-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 12, 16, 0.55);
    z-index: 50;
  }
  .panel-backdrop[hidden] { display: none; }

  .panel-restore {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    height: 100%;
    justify-content: center;
    font-size: 0.78rem;
    color: var(--text-muted);
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease;
  }
  .panel-restore:hover { color: var(--text); border-color: var(--accent); }
  .panel-restore[hidden] { display: none; }

  .panel-titlebar {
    display: flex;
    align-items: center;
    padding: 0.55rem 0.9rem;
    border-bottom: 1px solid var(--border);
    background: var(--surface-2);
    flex: none;
  }

  .panel-title {
    flex: 1;
    text-align: center;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    color: var(--text-muted);
  }

  .panel-titlebar-spacer { flex: 0 0 45px; }

  .panel-head {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.55rem 0.9rem;
    border-bottom: 1px solid var(--border);
    background: var(--surface-2);
    flex: none;
  }

  .panel-dots { display: flex; align-items: center; gap: 0.4rem; flex: none; }
  .dot-static { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
  .dot-static.red { background: #e0645a; }

  .dot-btn {
    width: 11px;
    height: 11px;
    padding: 0;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: filter 0.15s ease, transform 0.1s ease;
  }
  .dot-btn:hover { filter: brightness(1.15); transform: scale(1.1); }
  .dot-btn:active { transform: scale(0.92); }
  .dot-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  .dot-btn.red { background: #e0645a; }
  .dot-btn.yellow { background: #e0b04d; }
  .dot-btn.green { background: #59b37d; }

  .panel-tabs { display: flex; gap: 1.1rem; overflow-x: auto; scrollbar-width: none; }
  .panel-tabs::-webkit-scrollbar { display: none; }

  .tab-btn {
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.76rem;
    color: var(--text-muted);
    background: none;
    border: none;
    padding: 0.15rem 0 0.35rem;
    cursor: pointer;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
  }
  .tab-btn:hover { color: var(--text); }
  .tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }

  .tab-content { display: none; height: 100%; }
  .tab-content.active { display: block; }

  .whoami-out {
    display: flex;
    flex-direction: column;
    height: 100%;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.83rem;
    line-height: 1.5;
    max-width: 56ch;
  }

  .whoami-out .prompt { color: var(--accent); font-weight: 600; }

  .whoami-out .section-label {
    color: var(--text-muted);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    margin: 0.8rem 0 0.35rem;
  }
  .whoami-out .section-label:first-of-type { margin-top: 0.9rem; }

  .whoami-out .rule { color: var(--border); letter-spacing: 0.05em; margin-bottom: 0.1rem; }

  .whoami-kv { display: grid; grid-template-columns: 90px 1fr; row-gap: 0.25rem; }
  .whoami-kv .k { color: var(--text-muted); }
  .whoami-kv .v { color: var(--text); }

  .panel-body {
    flex: 1;
    min-height: 0;
    padding: 0.85rem 1.1rem;
  }

  .cert-path-list {
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 3.5vh, 2rem);
    height: 100%;
  }

  .track-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.7rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
  }

  .track-path {
    position: relative;
    display: flex;
    width: 100%;
    align-items: stretch;
    max-width: 100%;
    overflow-x: visible;
    padding: 0.15rem 0.15rem 0.2rem;
  }

  .track-node {
    position: relative;
    flex: 0 0 184px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 0.4rem;
  }

  .seal {
    flex: none;
    width: 32px;
    height: 32px;
    margin-bottom: 0.35rem;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 0 0 1px var(--border);
  }

  .cert-info { min-width: 0; width: 100%; flex: 1; display: flex; flex-direction: column; align-items: center; }

  .cert-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.25;
    margin-bottom: 0.2rem;
    min-height: 3rem;
  }

  .cert-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0.35rem;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 0.22rem;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
  }

  .tier-chip {
    font-size: 0.62rem;
    letter-spacing: 0.03em;
    color: var(--accent);
    background: var(--accent-soft);
    border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
    border-radius: 100px;
    padding: 0.1rem 0.42rem;
  }

  .cert-link {
    display: inline-block;
    margin-top: auto;
    padding-top: 0.15rem;
    font-size: 0.74rem;
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  }
  .cert-link:hover { border-bottom-color: var(--accent); }

  /* ---------- interactieve terminal-prompt ---------- */

  .term-block {
    margin-top: auto;
    padding-top: 0.8rem;
    flex: none;
  }

  .term-log {
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.72rem;
    line-height: 1.5;
  }
  .term-log:not(:empty) { margin-bottom: 0.8rem; }
  .term-log:empty { display: none; margin: 0; }

  .term-line { color: var(--text-muted); }
  .term-line .prompt { color: var(--accent); font-weight: 600; }

  .term-out {
    color: var(--text);
    margin: 0 0 0.5rem;
    white-space: pre-wrap;
  }
  .term-out.term-error { color: var(--text-muted); font-style: italic; }
  .term-out a { color: var(--accent); }
  .term-out code {
    color: var(--accent);
    background: var(--accent-soft);
    border-radius: 4px;
    padding: 0.05rem 0.3rem;
  }

  .term-hint {
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.68rem;
    color: var(--text-muted);
    margin: 0.8rem 0 0.4rem;
  }
  .term-hint code {
    color: var(--accent);
    background: var(--accent-soft);
    border-radius: 4px;
    padding: 0.05rem 0.3rem;
    font-family: inherit;
  }

  .term-input-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  .term-input-row .prompt {
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.83rem;
    color: var(--accent);
    font-weight: 600;
    flex: none;
  }
  .term-input {
    flex: 1;
    min-width: 0;
    background: none;
    border: none;
    outline: none;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.83rem;
    color: var(--text);
    caret-color: var(--accent);
  }
  .term-input::placeholder { color: var(--text-muted); opacity: 0.7; }

  /* ---------- flag-capture viering ---------- */

  .confetti-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 80;
    overflow: hidden;
  }

  .confetti-piece {
    position: absolute;
    top: -12px;
    width: 8px;
    height: 14px;
    opacity: 0.9;
    border-radius: 2px;
    animation-name: confetti-fall;
    animation-timing-function: ease-in;
    animation-fill-mode: forwards;
  }

  @keyframes confetti-fall {
    0%   { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(105vh) rotate(360deg); opacity: 0; }
  }

  .flag-banner {
    position: fixed;
    top: 18%;
    left: 50%;
    z-index: 90;
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    border-radius: 100px;
    padding: 0.7rem 1.4rem;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.95rem;
    color: var(--text);
    backdrop-filter: blur(6px);
    animation: flag-banner-in 0.35s ease forwards;
    white-space: nowrap;
  }
  .flag-banner strong { color: var(--accent); }
  .flag-banner.flag-banner-out { animation: flag-banner-out 0.5s ease forwards; }

  @keyframes flag-banner-in {
    from { opacity: 0; transform: translate(-50%, -24px); }
    to   { opacity: 1; transform: translate(-50%, 0); }
  }
  @keyframes flag-banner-out {
    from { opacity: 1; transform: translate(-50%, 0); }
    to   { opacity: 0; transform: translate(-50%, -16px); }
  }

  /* ---------- footer ---------- */

  footer {
    flex: none;
    border-top: 1px solid var(--border);
    padding: 0.65rem 0;
  }
  footer .wrap { display: flex; justify-content: center; }
  .copyright { font-size: 0.78rem; color: var(--text-muted); }

  @media (max-width: 800px) {
    main { overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
    body.no-scroll main { overflow: hidden; }
    .hero {
      grid-template-columns: 1fr;
      grid-auto-rows: min-content;
      gap: 1.75rem;
      height: auto;
      padding: 1.25rem 0 1.75rem;
    }
    .panel-col { height: min(58vh, 440px); }
    .blob { width: 80vw; height: 80vw; animation: none; }
    .avatar-wrap { width: 84px; height: 84px; }
    .tab-btn { padding: 0.5rem 0 0.55rem; }
    .track-path {
      overflow-x: auto;
      scrollbar-width: thin;
      scrollbar-color: var(--border) transparent;
    }
    .track-path::-webkit-scrollbar { height: 6px; }
    .track-path::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }
  }
