@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/fraunces.woff2") format("woff2");
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/manrope.woff2") format("woff2");
}

:root {
  --bg: #f4eee5;
  --surface: #fffdf9;
  --surface-muted: #f8f3eb;
  --surface-dark: #101214;
  --ink: #12161e;
  --ink-soft: #56616e;
  --line: #ded7cd;
  --line-dark: #a59d92;
  --accent: #c94b18;
  --accent-dark: #9b330a;
  --accent-soft: #fff0e6;
  --teal: #07767b;
  --teal-soft: #e1f4f3;
  --green: #00d83c;
  --shadow: 0 22px 70px rgba(28, 24, 18, 0.11);
  --radius-xl: 2rem;
  --radius-lg: 1.4rem;
  --radius-md: 1rem;
  --radius-sm: 0.75rem;
  --container: 1360px;
  --font-display: "Fraunces", serif;
  --font-body: "Manrope", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

::selection {
  background: var(--accent-dark);
  color: #fff;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
}

html:not(.is-ready) .skip-link {
  display: none;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  text-rendering: optimizeLegibility;
}

body,
button {
  font-family: var(--font-body);
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 1rem;
  left: 1rem;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 1rem;
  border-radius: 999px;
  background: var(--surface-dark);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(calc(-100% - 1.25rem));
  transition: transform 180ms ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

.page-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at top left, rgba(239, 100, 39, 0.18), transparent 34rem),
    radial-gradient(circle at bottom right, rgba(8, 126, 131, 0.16), transparent 30rem),
    rgba(255, 255, 255, 0.18);
}

.page-shell {
  position: relative;
  width: min(calc(100% - 2rem), var(--container));
  margin: 1rem auto;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 2.2rem;
  background: rgba(255, 255, 255, 0.28);
}

.site-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
  margin-bottom: 0.8rem;
  padding: 0;
}

.page-content {
  min-width: 0;
}

.page-nav {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 0.35rem;

  a {
    display: inline-flex;
    align-items: center;
    min-height: 2.5rem;
    padding: 0 0.95rem;
    appearance: none;
    border: 1px solid rgba(18, 22, 30, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.54);
    color: var(--ink-soft);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 180ms ease, color 180ms ease;
  }

  a:hover:not(.is-active):not([aria-current="page"]),
  a:focus-visible:not(.is-active):not([aria-current="page"]) {
    background: rgba(255, 255, 255, 0.82);
    color: var(--ink);
  }

}

.site-controls {
  display: flex;
  flex: none;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
}

.page-select-control {
  position: relative;
  display: none;
  min-width: 0;
}

.page-select-native {
  display: none;
}

.page-select-button {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 2.85rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0 0.86rem 0 1rem;
  border: 1px solid rgba(18, 22, 30, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  text-align: left;
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.page-select-button:hover,
.page-select-button:focus-visible,
.page-select-control.is-open .page-select-button {
  border-color: rgba(18, 22, 30, 0.18);
  background: rgba(255, 255, 255, 0.9);
}

.page-select-button span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-select-chevron {
  width: 0.48rem;
  height: 0.48rem;
  flex: none;
  border-right: 2px solid var(--ink-soft);
  border-bottom: 2px solid var(--ink-soft);
  transform: translateY(-18%) rotate(45deg);
  transition: transform 180ms ease;
}

.page-select-control.is-open .page-select-chevron {
  transform: translateY(18%) rotate(225deg);
}

.page-select-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 0.45rem);
  left: 0;
  display: grid;
  width: min(18rem, calc(100vw - 1.2rem));
  gap: 0.2rem;
  padding: 0.35rem;
  border: 1px solid rgba(18, 22, 30, 0.1);
  border-radius: 1.05rem;
  background: rgba(255, 253, 249, 0.97);
  box-shadow: 0 20px 42px rgba(18, 22, 30, 0.16);

  button {
    display: flex;
    min-height: 2.45rem;
    align-items: center;
    padding: 0 0.75rem;
    border: 0;
    border-radius: 0.78rem;
    background: transparent;
    color: var(--ink-soft);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
    text-align: left;
  }

  button:hover,
  button:focus-visible {
    background: rgba(18, 22, 30, 0.06);
    color: var(--ink);
  }

  button.is-active {
    background: var(--surface-dark);
    color: #fff;
  }
}

