.pane.home {
  --primary-color: #627179;
  --primary-color-50: #eff1f2;
  --primary-color-100: #e0e3e4;
  --primary-color-200: #c8cdd0;
  --primary-color-300: #b1b8bc;
  --primary-color-400: #99a3a8;
  --primary-color-500: #627179;
  --primary-color-600: #536067;
  --primary-color-700: #454f55;
  --primary-color-800: #363e43;
  --primary-color-900: #272d30;
  --top-color: #627179;
  --collapsed-color: #c8cdd0;
  --collapsed-text-color: #363e43;
  --bar-width: clamp(208px, 18vw, 240px);
  --home-surface: rgba(255, 255, 255, 0.96);
  --home-shadow-lg: 0 36px 72px rgba(15, 23, 42, 0.14), 0 16px 36px rgba(15, 23, 42, 0.08);
  --home-card-shadow: 0 24px 48px rgba(15, 23, 42, 0.12);

  background: linear-gradient(
    140deg,
    color-mix(in srgb, white 92%, var(--primary-color-100) 8%) 0%,
    color-mix(in srgb, white 96%, var(--primary-color-200) 4%) 100%
  );
  color: var(--grey-900);
  isolation: isolate;

  &.active {
    flex: 1 1 clamp(780px, 60vw, 1120px);
    min-width: clamp(700px, 56vw, 1020px);

    .home-pane-bar {
      position: absolute;
      top: 0;
      bottom: 0;
      width: var(--bar-width);
      padding: clamp(20px, 2vw, 30px) 0 clamp(20px, 2vw, 30px) clamp(12px, 2vw, 18px);
      display: flex;
      flex-direction: column;
      gap: 16px;
      background: transparent;
      color: var(--grey-900);

      .bar-header {
        display: none;
        flex-direction: row;
        align-items: center;
        gap: 12px;
        padding: 0;
        cursor: pointer;

        &:focus-visible {
          outline: 3px solid var(--primary-color-400);
          outline-offset: 4px;
        }

        .fas,
        i {
          color: var(--primary-color-700);
          font-size: 18px;
        }

        .label {
          writing-mode: initial;
          transform: none;
          font-size: 18px;
          font-weight: 700;
          white-space: normal;
          text-align: left;
          color: inherit;
        }
      }

      .home-bar-actions {
        display: flex;
        flex-direction: column;
        gap: 14px;
        overflow-y: auto;
        padding-right: 6px;
        scrollbar-width: none;

        &::-webkit-scrollbar {
          width: 0;
          height: 0;
        }
      }

      .home-bar-action {
        display: flex;
        flex-direction: column;
        gap: 6px;
        align-items: flex-start;
        text-decoration: none;
        color: inherit;
        border-radius: 16px;
        padding: 14px 16px;
        background: color-mix(in srgb, white 92%, var(--primary-color-100) 8%);
        border: 1px solid color-mix(in srgb, var(--primary-color-300) 60%, transparent 40%);
        box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
        transition:
          transform 150ms ease,
          box-shadow 150ms ease,
          background 150ms ease;

        &:hover {
          transform: translateY(-2px);
          box-shadow: 0 18px 32px rgba(15, 23, 42, 0.12);
        }

        &:focus-visible {
          outline: 3px solid color-mix(in srgb, var(--primary-color-400) 70%, #ffffff 30%);
          outline-offset: 2px;
        }

        .label {
          font-size: 14px;
          font-weight: 600;
          line-height: 1.35;
          white-space: normal;
          color: inherit;
        }
      }

      .home-bar-action-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        border-radius: 10px;
        background: color-mix(in srgb, white 85%, var(--primary-color-100) 15%);
        color: var(--primary-color-700);

        i {
          font-size: 14px;
        }
      }

      .home-bar-action-description {
        font-size: 13px;
        color: var(--grey-600);
        line-height: 1.35;
      }

      .home-bar-action--primary {
        background: color-mix(in srgb, white 88%, var(--primary-color-50) 12%);
        border-color: color-mix(in srgb, var(--primary-color-300) 70%, transparent 30%);
      }

      .home-bar-action--secondary {
        background: color-mix(in srgb, white 96%, var(--primary-color-50) 4%);
        border-color: color-mix(in srgb, var(--primary-color-200) 60%, transparent 40%);
      }

      .home-bar-action--tertiary {
        background: color-mix(in srgb, white 98%, var(--primary-color-100) 2%);
        border-color: color-mix(in srgb, var(--primary-color-200) 50%, transparent 50%);
        box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);

        &:hover {
          box-shadow: 0 14px 26px rgba(15, 23, 42, 0.1);
        }
      }
    }
  }

  .pane-content {
    --pane-content-pad-x: clamp(6px, 2.2vw, 24px);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: clamp(6px, 1.8vw, 18px) var(--pane-content-pad-x);
    overflow-x: hidden;
    scrollbar-width: none;
    min-height: 100%;

    @media (min-width: 768px) {
      left: 0;
      padding-top: clamp(30px, 3.6vw, 42px);
    }

    &::-webkit-scrollbar {
      width: 0;
      height: 0;
    }

    .home-pane-badge {
      align-self: flex-start;
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: 0;
      border: none;
      background: transparent;
      color: var(--grey-900);
      font-weight: 700;
      font-size: 14px;
      cursor: pointer;
      box-shadow: none;
      transition:
        transform 150ms ease,
        color 150ms ease;

      .dssc-logo-mark {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
      }

      .dssc-logo-mark img {
        width: 100%;
        height: 100%;
        display: block;
      }

      &:hover {
        transform: translateY(-1px);
      }

      &:focus-visible {
        outline: 3px solid var(--primary-color-400);
        outline-offset: 3px;
      }
    }

    .home-pane-main {
      display: flex;
      flex-direction: column;
      gap: clamp(32px, 3vw, 48px);
      width: 100%;
      max-width: var(--content-max-width, 1400px);
      margin: clamp(8px, 2.4vw, 24px) 0 clamp(12px, 3vw, 32px);
      padding: clamp(14px, 2.4vw, 26px) clamp(16px, 3.2vw, 32px);
      border-radius: clamp(24px, 3vw, 36px);
      background: var(--home-surface);
      backdrop-filter: blur(14px);
      box-shadow: var(--home-shadow-lg);
      color: inherit;
      flex: 1 0 auto;

      @media (max-width: 1279.5px) {
        margin: clamp(10px, 3.5vw, 26px) 0 clamp(14px, 4.5vw, 34px);
        padding: clamp(12px, 3.2vw, 24px);
      }

      @media (max-width: 1023.5px) {
        margin: clamp(12px, 4.5vw, 32px) 0 clamp(18px, 5.5vw, 40px);
        padding: clamp(14px, 4vw, 28px);
        border-radius: 24px;
      }

      @media (max-width: 767.5px) {
        margin: 8px 0 28px;
        padding: 14px;
        border-radius: 20px;
        gap: 20px;
      }
    }

    /* Stretch the footer to the pane width on home so it doesn't sit like a card. */
    .default-footer {
      align-self: stretch;
      width: calc(100% + (var(--pane-content-pad-x) * 2));
      margin-left: calc(-1 * var(--pane-content-pad-x));
      margin-right: calc(-1 * var(--pane-content-pad-x));
      margin-top: auto;
      padding: 10px 14px 12px;
      --footer-bg: #ffffff;
      background: #ffffff;
      position: relative;
      z-index: 0;
      overflow: visible;

      &::before {
        content: '';
        position: absolute;
        inset: 0;
        left: calc(-1 * var(--bar-width, 0px));
        width: calc(100% + var(--bar-width, 0px));
        background: #ffffff;
        box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.08);
        border-top: 2px solid
          color-mix(in srgb, var(--top-color, var(--primary-color-400)) 50%, #ffffff 50%);
        z-index: -1;
      }

      .footer-inner {
        max-width: none;
        width: 100%;
        gap: 10px;
      }

      .funding-description {
        font-size: 12px;
      }

      .footer-links {
        gap: 6px 10px;
      }
    }
  }

  .home-hero {
    display: flex;
    flex-direction: column;
    gap: clamp(20px, 2.6vw, 32px);
  }

  .home-hero-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: clamp(20px, 2vw, 28px);
  }

  .home-hero-headings {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: min(640px, 80%);

    @media (max-width: 767.5px) {
      max-width: 100%;
      gap: 12px;
    }
  }

  .home-hero-kicker {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--primary-color-700) 80%, #111 20%);
    margin: 0;
  }

  .home-title-trigger {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    color: inherit;
    text-align: left;

    @media (max-width: 767.5px) {
      gap: 12px;
    }

    &:focus-visible {
      outline: 3px solid var(--primary-color-400);
      outline-offset: 4px;
    }
  }

  .home-title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(48px, 4.2vw, 62px);
    height: clamp(48px, 4.2vw, 62px);
    border-radius: 18px;
    background: color-mix(in srgb, white 80%, var(--primary-color-200) 20%);
    color: var(--primary-color-800);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, #ffffff 60%, var(--primary-color-300) 40%);

    i {
      font-size: clamp(20px, 2.4vw, 26px);
    }

    img {
      width: clamp(26px, 2.7vw, 34px);
      height: clamp(26px, 2.7vw, 34px);
      display: block;
    }
  }

  .home-title-text {
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -0.01em;
    font-family: var(--font-heading);
  }

  .home-hero-subtitle {
    margin: 0;
    font-size: clamp(18px, 2.2vw, 20px);
    line-height: 1.6;
    color: var(--grey-700);
  }

  .home-hero-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;

    @media (max-width: 767.5px) {
      margin-left: 0;
    }
  }

  .home-hero-brand .dssc-home-link,
  .home-hero-brand .support-button {
    width: clamp(38px, 3.4vw, 44px);
    height: clamp(38px, 3.4vw, 44px);
    border-radius: 999px;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.14);
  }

  .home-hero-brand .dssc-home-link {
    background: color-mix(in srgb, white 86%, var(--primary-color-100) 14%);
    color: var(--primary-color-700);
  }

  .home-hero-brand .dssc-home-link i {
    font-size: 18px;
  }

  .home-hero-brand .support-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--support-button-color, var(--primary-color-500));
    color: #ffffff;
    font-weight: 800;
    font-size: 20px;
    line-height: 1;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  }

  .home-hero-brand .support-button:hover {
    background: color-mix(in srgb, var(--support-button-color, var(--primary-color-500)) 85%, #000000 15%);
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.18);
  }

  .home-hero-brand .support-button:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--support-button-color, var(--primary-color-500)) 70%, #000000 30%);
    outline-offset: 3px;
  }

  .home-hero-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 16px;
    background: color-mix(in srgb, white 85%, var(--primary-color-100) 15%);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, #ffffff 70%, var(--primary-color-200) 30%);

    img {
      display: block;
      max-height: 36px;
      width: auto;
    }
  }

  .home-hero-brand-label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--primary-color-700) 80%, #111 20%);
    white-space: nowrap;
  }

  .home-intro {
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-size: clamp(17px, 2vw, 18px);
    line-height: 1.65;
    color: var(--grey-700);

    p {
      margin: 0;
    }
  }

  .home-intro .value-unified {
    color: #2f8f5b;
  }

  .home-intro .value-collaborative {
    color: #2a8f8a;
  }

  .home-intro .value-interoperable {
    color: #1f7fc8;
  }

  .home-hero-note {
    margin: 0;
    font-size: 14px;
    color: var(--grey-600);
    letter-spacing: 0.02em;
  }

  .home-nav-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(12px, 1.8vw, 18px);
  }

  .home-nav-card {
    --home-nav-accent: var(--primary-color-600);
    --home-nav-text: #ffffff;
    border: 2px solid color-mix(in srgb, var(--home-nav-accent) 80%, #ffffff 20%);
    border-radius: 18px;
    background:
      linear-gradient(
        180deg,
        color-mix(in srgb, #ffffff 28%, var(--home-nav-accent) 72%) 0%,
        color-mix(in srgb, #ffffff 14%, var(--home-nav-accent) 86%) 100%
      );
    color: var(--home-nav-text);
    padding: 14px 16px;
    min-height: clamp(88px, 9vw, 110px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    font: inherit;
    cursor: pointer;
    box-shadow:
      0 12px 24px rgba(15, 23, 42, 0.12),
      inset 0 0 0 1px color-mix(in srgb, #ffffff 35%, var(--home-nav-accent) 65%);
    transition:
      transform 160ms ease,
      box-shadow 160ms ease,
      border-color 160ms ease,
      filter 160ms ease,
      background 160ms ease;
    position: relative;
    overflow: hidden;
  }

  .home-nav-card:hover {
    transform: translateY(-2px);
    box-shadow:
      0 18px 32px rgba(15, 23, 42, 0.16),
      inset 0 0 0 1px color-mix(in srgb, #ffffff 25%, var(--home-nav-accent) 75%);
    border-color: color-mix(in srgb, var(--home-nav-accent) 88%, #ffffff 12%);
    filter: brightness(0.95) saturate(1.04);
  }

  .home-nav-card:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--home-nav-accent) 70%, #ffffff 30%);
    outline-offset: 3px;
  }


  .home-nav-card-title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: color-mix(in srgb, var(--home-nav-text) 95%, #000 5%);
  }

  .home-nav-card-description {
    font-size: 12px;
    line-height: 1.35;
    opacity: 0.8;
  }

  .home-nav-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: color-mix(in srgb, #ffffff 70%, var(--home-nav-accent) 30%);
    border: 1px solid color-mix(in srgb, #ffffff 40%, var(--home-nav-accent) 60%);
    color: color-mix(in srgb, var(--home-nav-text) 92%, #000 8%);
  }

  .home-nav-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: rgba(0, 0, 0, 0.06);
    opacity: 0;
    transition: opacity 160ms ease;
    pointer-events: none;
  }

  .home-nav-card--intro {
    --home-nav-accent: #5f6c73;
  }

  .home-nav-card--cocreation {
    --home-nav-accent: #6a5fa5;
  }

  .home-nav-card--business {
    --home-nav-accent: #76b82a;
    --home-nav-text: #1f2a1a;
  }

  .home-nav-card--technical {
    --home-nav-accent: #008ecf;
  }

  .home-nav-card--services {
    --home-nav-accent: #35a183;
    --home-nav-text: #0f3a28;
  }

  .home-nav-card--toolbox {
    --home-nav-accent: #fbbc43;
    --home-nav-text: #3b2a00;
  }

  .home-nav-card--glossary {
    --home-nav-accent: #b3b3b3;
    --home-nav-text: #2e2f33;
    grid-column: 1 / -1;
    justify-self: center;
    width: min(420px, 100%);
  }

  .home-nav-card:hover::after {
    opacity: 1;
  }

  .home-cards {
    display: grid;
    gap: clamp(20px, 2.8vw, 28px);
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));

    @media (max-width: 767.5px) {
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
  }

  .home-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: clamp(22px, 2.8vw, 28px);
    border-radius: 22px;
    background: color-mix(in srgb, white 93%, var(--home-card-accent, var(--primary-color-100)) 7%);
    border: 1px solid color-mix(in srgb, var(--home-card-accent, var(--primary-color-300)) 55%, transparent 45%);
    box-shadow: var(--home-card-shadow);
    min-height: 100%;
    overflow: hidden;
    isolation: isolate;

    &::before {
      content: '';
      position: absolute;
      top: 0;
      left: clamp(24px, 3vw, 32px);
      right: clamp(24px, 3vw, 32px);
      height: 4px;
      border-radius: 999px;
      background: color-mix(in srgb, var(--home-card-accent, var(--primary-color-500)) 85%, #ffffff 15%);
    }
  }

  .home-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 32px;
  }

  .home-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: color-mix(in srgb, white 82%, var(--home-card-accent, var(--primary-color-200)) 18%);
    color: color-mix(in srgb, var(--home-card-accent, var(--primary-color-700)) 85%, #222 15%);
    font-size: 18px;
  }

  .home-card-kicker {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--home-card-accent, var(--primary-color-700)) 80%, #111 20%);
  }

  .home-card-title {
    margin: 0;
    font-size: clamp(20px, 2.2vw, 24px);
    line-height: 1.3;
    font-weight: 700;
    color: var(--grey-900);
  }

  .home-card-subtitle {
    margin: 0;
    font-size: 16px;
    color: var(--grey-700);
  }

  .home-card-body {
    font-size: 15px;
    line-height: 1.55;
    color: var(--grey-700);

    p {
      margin-top: 0;
      margin-bottom: 0.75em;
    }
  }

  .home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
  }

  .home-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border-radius: 999px;
    padding: 12px 26px;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.2;
    text-decoration: none;
    transition:
      transform 160ms ease,
      box-shadow 160ms ease,
      background 160ms ease,
      color 160ms ease;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16);

    &:hover {
      transform: translateY(-2px);
    }

    &:focus-visible {
      outline: 3px solid var(--primary-color-400);
      outline-offset: 4px;
    }
  }

  .home-action-btn--primary {
    background: linear-gradient(120deg, #2f2f2f 0%, #1f1f1f 100%);
    color: #ffffff;
    border: none;

    &:hover {
      box-shadow: 0 18px 36px rgba(15, 23, 42, 0.26);
    }
  }

  .home-action-btn--secondary {
    background: white;
    color: var(--grey-900);
    border: 1px solid var(--grey-300);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);

    &:hover {
      box-shadow: 0 14px 28px rgba(15, 23, 42, 0.14);
    }
  }

  .home-action-btn--tertiary {
    background: color-mix(in srgb, white 90%, var(--primary-color-100) 10%);
    border: 1px solid color-mix(in srgb, var(--primary-color-200) 70%, transparent 30%);
    color: var(--grey-800);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);

    &:hover {
      box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
    }
  }

  .home-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    color: currentColor;

    i {
      font-size: 14px;
    }
  }

  @media (max-width: 1439.5px) {
    --bar-width: clamp(140px, 10vw, 180px);

    &.active {
      flex: 1 1 clamp(360px, 30vw, 600px);
      min-width: clamp(340px, 28vw, 540px);
    }

    .home-pane-main {
      gap: clamp(24px, 2.2vw, 36px);
      margin: clamp(6px, 1.8vw, 18px) 0 clamp(10px, 2.4vw, 24px);
      padding: clamp(12px, 2vw, 22px) clamp(12px, 2.4vw, 24px);
      border-radius: clamp(20px, 2.4vw, 30px);
    }

    .home-hero-headings {
      max-width: min(520px, 88%);
      gap: 12px;
    }

    .home-title-text {
      font-size: clamp(24px, 3.2vw, 36px);
    }

    .home-hero-subtitle {
      font-size: clamp(16px, 1.8vw, 18px);
    }

    .home-cards {
      gap: clamp(16px, 2vw, 24px);
      grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .home-card {
      padding: clamp(18px, 2.4vw, 24px);
    }
  }

  @media (max-width: 1279.5px) {
    --bar-width: clamp(196px, 22vw, 228px);
  }

  @media (max-width: 1023.5px) {
    --bar-width: clamp(180px, 26vw, 220px);
  }

  @media (max-width: 767.5px) {
    --bar-width: 100vw;

    .home-nav-grid {
      grid-template-columns: 1fr;
    }

    .home-nav-card {
      align-items: flex-start;
      text-align: left;
    }

    .home-pane-bar {
      display: flex;
      position: static;
      width: 100%;
      padding: 14px 16px;
      flex-direction: row;
      align-items: center;
      gap: 12px;
      background: white;
      border-bottom: 1px solid var(--grey-200);

      .bar-header {
        flex-direction: row;
        align-items: center;
        gap: 8px;
        font-size: 14px;

        .label {
          font-size: 14px;
        }
      }

      .home-bar-actions {
        display: none;
      }
    }

    &.active {
      flex: 1 1 auto;
      width: 100%;
      min-width: 100%;
      height: auto;
      flex-direction: column;

      

        .home-bar-actions {
          display: flex;
          flex-direction: row;
          gap: 10px;
          overflow-y: visible;
          overflow-x: auto;
          padding: 0 0 6px;
          scroll-snap-type: x proximity;
          -webkit-overflow-scrolling: touch;
          width: 100%;

          .home-bar-action {
            flex: 0 0 auto;
            width: clamp(220px, 72vw, 260px);
            min-width: clamp(220px, 72vw, 260px);
            scroll-snap-align: start;
          }
        }
      }

      .pane-content {
        order: 1;
        margin-top: 0;
        width: 100%;
      }

      .home-hero-header {
        flex-direction: column;
      }
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .home-action-btn,
    .home-bar-action,
    .home-nav-card,
    .bar-header {
      transition: none;
    }
  }
}
