* {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      min-height: 100vh;
      background: #000;
      color: #f5f5f5;
      font-family:
        "Inter",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;
      font-weight: 400;
      display: flex;
      flex-direction: column;
    }

    main {
      flex: 1;
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 48px 24px;
    }

    .hero {
      width: 100%;
      max-width: 760px;
      text-align: center;
    }

    .logo {
      width: min(330px, 70vw);
      height: auto;
      margin-bottom: 32px;
    }

    h1 {
      font-size: clamp(2.4rem, 7vw, 4.5rem);
      line-height: 1;
      letter-spacing: -0.055em;
      font-weight: 700;
    }

    .role {
      font-weight: 500;
      margin-top: 18px;
      color: #bcbcbc;
      font-size: clamp(1rem, 2.5vw, 1.25rem);
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .description {
      max-width: 600px;
      margin: 28px auto 0;
      color: #a6a6a6;
      font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
      line-height: 1.7;
    }

    .areas {
      margin-top: 28px;
      color: #c7c7c7;
      font-size: 0.9rem;
      letter-spacing: 0.06em;
    }

    .links {
      margin-top: 42px;
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 12px;
    }

    .links a {
      font-weight: 500;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 120px;
      padding: 12px 20px;

      color: #eaeaea;
      text-decoration: none;
      font-size: 0.9rem;

      border: 1px solid #333;
      border-radius: 8px;
      background: rgba(255, 255, 255, 0.025);

      transition:
        border-color 0.2s ease,
        background 0.2s ease;
    }

    .links a:focus-visible {
      outline: 2px solid #eaeaea;
      outline-offset: 4px;
    }

    .links a:hover {
      border-color: #777;
      background: rgba(255, 255, 255, 0.06);
    }

    .content {
      max-width: 600px;
      margin: 42px auto 0;
    }

    .content h2 {
      color: #f5f5f5;
      font-size: 1.25rem;
      font-weight: 700;
    }

    .content h3 {
      margin-top: 24px;
      color: #f5f5f5;
      font-size: 1rem;
      font-weight: 700;
    }

    .content p {
      margin-top: 12px;
      color: #a6a6a6;
      font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
      line-height: 1.7;
    }

    footer {
      padding: 24px;
      text-align: center;
      color: #555;
      font-size: 0.8rem;
    }

    @media (max-width: 600px) {
      main {
        padding: 36px 20px;
      }

      .logo {
        width: min(280px, 78vw);
      }

      .links {
        margin-top: 34px;
      }
    }
    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      .links a { transition: none; }
      .links a:hover { transform: none; }
    }
  
    body { min-height: 100svh; }
    main { padding: 24px; }
    .logo { width: min(330px, 55vw, 29svh); margin-bottom: 20px; }
    .page-nav {
      margin: 0;
      padding: 16px 16px 8px;
      gap: 10px;
      flex-shrink: 0;
    }
    .page-nav a {
      min-width: 0;
      min-height: 44px;
      padding: 10px 18px;
      border: 0;
      border-radius: 0;
      background: transparent;
      color: #a6a6a6;
      transition: color 180ms ease;
    }
    .page-nav a:hover, .page-nav a:focus-visible {
      color: #eee;
      background: transparent;
    }
    .page-nav a[aria-current="page"] {
      color: #eee;
      background: transparent;
    }
    @media screen {
      body:has(> .page-nav) {
        padding-bottom: calc(68px + env(safe-area-inset-bottom));
      }
      body > .page-nav {
        position: fixed;
        inset: auto 0 0;
        z-index: 10;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 110px));
        justify-content: center;
        gap: 0;
        padding: 12px 8px calc(12px + env(safe-area-inset-bottom));
        background: #000;
      }
      body > .page-nav a {
        height: 44px;
        padding: 4px;
        font-size: clamp(.75rem, 2.5vw, .9rem);
        text-align: center;
      }
      html:has(body > .page-nav) {
        scroll-padding-bottom: calc(84px + env(safe-area-inset-bottom));
      }
    }
    .page > h1 { font-size: clamp(2rem, 6vw, 3.5rem); }
    .page .content { margin-top: 28px; }
    .page .content h2 { margin-top: 24px; font-size: 1.25rem; }
    footer { padding: 16px 16px max(16px, env(safe-area-inset-bottom)); }
    @media (max-height: 760px) {
      .logo { width: min(220px, 24svh); margin-bottom: 16px; }
      .description, .areas { margin-top: 18px; }
      .role { margin-top: 14px; }
      .links:not(.page-nav) { margin-top: 24px; }
    }
    @media (max-width: 600px) {
      main { padding: 24px 20px; }
      .page-nav a { padding: 10px 14px; }
      .areas { line-height: 1.8; }
    }

    .page { animation: page-fade-in 220ms ease-out; }
    @keyframes page-fade-in {
      from { opacity: .35; }
      to { opacity: 1; }
    }
    @media (prefers-reduced-motion: reduce) {
      .page { animation: none; }
      .page-nav a { transition: none; }
    }