.page-select-menu[hidden] {
  display: none;
}

.language-switcher {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 2.6rem);
  flex: none;
  gap: 0.2rem;
  padding: 0.25rem;
  border: 1px solid rgba(18, 22, 30, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);

  &[data-language="en"] .language-indicator {
    transform: translateX(2.8rem);
  }

  button {
    position: relative;
    z-index: 1;
    min-width: 2.6rem;
    min-height: 2.6rem;
    padding: 0 0.65rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--ink-soft);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: color 180ms ease;
  }

  button.is-active {
    color: #fff;
  }
}

.language-indicator {
  position: absolute;
  top: 0.25rem;
  left: 0.25rem;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  background: var(--surface-dark);
  box-shadow: 0 4px 12px rgba(18, 22, 30, 0.18);
}

.language-switcher.is-interactive .language-indicator {
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.list-toolbar {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(18, 22, 30, 0.08);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 12px 30px rgba(18, 22, 30, 0.05);
}

.list-count {
  min-inline-size: 11.75rem;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 800;
  white-space: nowrap;
}

.list-segment-group {
  padding: 0.35rem;
  border: 1px solid rgba(18, 22, 30, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
}

.list-segment-control {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.25rem;

  button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.2rem;
    padding: 0 0.78rem;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: var(--ink-soft);
    font: inherit;
    font-size: 0.86rem;
    font-weight: 800;
    cursor: pointer;
    transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
  }

  button:hover,
  button:focus-visible {
    border-color: rgba(7, 118, 123, 0.42);
    background: rgba(225, 244, 243, 0.68);
    color: var(--ink);
  }

  button.is-active {
    border-color: var(--surface-dark);
    background: var(--surface-dark);
    color: #fff;
  }
}

.list-search {
  display: block;
  flex: 1 1 18rem;
  min-width: min(100%, 18rem);
  margin-left: auto;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 800;

  input {
    width: 100%;
    min-height: 2.9rem;
    padding: 0 1rem;
    border: 1px solid rgba(18, 22, 30, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    color: var(--ink);
    font: inherit;
    outline: none;
    transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  }

  input:focus {
    border-color: rgba(7, 118, 123, 0.5);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(7, 118, 123, 0.12);
  }
}

@media (max-width: 760px) {
  .list-toolbar {
    align-items: stretch;
    padding: 0.55rem 0.7rem;
  }

  .list-count,
  .list-segment-group,
  .list-segment-control,
  .list-search {
    width: 100%;
  }

  .list-search {
    flex-basis: 100%;
    margin-left: 0;
  }

  .list-count {
    padding-inline-start: 0.65rem;
  }

  .list-segment-group {
    border-radius: var(--radius-md);
  }

  .list-segment-control {
    flex-wrap: wrap;

    button {
      flex: 1;
      padding: 0 0.65rem;
    }
  }
}

@media (max-width: 400px) {
  .list-segment-control button {
    font-size: 0.78rem;
  }
}

.status-card {
  position: relative;
  z-index: 3;
  width: min(100%, 34rem);
  padding: clamp(1.5rem, 6vw, 2.4rem);
  border: 1px solid rgba(18, 22, 30, 0.08);
  border-radius: 1.7rem;
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--ink);
  line-height: 1.6;
  text-align: center;
}

.status-card h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 3.1rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.status-card p {
  max-width: 28rem;
  margin: 1rem auto 0;
  color: var(--ink-soft);
}

html.is-not-found {
  body {
    display: grid;
    min-height: 100vh;
    min-height: 100dvh;
    place-items: center;
    padding: 1rem;
  }

  .skip-link,
  .page-bg,
  .site-bar,
  .project-footer,
  .trademark-note {
    display: none !important;
  }

  .page-shell {
    width: min(100%, 34rem);
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
  }

  #app,
  .status-card {
    width: 100%;
  }
}

.hero,
.section,
.context-strip,
.project-footer {
  border: 1px solid rgba(18, 22, 30, 0.07);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding: clamp(1.5rem, 4vw, 3.5rem);
}

.hero-copy,
.hero-visual,
.section-head > *,
.cluster-head > * {
  min-width: 0;
}

.eyebrow,
.section-kicker {
  margin: 0 0 0.9rem;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.section h2,
.context-strip h2 {
  margin: 0;
  overflow-wrap: normal;
  font-family: var(--font-display);
  font-weight: 700;
  hyphens: manual;
  letter-spacing: -0.04em;
  word-break: normal;
  text-wrap: balance;
}

.hero h1 {
  max-width: 11ch;
  font-size: clamp(3rem, 6.1vw, 5.2rem);
  hyphens: none;
  line-height: 0.96;
}

.hero-intro,
.cluster-head p,
.map-note,
.card-summary,
.fact-list,
.context-copy p,
.context-card p,
.project-badge span {
  overflow-wrap: anywhere;
  color: var(--ink-soft);
  line-height: 1.7;
}

.hero-intro {
  max-width: 60ch;
  margin: 1.35rem 0 0;
  font-size: 1.08rem;
}

.hero-note {
  max-width: 56ch;
  margin: 0.85rem 0 0;
  color: var(--accent-dark);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.7rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0 1.35rem;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 28px rgba(239, 100, 39, 0.22);
}

.button-secondary {
  border: 1px solid rgba(18, 22, 30, 0.1);
  background: var(--surface-muted);
}

.suggestion-cta {
  position: relative;
  display: grid;
  gap: 0.5rem 1rem;
  margin-top: 1.1rem;
  padding: clamp(1rem, 2vw, 1.25rem) clamp(11.5rem, 22vw, 13.5rem) clamp(1rem, 2vw, 1.25rem) clamp(1rem, 2vw, 1.25rem);
  border: 1px solid rgba(18, 22, 30, 0.08);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 16px 34px rgba(18, 22, 30, 0.06);

  .suggestion-cta-main {
    min-width: 0;
  }

  .section-kicker {
    margin-bottom: 0.35rem;
  }

  h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.45rem, 2vw, 1.9rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
  }

  .button {
    position: absolute;
    top: 50%;
    right: clamp(1rem, 2vw, 1.25rem);
    white-space: nowrap;
    transform: translateY(-50%);
  }

  .button:hover,
  .button:focus-visible {
    transform: translateY(calc(-50% - 2px));
  }

  .suggestion-cta-text {
    margin: -0.12rem 0 0;
    color: var(--ink-soft);
    line-height: 1.55;
  }
}

.contact-dialog {
  width: min(calc(100% - 1.5rem), 42rem);
  max-height: min(90vh, 52rem);
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  color: var(--ink);
}

.contact-dialog::backdrop {
  background: rgba(18, 22, 30, 0.58);
  backdrop-filter: blur(8px);
  opacity: 1;
  transition: opacity 220ms ease, backdrop-filter 220ms ease;
}

.contact-dialog.is-opening::backdrop,
.contact-dialog.is-closing::backdrop {
  backdrop-filter: blur(0);
  opacity: 0;
}

.contact-form {
  position: relative;
  display: grid;
  gap: 1rem;
  max-height: min(90vh, 52rem);
  opacity: 1;
  padding: clamp(1.2rem, 3vw, 1.75rem);
  overflow: auto;
  border: 1px solid rgba(18, 22, 30, 0.08);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 16% 0%, rgba(239, 100, 39, 0.14), transparent 34%),
    var(--surface);
  box-shadow: 0 34px 90px rgba(18, 22, 30, 0.28);
  transform: translateY(0) scale(1);
  transition: opacity 220ms ease, transform 220ms cubic-bezier(0.22, 1, 0.36, 1);

  .section-kicker {
    margin: 0 0 -0.45rem;
  }

  h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
  }
}

