:root {
  color-scheme: light;
  --navy: #24384b;
  --navy-deep: #172a3b;
  --ink: #111820;
  --muted: #53616e;
  --line: #d5dce3;
  --cool: #eef2f5;
  --warm: #f0ede4;
  --gold: #8f672d;
  --gold-on-dark: #d0ad70;
  --focus: #a67a3a;
  --white: #fff;
  --shadow: 0 1.5rem 4rem rgb(23 42 59 / 14%);
  font-family: Inter, "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 20rem;
  scroll-behavior: smooth;
}

body {
  min-width: 20rem;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  background: var(--white);
  font-size: 1rem;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

button,
input {
  font: inherit;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 1rem;
  transform: translateY(-200%);
  border-radius: 0.4rem;
  color: var(--white);
  background: var(--navy-deep);
}

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

:focus-visible {
  outline: 0.2rem solid var(--focus);
  outline-offset: 0.2rem;
}

.page-shell {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  width: min(100% - 3rem, 87rem);
  min-width: 0;
  margin-inline: auto;
  padding-block: 1.25rem;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand-link {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 1.3rem;
  color: var(--navy);
  text-decoration: none;
}

.brand-logo {
  width: 9.2rem;
}

.platform-name {
  padding-left: 1.3rem;
  border-left: 1px solid var(--line);
  font-size: 0.78rem;
  letter-spacing: 0.025em;
  line-height: 1.25;
}

.platform-name strong {
  font-weight: 750;
}

.button {
  display: inline-flex;
  min-height: 2.9rem;
  padding: 0.65rem 1.25rem;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-0.1rem);
}

.button-primary {
  color: var(--white);
  background: var(--navy);
}

.button-primary:hover {
  background: var(--navy-deep);
}

.button-light {
  color: var(--navy-deep);
  background: var(--white);
}

.button-light:hover {
  background: var(--warm);
}

main {
  width: min(100% - 3rem, 87rem);
  min-width: 0;
  margin-inline: auto;
  flex: 1;
}

.hero {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 37rem;
  overflow: hidden;
  grid-template-columns: minmax(0, 1.08fr) minmax(20rem, 0.92fr);
  border-radius: 4rem 0.8rem 4rem 0.8rem;
  color: var(--white);
  background: var(--navy-deep);
  box-shadow: var(--shadow);
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(110deg, transparent 0 51%, rgb(255 255 255 / 5%) 51% 51.2%, transparent 51.2%),
    radial-gradient(circle at 8% 82%, rgb(189 149 86 / 14%), transparent 27%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  padding: clamp(3rem, 7vw, 6.5rem);
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.eyebrow,
.section-number,
.menu-eyebrow {
  margin: 0 0 1.5rem;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow span {
  display: inline-block;
  width: 1.8rem;
  height: 1px;
  margin-right: 0.7rem;
  vertical-align: middle;
  background: currentcolor;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 13ch;
  margin-bottom: 1.8rem;
  font-size: clamp(2.6rem, 5.7vw, 5.8rem);
  font-weight: 760;
  letter-spacing: -0.055em;
  line-height: 0.96;
}

h1 em {
  color: var(--gold);
  font-style: normal;
}

.hero-lead {
  max-width: 37rem;
  margin-bottom: 2.2rem;
  color: #dfe7ed;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
}

.hero-action-hint {
  max-width: 32rem;
  padding-left: 1rem;
  border-left: 2px solid var(--gold-on-dark);
  color: #dfe7ed;
}

.blueprint {
  position: relative;
  display: flex;
  min-width: 0;
  margin: 1.25rem;
  padding: 1.2rem;
  flex-direction: column;
  border: 1px solid rgb(255 255 255 / 18%);
  background: rgb(255 255 255 / 3%);
}

.blueprint-meta,
.blueprint-legend {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: #9cabb7;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
}

.blueprint-stage {
  position: relative;
  display: grid;
  min-height: 25rem;
  flex: 1;
  place-items: center;
  background-image:
    linear-gradient(rgb(255 255 255 / 6%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 6%) 1px, transparent 1px);
  background-size: 2rem 2rem;
}

.hero .eyebrow,
.auth-intro .eyebrow,
.legal-hero .eyebrow,
h1 em {
  color: var(--gold-on-dark);
}

.building-grid {
  display: grid;
  width: min(78%, 23rem);
  aspect-ratio: 1.2;
  padding: 1.4rem;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  border: 2px solid rgb(255 255 255 / 58%);
  border-top: 0.5rem solid var(--gold-on-dark);
  transform: perspective(40rem) rotateY(-9deg) rotateX(3deg);
}

.building-grid span {
  border: 1px solid rgb(255 255 255 / 24%);
  background: rgb(255 255 255 / 4%);
}

.data-route {
  position: absolute;
  top: 20%;
  right: 5%;
  display: flex;
  height: 62%;
  flex-direction: column;
  justify-content: space-between;
  border-left: 1px solid var(--gold-on-dark);
}

.data-route i {
  width: 0.55rem;
  height: 0.55rem;
  margin-left: -0.3rem;
  border-radius: 50%;
  background: var(--gold-on-dark);
  box-shadow: 0 0 0 0.25rem rgb(189 149 86 / 18%);
}

.blueprint-stage strong {
  position: absolute;
  bottom: 8%;
  left: 6%;
  color: #aebbc5;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
}

.blueprint-stage strong span {
  margin-inline: 0.5rem;
  color: var(--gold-on-dark);
}

.plan-line {
  position: absolute;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 50%;
}

.plan-line-one {
  width: 13rem;
  height: 13rem;
}

.plan-line-two {
  width: 18rem;
  height: 18rem;
}

.plan-line-three {
  width: 24rem;
  height: 24rem;
}

.purpose-section {
  display: grid;
  padding: clamp(5rem, 10vw, 9rem) clamp(0rem, 4vw, 4rem);
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(3rem, 8vw, 8rem);
}

.purpose-section h2 {
  max-width: 16ch;
  margin-bottom: 0;
  color: var(--navy-deep);
  font-size: clamp(2.1rem, 4vw, 4.2rem);
  letter-spacing: -0.045em;
  line-height: 1.03;
}

.purpose-copy {
  align-self: end;
  color: var(--muted);
  font-size: 1.08rem;
}

.purpose-copy p:last-child {
  margin-bottom: 0;
}

.principles {
  display: grid;
  margin-bottom: clamp(5rem, 8vw, 8rem);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.principles article {
  min-width: 0;
  padding: 2.5rem;
}

.principles article + article {
  border-left: 1px solid var(--line);
}

.principle-index {
  color: var(--gold);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
}

.principles h3 {
  margin-block: 2rem 0.5rem;
  color: var(--navy-deep);
  font-size: 1.4rem;
}

.principles p {
  margin-bottom: 0;
  color: var(--muted);
}

.site-footer {
  display: flex;
  width: min(100% - 3rem, 87rem);
  min-width: 0;
  margin-inline: auto;
  padding-block: 1.8rem;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.83rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
}

.site-footer p {
  margin-bottom: 0;
  text-align: right;
}

.messages {
  width: min(100% - 3rem, 87rem);
  margin: 0 auto 1rem;
  padding: 0.8rem 1rem;
  border-left: 0.25rem solid var(--gold);
  background: var(--warm);
}

.messages p {
  margin: 0;
}

.auth-layout {
  display: grid;
  min-height: 37rem;
  margin-bottom: clamp(4rem, 7vw, 7rem);
  overflow: hidden;
  grid-template-columns: minmax(0, 1fr) minmax(22rem, 0.72fr);
  border-radius: 4rem 0.8rem 4rem 0.8rem;
  background: var(--cool);
}

.auth-intro {
  display: flex;
  min-width: 0;
  padding: clamp(3rem, 7vw, 6.5rem);
  flex-direction: column;
  justify-content: center;
  color: var(--white);
  background:
    linear-gradient(135deg, rgb(255 255 255 / 4%) 25%, transparent 25%) 0 0 / 3rem 3rem,
    var(--navy-deep);
}

.auth-intro h1 {
  margin-bottom: 2rem;
}

.auth-intro > p:last-child {
  max-width: 35rem;
  color: #dfe7ed;
  font-size: 1.08rem;
}

.auth-card {
  min-width: 0;
  margin: clamp(1rem, 3vw, 3rem);
  padding: clamp(1.8rem, 4vw, 3.5rem);
  align-self: center;
  border-radius: 0.8rem;
  background: var(--white);
  box-shadow: 0 1rem 3rem rgb(23 42 59 / 8%);
}

.auth-card h2 {
  margin-bottom: 1.8rem;
  color: var(--navy-deep);
  font-size: 2rem;
}

.field {
  margin-bottom: 1.15rem;
}

.field label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--navy-deep);
  font-size: 0.85rem;
  font-weight: 750;
}

.field input {
  width: 100%;
  min-height: 3rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #aab5bf;
  border-radius: 0.4rem;
  color: var(--ink);
  background: var(--white);
}

.field input:focus {
  border-color: var(--navy);
}

.form-error {
  margin-bottom: 1.2rem;
  padding: 0.85rem 1rem;
  border-left: 0.25rem solid #a33e38;
  color: #70221e;
  background: #fff1f0;
}

.form-error p,
.field-error {
  margin-bottom: 0;
}

.field-error {
  color: #70221e;
  font-size: 0.82rem;
}

.submit-button {
  width: 100%;
  margin-top: 0.5rem;
}

.login-note {
  margin: 1.4rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.status-page {
  max-width: 60rem;
  min-height: 31rem;
  padding-block: clamp(4rem, 9vw, 9rem);
}

.status-code {
  color: var(--gold);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
}

.status-page h1 {
  max-width: 17ch;
  color: var(--navy-deep);
  font-size: clamp(2.2rem, 5vw, 4.8rem);
}

.status-page > p:not(.status-code) {
  color: var(--muted);
  font-size: 1.1rem;
}

.legal-page {
  margin-bottom: clamp(5rem, 8vw, 8rem);
}

.legal-hero {
  padding: clamp(3.5rem, 8vw, 7rem) clamp(1.5rem, 6vw, 5rem);
  border-radius: 4rem 0.8rem 4rem 0.8rem;
  color: var(--white);
  background:
    linear-gradient(115deg, transparent 0 68%, rgb(189 149 86 / 13%) 68% 68.3%, transparent 68.3%),
    var(--navy-deep);
}

.legal-hero h1 {
  margin-bottom: 1.2rem;
}

.legal-hero > p:last-child {
  max-width: 43rem;
  margin-bottom: 0;
  color: #dfe7ed;
  font-size: 1.1rem;
}

.legal-layout {
  display: grid;
  padding: clamp(4rem, 8vw, 8rem) clamp(0rem, 4vw, 4rem) 0;
  grid-template-columns: minmax(10rem, 0.35fr) minmax(0, 1fr);
  gap: clamp(3rem, 8vw, 8rem);
}

.legal-index {
  position: sticky;
  top: 1rem;
  align-self: start;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.legal-index p {
  margin-bottom: 0.7rem;
  color: var(--navy-deep);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-index ol {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.legal-index li + li {
  margin-top: 0.45rem;
}

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

.legal-content section {
  padding-bottom: clamp(2.8rem, 5vw, 4.5rem);
  scroll-margin-top: 2rem;
}

.legal-content section + section {
  padding-top: clamp(2.8rem, 5vw, 4.5rem);
  border-top: 1px solid var(--line);
}

.legal-number {
  margin-bottom: 0.8rem;
  color: var(--gold);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.legal-content h2 {
  margin-bottom: 1.5rem;
  color: var(--navy-deep);
  font-size: clamp(1.65rem, 3vw, 2.7rem);
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.legal-content p,
.legal-content li,
.legal-content address,
.contact-list {
  max-width: 49rem;
  color: #374550;
}

.legal-content address {
  margin-bottom: 1.8rem;
  font-style: normal;
}

.legal-content li + li {
  margin-top: 0.35rem;
}

.contact-list {
  margin: 0;
}

.contact-list div {
  display: grid;
  padding-block: 0.75rem;
  grid-template-columns: minmax(9rem, 0.4fr) minmax(0, 1fr);
  gap: 1rem;
  border-top: 1px solid var(--line);
}

.contact-list div:last-child {
  border-bottom: 1px solid var(--line);
}

.contact-list dt {
  color: var(--muted);
  font-size: 0.82rem;
}

.contact-list dd {
  margin: 0;
  color: var(--navy-deep);
  font-weight: 700;
}

.legal-updated {
  color: var(--muted) !important;
  font-size: 0.85rem;
}

.back-link {
  display: inline-flex;
  padding: 0.8rem 0;
  align-items: center;
  gap: 0.7rem;
  color: var(--navy-deep);
  font-weight: 750;
}

@media (max-width: 64rem) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .blueprint {
    min-height: 28rem;
  }

  .purpose-section {
    gap: 3rem;
  }

  .auth-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .legal-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .legal-index {
    position: static;
  }
}

@media (max-width: 40rem) {
  .site-header,
  main,
  .site-footer,
  .messages {
    width: min(100% - 2rem, 87rem);
  }

  .site-header {
    gap: 0.8rem;
  }

  .brand-link {
    gap: 0.7rem;
  }

  .brand-logo {
    width: clamp(5.8rem, 31vw, 8rem);
  }

  .platform-name {
    display: none;
  }

  .button-primary {
    min-height: 2.65rem;
    padding-inline: 0.9rem;
  }

  .account-menu summary {
    max-width: 45vw;
  }

  .account-label {
    display: none;
  }

  .account-panel {
    position: fixed;
    top: 4.9rem;
    right: 1rem;
  }

  .hero {
    min-height: auto;
    border-radius: 2rem 0.65rem 2rem 0.65rem;
  }

  .hero-copy {
    padding: 3rem 1.5rem;
  }

  h1 {
    font-size: clamp(2.35rem, 13vw, 4rem);
  }

  .blueprint {
    min-height: 23rem;
    margin: 0 0.75rem 0.75rem;
  }

  .blueprint-stage {
    min-height: 19rem;
  }

  .plan-line-three {
    width: 19rem;
    height: 19rem;
  }

  .purpose-section {
    padding-block: 5rem;
    grid-template-columns: minmax(0, 1fr);
  }

  .auth-layout {
    border-radius: 2rem 0.65rem 2rem 0.65rem;
  }

  .legal-hero {
    border-radius: 2rem 0.65rem 2rem 0.65rem;
  }

  .legal-layout {
    gap: 3rem;
  }

  .contact-list div {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.2rem;
  }

  .auth-intro {
    padding: 3rem 1.5rem;
  }

  .auth-card {
    margin: 0.75rem;
    padding: 1.5rem;
  }

  .principles {
    grid-template-columns: minmax(0, 1fr);
  }

  .principles article + article {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .principles article {
    padding: 2rem 0.5rem;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer p {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