/* Optional public-text view. Native disclosure works without JavaScript or storage. */
.plain-reader { width:calc(100% - 40px); max-width:1024px; margin:0 auto 20px; color:#a6a6a6; }
.plain-reader summary { width:max-content; max-width:100%; margin:auto; padding:10px 14px; cursor:pointer; font-size:.85rem; border:1px solid #333; border-radius:8px; }
.plain-reader summary:focus-visible { outline:2px solid #eee; outline-offset:4px; }
.plain-reader-body { margin-top:16px; padding:20px; border:1px solid #333; border-radius:8px; background:#090909; }
.plain-reader p { margin-bottom:12px; font-size:.9rem; line-height:1.6; }
.plain-reader a { color:#ddd; text-underline-offset:3px; }
.plain-reader pre { white-space:pre-wrap; overflow-wrap:anywhere; font-size:.85rem; line-height:1.7; max-height:60vh; overflow:auto; }
@media print { .plain-reader { display:none!important; } }

/* Consistent purple legal links across the site and tools. */
body > footer a:any-link { color: #a855f7; text-underline-offset: 3px; }
body > footer a:hover, body > footer a:focus-visible { color: #c084fc; }

/* Expanded text mode replaces the page without removing form state. */
.plain-label-on { display:none; }
.plain-reader details[open] .plain-label-off { display:none; }
.plain-reader details[open] .plain-label-on { display:inline; }
body:has(.plain-reader details[open]) { display:block; min-height:100svh; background:#000; }
body:has(.plain-reader details[open]) > :not(.plain-reader) { display:none!important; }
body:has(.plain-reader details[open]) .plain-reader { width:auto; max-width:90ch; margin:0 auto; padding:28px 20px; color:#ddd; font-family:monospace; }
.plain-reader details[open] summary { margin:0 0 24px; border-color:#a855f7; color:#c084fc; }
.plain-reader details[open] .plain-reader-body { margin:0; padding:0; border:0; border-radius:0; background:transparent; }
.plain-reader details[open] pre { max-height:none; overflow:visible; font-size:1rem; }
.plain-reader-body nav { margin:20px 0; line-height:2; }
@media print {
  body:has(.plain-reader details[open]) .plain-reader { display:block!important; color:#000; padding:0; max-width:none; }
  .plain-reader details[open] summary, .plain-reader details[open] .plain-reader-body > p, .plain-reader details[open] nav { display:none; }
}

/* Keep the view switch available in the top-right corner in either mode. */
@media screen {
  body:has(.plain-reader) { padding-top:76px; }
  .plain-reader:has(details:not([open])) { margin:0; height:0; }
  .plain-reader summary,
  .plain-reader details[open] summary {
    position:fixed;
    top:max(16px, env(safe-area-inset-top));
    right:max(16px, env(safe-area-inset-right));
    z-index:100;
    margin:0;
    max-width:calc(100vw - 32px);
    box-sizing:border-box;
    background:#090909;
    font-family:inherit;
  }
}

/* Compact on/off switch; native disclosure retains keyboard operation. */
@media screen {
  .plain-reader summary,
  .plain-reader details[open] summary {
    display:flex;
    align-items:center;
    min-height:44px;
    padding:10px 62px 10px 10px;
    border:0;
    border-radius:8px;
    list-style:none;
    font-family:Arial, sans-serif;
    font-size:.85rem;
  }
  .plain-reader summary::-webkit-details-marker { display:none; }
  .plain-reader summary::before {
    content:"";
    position:absolute;
    right:4px;
    top:50%;
    width:44px;
    height:26px;
    transform:translateY(-50%);
    border-radius:999px;
    background:#444;
    transition:background 160ms ease;
  }
  .plain-reader summary::after {
    content:"";
    position:absolute;
    right:27px;
    top:50%;
    width:20px;
    height:20px;
    border-radius:50%;
    background:#fff;
    transform:translateY(-50%);
    transition:transform 160ms ease;
  }
  .plain-reader details[open] summary::before { background:#9333ea; }
  .plain-reader details[open] summary::after { transform:translate(18px,-50%); }
  .plain-reader details[open] .plain-label-off { display:inline; }
  .plain-reader details[open] .plain-label-on { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  .plain-reader summary::before, .plain-reader summary::after { transition:none; }
}