.contact-dialog.is-opening .contact-form,
.contact-dialog.is-closing .contact-form {
  opacity: 0;
  transform: translateY(0.9rem) scale(0.985);
}

.contact-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid rgba(18, 22, 30, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.contact-close:hover,
.contact-close:focus-visible {
  border-color: rgba(201, 75, 24, 0.26);
  background: #fff8f0;
  box-shadow: 0 0 0 4px rgba(201, 75, 24, 0.12);
}

.contact-close::before,
.contact-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.9rem;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
}

.contact-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.contact-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.contact-intro,
.contact-privacy {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.55;
}

.contact-field {
  display: grid;
  gap: 0.42rem;
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 800;
}

.contact-hint {
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.35;
  text-align: right;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  border: 1px solid rgba(18, 22, 30, 0.11);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  font: inherit;
  outline: none;
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.contact-field input {
  min-height: 2.85rem;
  padding: 0 0.95rem;
}

.contact-field textarea {
  min-height: 9rem;
  resize: vertical;
  padding: 0.85rem 0.95rem;
  line-height: 1.55;
}

.contact-field input:focus,
.contact-field textarea:focus {
  border-color: rgba(201, 75, 24, 0.42);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(201, 75, 24, 0.12);
}

.contact-field.is-invalid {
  color: var(--accent-dark);

  input,
  textarea {
    border-color: rgba(201, 75, 24, 0.48);
    background: #fff8f0;
  }

  .contact-hint {
    color: var(--accent-dark);
  }
}

.contact-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.contact-status {
  min-height: 1.3rem;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 700;
}

.contact-status.is-success {
  color: #0f6f45;
}

.contact-status.is-error {
  color: var(--accent-dark);
}

.contact-form.is-sent {
  .contact-intro,
  .contact-field,
  .contact-privacy,
  .contact-actions {
    display: none;
  }

  .contact-status {
    min-height: 0;
    line-height: 1.5;
  }
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem;

  .button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    box-shadow: none;
  }

  .button:disabled:hover,
  .button:disabled:focus-visible {
    transform: none;
  }
}

.hero-visual {
  display: flex;
  flex-direction: column;
}

.brand-panel {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 380px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: var(--radius-xl);
  background: #161616;
  color: #fff;
  text-align: center;
}

.brand-panel img {
  width: min(72%, 270px);
  height: auto;
  aspect-ratio: 1;
  margin: 1.5rem auto;
  object-fit: contain;
}

.brand-panel p {
  margin: 0;
  color: #dde3e7;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.5;
}

.brand-caption {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.finance-panel,
.investment-panel {
  display: flex;
  min-height: 380px;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.5rem, 3vw, 2.4rem);
  border: 1px solid rgba(18, 22, 30, 0.08);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 18% 14%, rgba(0, 216, 60, 0.2), transparent 15rem),
    radial-gradient(circle at 90% 82%, rgba(201, 75, 24, 0.24), transparent 17rem),
    linear-gradient(135deg, rgba(18, 22, 30, 0.98), rgba(22, 35, 34, 0.98));
  background-color: var(--surface-dark);
  color: #fff;
  box-shadow: var(--shadow);

  > strong {
    display: block;
    margin-top: 0.35rem;
    font-family: var(--font-display);
    font-size: clamp(4.5rem, 11vw, 8rem);
    line-height: 0.9;
    letter-spacing: -0.08em;
  }
}

.finance-stats,
.investment-stats {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.4rem;

  article {
    padding: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 1.1rem;
    background: rgba(255, 255, 255, 0.08);
  }

  span {
    display: block;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
  }

  strong {
    display: block;
    margin-top: 0.3rem;
    font-size: clamp(1.4rem, 3vw, 2rem);
    line-height: 1;
  }
}

.section,
.context-strip {
  margin-top: 1.4rem;
  padding: clamp(1.4rem, 3vw, 2.7rem);
}

.section-head {
  max-width: 52rem;
  margin-bottom: 2rem;
}

.section h2,
.context-strip h2 {
  font-size: clamp(2.1rem, 4.3vw, 3.8rem);
  line-height: 1;
}

.system-map {
  padding: clamp(1rem, 3vw, 2.2rem);
  overflow: hidden;
  border: 1px solid rgba(18, 22, 30, 0.08);
  border-radius: var(--radius-xl);
  background: #f8f5ef;
}

.hierarchy-level-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.level-label {
  margin: 0 0 0.75rem;
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.level-number {
  color: var(--accent-dark);
}

.map-node,
.portfolio-node {
  min-width: 0;
  border: 1px solid rgba(18, 22, 30, 0.12);
  color: inherit;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.map-node:hover,
.map-node:focus-visible,
.portfolio-node:hover,
.portfolio-node:focus-visible {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 15px 30px rgba(18, 22, 30, 0.11);
}

.map-node {
  display: flex;
  width: min(100%, 620px);
  flex-direction: column;
  align-items: center;
  padding: 1.4rem 1.5rem;
  border-radius: 1.5rem;
  text-align: center;
}

.map-node .node-role {
  max-width: 52ch;
  color: #fff;
}

.map-node-foundation {
  background: var(--surface-dark);
  color: #fff;
}

.map-node-org {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.node-name {
  display: block;
  overflow-wrap: anywhere;
  font-family: var(--font-display);
  font-size: clamp(1.28rem, 2.4vw, 1.8rem);
  font-weight: 700;
  line-height: 1.08;
}

.node-role {
  display: block;
  margin-top: 0.45rem;
  overflow-wrap: anywhere;
  color: var(--ink-soft);
  font-size: 0.93rem;
  line-height: 1.45;
}

.vertical-connector {
  position: relative;
  display: grid;
  width: min(100%, 620px);
  height: 7.05rem;
  margin: 0 auto 1.05rem;
  place-items: center;
}

.vertical-connector::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  border-radius: 999px;
  background: var(--line-dark);
  transform: translateX(-50%);
}

.vertical-connector::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 0;
  border-top: 9px solid var(--line-dark);
  border-right: 7px solid transparent;
  border-left: 7px solid transparent;
  transform: translate(-50%, 1px);
}

.vertical-connector span {
  position: relative;
  z-index: 1;
  max-width: calc(100% - 2rem);
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

.vertical-connector-strong::before {
  background: var(--accent);
}

.vertical-connector-strong::after {
  border-top-color: var(--accent);
}

.organizations-level {
  min-width: 0;
}

.level-label-centered {
  text-align: center;
}

.organization-groups {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(15rem, 1fr);
  gap: 0.85rem;
}

.portfolio-cluster,
.support-cluster {
  min-width: 0;
  padding: clamp(1rem, 2.5vw, 1.7rem);
  border-radius: 1.7rem;
  background: var(--surface);
}

.portfolio-cluster {
  border: 2px solid rgba(239, 100, 39, 0.64);
}

.support-cluster {
  display: flex;
  flex-direction: column;
  border: 2px solid rgba(8, 126, 131, 0.52);
  background: #f1fafa;
}

.cluster-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 0.45rem 1.5rem;
  margin-bottom: 1.2rem;
}

.cluster-head p:last-child {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.5;
}

.cluster-head-support {
  display: block;
}

.cluster-head-support p:last-child {
  margin-top: 0.35rem;
}

.cluster-title {
  margin: 0;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.portfolio-node {
  display: flex;
  min-height: 9.4rem;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 1.1rem;
  border-radius: var(--radius-lg);
  background: var(--surface-muted);
}

.portfolio-node .node-name {
  margin-top: 0.8rem;
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.25;
}

.portfolio-node .node-role {
  margin-top: auto;
  padding-top: 0.65rem;
}

.portfolio-node-support {
  flex: 1;
  border-color: rgba(8, 126, 131, 0.4);
  background: var(--teal-soft);
}

.portfolio-node-support .node-role {
  margin-top: 0.6rem;
  padding-top: 0;
}

.node-tag,
.card-tier {
  transform: translateX(-0.08rem);
}

.node-tag {
  display: inline-flex;
  padding: 0.34rem 0.58rem;
  border-radius: 999px;
  background: #ffe6d7;
  color: var(--accent-dark);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 1px 0 rgba(186, 66, 15, 0.08);
}

.portfolio-node-support .node-tag {
  background: rgba(8, 126, 131, 0.12);
  color: #075f63;
}

.map-note {
  max-width: 82ch;
  margin: 1rem 0 0;
  font-size: 0.9rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.detail-card {
  min-width: 0;
  scroll-margin-top: 1rem;
  padding: clamp(1.15rem, 2.4vw, 1.55rem);
  border: 1px solid rgba(18, 22, 30, 0.09);
  border-radius: var(--radius-lg);
  background: var(--surface-muted);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.detail-card:target,
.detail-card.is-targeted {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(239, 100, 39, 0.14);
}

.detail-card h3 {
  margin: 0;
  overflow-wrap: anywhere;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  line-height: 1.04;
}

.card-top {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 0.7rem;
}

.card-tier {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.38rem 0.65rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.25;
  text-transform: uppercase;
  background: #ffe6d7;
  color: var(--accent-dark);
}

.card-summary {
  margin: 1rem 0 0;
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "clig" 0, "dlig" 0, "calt" 0;
}

.fact-list {
  margin: 1rem 0 0;
  padding-left: 1.15rem;
  color: var(--ink);
}

.fact-list li + li {
  margin-top: 0.5rem;
}

.context-strip {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: stretch;
  background:
    linear-gradient(135deg, rgba(18, 22, 30, 0.98), rgba(30, 43, 44, 0.96)),
    var(--surface-dark);
  color: #fff;
}

.context-copy {
  align-self: center;
}

.context-copy .section-kicker {
  color: var(--green);
}

.context-copy h2 {
  max-width: 11ch;
  color: #fff;
}

.context-copy p:last-child {
  max-width: 42ch;
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.74);
}

.context-action-stack {
  display: grid;
  gap: 0.85rem;
  min-width: 0;
}

.context-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.context-card {
  display: flex;
  min-height: 14rem;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1rem, 2vw, 1.35rem);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  text-decoration: none;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.context-card:hover,
.context-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.13);
}

.context-card span {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.55vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  overflow-wrap: normal;
  white-space: nowrap;
}

.context-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.95rem;
}

.context-card strong {
  color: var(--green);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.context-card-accent {
  background: rgba(239, 100, 39, 0.22);
}

.context-report-note {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.88rem;
  line-height: 1.3;
}

.context-report-note button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--green);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  line-height: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(108, 212, 140, 0.45);
  text-underline-offset: 0.2em;
}

.context-report-note button:hover,
.context-report-note button:focus-visible {
  color: #fff;
}

.project-footer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.35rem 0.85rem;
  margin-top: 1.4rem;
  padding: 1rem 1.2rem;
}

.project-logo-link,
.project-badge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  text-decoration: none;
}

.project-logo-link img {
  width: 2.7rem;
  height: 2.7rem;
  flex: none;
}

.project-badge span {
  font-size: 0.92rem;
  line-height: 1.18;
}

.project-badge strong {
  color: var(--ink);
  white-space: nowrap;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  grid-column: 3;
  justify-content: flex-end;
  justify-self: end;
  gap: 0.45rem 0.9rem;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--accent-dark);
}

.trademark-note {
  width: min(calc(100% - 2rem), 66rem);
  margin: 0.85rem auto 0;
  color: var(--ink-soft);
  font-size: 0.72rem;
  line-height: 1.55;
  text-align: center;
}

.reveal {
  transform: translateY(0);
}

.js-enabled .reveal {
  transform: translateY(24px);
  transition: transform 560ms ease;
}

.js-enabled .reveal.is-visible {
  transform: translateY(0);
}

.js-enabled #app.is-instant-render .reveal {
  transform: translateY(0);
  transition: none;
}

:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--teal);
}

@media (max-width: 1040px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: 12ch;
  }

  .brand-panel {
    min-height: 340px;
  }

  .portfolio-grid,
  .context-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .organization-groups,
  .context-strip {
    grid-template-columns: 1fr;
  }

  .context-copy h2 {
    max-width: 18ch;
  }

  .portfolio-node-support {
    min-height: 8rem;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(calc(100% - 1rem), var(--container));
    margin: 0.5rem auto;
    padding: 0.3rem;
    border-radius: 1.45rem;
  }

  .site-bar {
    align-items: center;
    gap: 0.45rem;
    min-height: 3.2rem;
    margin-bottom: 0.35rem;
    padding: 0 0.25rem;
  }

  .page-content {
    margin-inline: 0.25rem;
  }

  .page-nav {
    display: none;
  }

  .site-controls {
    width: 100%;
    margin-left: 0;
  }

  .page-select-control {
    display: block;
    flex: 1 1 auto;
  }

  .language-switcher {
    grid-template-columns: repeat(2, 2.35rem);

    &[data-language="en"] .language-indicator {
      transform: translateX(2.55rem);
    }

    button {
      min-width: 2.35rem;
      min-height: 2.35rem;
    }
  }

  .finance-panel,
  .investment-panel {
    min-height: auto;
    padding-inline: 1.15rem;
  }

  .language-indicator {
    width: 2.35rem;
    height: 2.35rem;
  }

  .hero,
  .section,
  .context-strip,
  .project-footer {
    border-radius: 1.25rem;
  }

  .hero,
  .section,
  .context-strip {
    padding: 1.15rem;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(2.45rem, 12vw, 4rem);
    line-height: 0.98;
  }

  .hero-intro {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .suggestion-cta {
    padding: 1.15rem;

    .button {
      position: static;
      margin-block: 0.35rem;
      transform: none;
    }

    .button:hover,
    .button:focus-visible {
      transform: translateY(-2px);
    }
  }

  .button {
    width: 100%;
  }

  .brand-panel {
    min-height: 310px;
    padding: 1.35rem;
  }

  .brand-panel img {
    width: min(74%, 230px);
  }

  .cluster-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .system-map {
    padding: 0.85rem;
    border-radius: 1.2rem;
  }

  .map-node {
    padding: 1.15rem 1rem;
    border-radius: 1.15rem;
  }

  .vertical-connector {
    height: 6.2rem;
    margin-bottom: 0.78rem;
  }

  .vertical-connector span {
    max-width: calc(100% - 1rem);
    font-size: 0.7rem;
  }

  .portfolio-cluster,
  .support-cluster {
    padding: 0.8rem;
    border-radius: 1.2rem;
  }

  .portfolio-grid,
  .detail-grid,
  .context-cards {
    grid-template-columns: 1fr;
  }

  .portfolio-node {
    min-height: 8rem;
  }

  .context-card {
    min-height: 11rem;
  }

  .context-report-note {
    justify-content: flex-start;
  }

  .project-footer {
    grid-template-columns: 2.7rem minmax(0, 1fr);
    align-items: center;
    gap: 0.18rem 0.85rem;
    text-align: left;
  }

  .project-logo-link {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: flex-start;
  }

  .project-badge {
    grid-column: 2;
  }

  .footer-links {
    grid-column: 2;
    justify-content: flex-start;
    justify-self: start;
    gap: 0.2rem 0.8rem;
    text-align: left;
  }

  .trademark-note {
    margin: 1rem auto;
  }
}

@media (max-width: 400px) {
  .page-shell {
    width: calc(100% - 0.7rem);
    margin: 0.35rem auto;
    padding: 0.2rem;
  }

  .site-bar {
    gap: 0.4rem;
  }

  .hero,
  .section,
  .context-strip {
    padding: 0.95rem;
  }

  .finance-panel,
  .investment-panel {
    padding-inline: 0.95rem;
  }

  .hero h1 {
    font-size: 2.35rem;
  }

  .brand-panel {
    min-height: 280px;
    padding: 1rem;
  }

  .brand-panel img {
    width: min(76%, 205px);
    margin: 1rem auto;
  }

  .section h2,
  .context-strip h2 {
    font-size: 1.88rem;
  }

  .portfolio-node,
  .detail-card,
  .context-card {
    padding: 1rem;
  }

  .node-name {
    font-size: 1.3rem;
  }

  .portfolio-node .node-name {
    font-size: 1rem;
  }

  .project-footer {
    grid-template-columns: 2.4rem minmax(0, 1fr);
  }

  .project-logo-link img {
    width: 2.4rem;
    height: 2.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    transform: none;
  }
}

.page-nav .is-active,
.page-nav [aria-current="page"] {
  background: #101214;
  color: #fff;
}
