/* Hexanta public site. Palette follows the product workspace identity. */
:root {
  --green-950: #0f251d;
  --green-900: #142f28;
  --green-800: #1b3d33;
  --green-700: #205c49;
  --lime: #c2d9a4;
  --lime-soft: #d6e8ba;
  --paper: #f6f5f0;
  --paper-deep: #eceee6;
  --white: #fff;
  --ink: #192c29;
  --muted: #4f605a;
  --line: #d7ddd3;
  --on-dark: #f3f5ef;
  --on-dark-muted: #b6c6bd;
  --line-dark: rgba(194, 217, 164, 0.16);
  --error: #a12a1f;
  --success: #205c49;
  --focus: var(--green-700);
  --gutter: clamp(16px, 5vw, 64px);
  --max: 1200px;
  --radius: 6px;
  --font:
    "Helvetica Neue", Helvetica, Arial, system-ui, -apple-system, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

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

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
  border-radius: 2px;
}

main:focus {
  outline: none;
}

.container {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 10px 16px;
  background: var(--lime-soft);
  color: var(--green-950);
  font-weight: 600;
  border-radius: 4px;
  transform: translateY(-160%);
}

.skip-link:focus-visible {
  transform: none;
  outline-color: var(--on-dark);
}

/* Header ------------------------------------------------------------- */

.site-header {
  --focus: var(--lime-soft);
  position: relative;
  z-index: 5;
  background: var(--green-950);
  color: var(--on-dark);
  border-bottom: 1px solid var(--green-800);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--on-dark);
  text-decoration: none;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
}

.brand-mark {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: var(--lime);
  stroke-width: 1.5;
  stroke-linejoin: round;
}

.brand-dot {
  color: var(--lime);
}

.primary-nav {
  margin-left: auto;
}

.primary-nav ul {
  display: flex;
  gap: 4px;
}

.primary-nav a,
.header-login {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--on-dark-muted);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 4px;
}

.primary-nav a:hover,
.header-login:hover {
  color: var(--on-dark);
}

.primary-nav a[aria-current="page"] {
  color: var(--on-dark);
  box-shadow: inset 0 -2px 0 var(--lime);
  border-radius: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  color: var(--on-dark-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
}

/* Mobile menu: a native disclosure, so it works without JavaScript. */
.mobile-nav {
  display: none;
  margin-left: auto;
}

.mobile-nav summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  color: var(--on-dark);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.mobile-nav summary::-webkit-details-marker {
  display: none;
}

.menu-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
}

.mobile-nav-panel {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  padding: 8px var(--gutter) 24px;
  background: var(--green-950);
  border-bottom: 1px solid var(--green-800);
  box-shadow: 0 16px 32px rgba(15, 37, 29, 0.25);
}

.mobile-nav-panel ul {
  margin-bottom: 16px;
}

.mobile-nav-panel li a {
  display: flex;
  align-items: center;
  min-height: 48px;
  color: var(--on-dark);
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--line-dark);
}

.mobile-nav-panel li a[aria-current="page"] {
  color: var(--lime);
}

.mobile-nav-panel .button {
  width: 100%;
}

/* Hero --------------------------------------------------------------- */

.hero {
  --focus: var(--lime-soft);
  position: relative;
  overflow: hidden;
  background: var(--green-950);
  color: var(--on-dark);
  border-bottom: 1px solid var(--green-800);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 72px 72px;
  background-position: -1px -1px;
  opacity: 0.45;
  -webkit-mask-image: radial-gradient(
    ellipse 70% 80% at 78% 45%,
    #000 0%,
    transparent 75%
  );
  mask-image: radial-gradient(
    ellipse 70% 80% at 78% 45%,
    #000 0%,
    transparent 75%
  );
}

.hero-geometry {
  position: absolute;
  top: 50%;
  right: max(-120px, calc((100vw - var(--max)) / 2 - 220px));
  width: min(680px, 62vw);
  height: auto;
  color: var(--lime);
  opacity: 0.22;
  stroke-width: 1;
  transform: translateY(-50%);
}

.hero-inner {
  position: relative;
  padding-top: clamp(56px, 10vh, 128px);
  padding-bottom: clamp(72px, 13vh, 160px);
}

.hero .status-badge {
  margin-bottom: clamp(24px, 4vw, 36px);
}

.hero h1 {
  max-width: 15ch;
  font-size: clamp(2.75rem, 1.2rem + 4.6vw, 5.5rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.hero-lede {
  max-width: 36ch;
  margin-top: clamp(28px, 4vw, 40px);
  color: var(--lime-soft);
  font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.hero-body {
  max-width: 48ch;
  margin-top: 16px;
  color: var(--on-dark-muted);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(32px, 5vw, 48px);
}

/* Page hero (inner pages) -------------------------------------------- */

.page-hero {
  --focus: var(--lime-soft);
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 9vw, 112px) 0 clamp(56px, 8vw, 96px);
  background: var(--green-950);
  color: var(--on-dark);
  border-bottom: 1px solid var(--green-800);
}

.page-hero-compact {
  padding-bottom: clamp(44px, 6vw, 72px);
}

.page-hero-message {
  min-height: 58vh;
  padding-top: clamp(72px, 14vh, 160px);
}

.eyebrow {
  color: var(--lime);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-hero h1 {
  max-width: 20ch;
  margin-top: 16px;
  font-size: clamp(2.4rem, 1.4rem + 3.8vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.page-lede {
  max-width: 58ch;
  margin-top: clamp(20px, 3vw, 28px);
  color: var(--on-dark-muted);
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem);
}

.inline-link-light {
  color: var(--lime-soft);
}

/* Buttons and links -------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 4px;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    border-color 160ms ease;
}

.button-small {
  min-height: 44px;
  padding: 0 18px;
  font-size: 15px;
}

.button-arrow {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 160ms ease;
}

.button:hover .button-arrow {
  transform: translateX(3px);
}

.button-primary {
  background: var(--lime);
  color: var(--green-950);
}

.button-primary:hover {
  background: var(--lime-soft);
}

.button-primary[disabled] {
  cursor: progress;
  opacity: 0.7;
}

.button-ghost {
  border-color: rgba(194, 217, 164, 0.4);
  color: var(--on-dark);
}

.button-ghost:hover {
  border-color: var(--lime);
}

.button-dark {
  background: var(--green-900);
  color: var(--on-dark);
}

.button-dark:hover {
  background: var(--green-700);
}

.text-link {
  color: var(--green-700);
  font-weight: 600;
  text-underline-offset: 4px;
}

.text-link:hover {
  color: var(--ink);
}

/* Sections ----------------------------------------------------------- */

.section {
  padding: clamp(64px, 9vw, 128px) 0;
}

.section-tint {
  background: var(--paper-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-dark {
  --focus: var(--lime-soft);
  background: var(--green-950);
  color: var(--on-dark);
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section-label {
  margin-bottom: 16px;
  color: var(--green-700);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.section-intro {
  margin-top: 20px;
  color: var(--muted);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
}

.section-more {
  margin-top: 40px;
}

.note {
  color: var(--muted);
  font-size: 15px;
}

/* Role band ---------------------------------------------------------- */

.roles-band {
  background: var(--green-900);
  color: var(--on-dark);
  border-bottom: 1px solid var(--green-800);
}

.roles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.roles li {
  padding: 28px 24px 28px 0;
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.3rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--on-dark-muted);
}

.roles li + li {
  padding-left: 24px;
  border-left: 1px solid var(--line-dark);
}

.role-key {
  color: var(--lime);
  font-weight: 600;
}

/* Screenshots -------------------------------------------------------- */

.shot-frame {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow:
    0 1px 2px rgba(15, 37, 29, 0.06),
    0 18px 40px -18px rgba(15, 37, 29, 0.25);
}

.shot figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}

.shot-note {
  color: var(--green-700);
  font-weight: 600;
}

.figure-pair {
  display: grid;
  gap: clamp(32px, 4vw, 48px);
}

/* Cards -------------------------------------------------------------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.card {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.card h3,
.role-card h3,
.step h3,
.control-list h3 {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.card p,
.role-card p,
.step p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 16px;
}

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

.discipline-grid .card {
  padding: 24px;
}

/* Platform capabilities and their status ----------------------------- */

.status-legend {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
}

.status-legend dd {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
}

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

.capability-group {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.capability-group h3 {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.capability-list {
  margin-top: 14px;
  padding: 0;
  list-style: none;
}

.capability-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
}

.cap-status {
  flex: none;
  padding: 2px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  color: var(--muted);
  background: var(--paper);
}

.cap-status[data-status="demonstrated"] {
  border-color: var(--green-700);
  background: var(--green-700);
  color: var(--white);
}

.cap-status[data-status="development"] {
  border-color: var(--lime);
  background: var(--lime-soft);
  color: var(--green-900);
}

/* Feature sections --------------------------------------------------- */

.feature-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(24px, 5vw, 80px);
  margin-bottom: clamp(32px, 5vw, 56px);
}

.feature-copy > * + * {
  margin-top: 16px;
}

.feature-copy p {
  color: var(--muted);
}

.ticks li {
  position: relative;
  padding: 8px 0 8px 28px;
  border-top: 1px solid var(--line);
  font-size: 16px;
}

.ticks li::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 2px;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--green-700);
  border-bottom: 2px solid var(--green-700);
  transform: rotate(-45deg);
}

/* Control (dark) section --------------------------------------------- */

.control .section-title {
  max-width: 18ch;
}

.control-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 48px);
  margin: clamp(32px, 5vw, 56px) 0 clamp(32px, 4vw, 48px);
}

.control-list li {
  padding-top: 20px;
  border-top: 1px solid var(--line-dark);
}

.control-list p {
  margin-top: 10px;
  color: var(--on-dark-muted);
  font-size: 16px;
}

/* How it works ------------------------------------------------------- */

.role-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.role-card {
  padding: 28px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--green-700);
  border-radius: var(--radius);
}

.role-name {
  color: var(--green-700);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.role-card h3 {
  margin-top: 8px;
  font-size: 1.5rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 clamp(24px, 4vw, 56px);
  counter-reset: step;
}

.step {
  padding: 28px 0 32px;
  border-top: 1px solid var(--line);
  counter-increment: step;
}

.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 20px;
  color: var(--green-700);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 6vw, 96px);
}

/* Prose -------------------------------------------------------------- */

.prose {
  max-width: 68ch;
}

.prose > * + * {
  margin-top: 18px;
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose h2 {
  margin-top: 40px;
  color: var(--ink);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.prose ul li {
  position: relative;
  padding-left: 20px;
}

.prose ul li + li {
  margin-top: 6px;
}

.prose ul li::before {
  content: "";
  position: absolute;
  top: 0.75em;
  left: 2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-700);
}

.prose strong {
  color: var(--ink);
}

.prose a:not(.button) {
  color: var(--green-700);
  text-underline-offset: 3px;
}

.prose-narrow {
  margin: 0 auto;
}

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

/* Principles --------------------------------------------------------- */

.principle-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 64px);
}

.principle {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.principle-index {
  display: block;
  margin-bottom: 40px;
  color: var(--green-700);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}

.principle h3 {
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.principle p {
  max-width: 32ch;
  margin-top: 12px;
  color: var(--muted);
}

/* Closing ------------------------------------------------------------ */

.closing {
  padding: clamp(72px, 10vw, 136px) 0;
  background: var(--paper-deep);
  border-top: 1px solid var(--line);
}

.closing-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: end;
}

.closing h2 {
  max-width: 20ch;
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.closing-body p {
  max-width: 40ch;
  margin-bottom: 32px;
  color: var(--muted);
}

/* Forms -------------------------------------------------------------- */

.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}

.form-panel {
  padding: clamp(24px, 4vw, 44px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.form-title {
  margin-bottom: 28px;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.contact-form {
  display: grid;
  gap: 22px;
}

.field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.field label,
.choice-group legend {
  font-size: 15px;
  font-weight: 600;
}

.optional {
  color: var(--muted);
  font-weight: 400;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  background: var(--white);
  border: 1px solid #8a9891;
  border-radius: 4px;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

.field textarea {
  min-height: 160px;
  resize: vertical;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline-offset: 1px;
  border-color: var(--green-700);
}

.field [aria-invalid="true"] {
  border-color: var(--error);
  box-shadow: inset 0 0 0 1px var(--error);
}

.field-hint {
  color: var(--muted);
  font-size: 14px;
}

.field-error {
  color: var(--error);
  font-size: 14px;
  font-weight: 600;
}

.choice-group {
  margin: 0;
  padding: 0;
  border: 0;
}

.choice-group legend {
  margin-bottom: 8px;
  padding: 0;
}

.choice {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
}

.choice + .choice {
  margin-top: 8px;
}

.choice input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--green-700);
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.turnstile-slot:empty {
  display: none;
}

.form-note {
  color: var(--muted);
  font-size: 14px;
}

.form-note a,
.form-aside a {
  color: var(--green-700);
  text-underline-offset: 3px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.form-actions .button {
  min-width: 200px;
}

.form-status:empty {
  display: none;
}

.form-status {
  padding: 14px 16px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
}

.form-status[data-state="error"] {
  background: #fbecea;
  color: var(--error);
}

.form-status[data-state="success"] {
  background: #e7f0dc;
  color: var(--success);
}

.form-status[data-state="pending"] {
  background: var(--paper-deep);
  color: var(--muted);
}

.form-aside {
  display: grid;
  gap: 16px;
  padding-top: 8px;
}

.aside-title {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.form-aside p,
.expect li {
  color: var(--muted);
}

.expect {
  counter-reset: expect;
}

.expect li {
  position: relative;
  padding: 12px 0 12px 36px;
  border-top: 1px solid var(--line);
  counter-increment: expect;
}

.expect li::before {
  content: counter(expect);
  position: absolute;
  top: 12px;
  left: 0;
  color: var(--green-700);
  font-weight: 600;
}

.aside-note {
  font-size: 14px;
}

/* Footer ------------------------------------------------------------- */

.site-footer {
  --focus: var(--lime-soft);
  background: var(--green-950);
  color: var(--on-dark-muted);
  font-size: 15px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 40px;
  padding-top: clamp(48px, 6vw, 72px);
  padding-bottom: 40px;
}

.footer-brand p {
  max-width: 32ch;
  margin-top: 16px;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.footer-heading {
  margin-bottom: 10px;
  color: var(--on-dark);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-nav a {
  display: inline-block;
  padding: 6px 0;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.footer-nav a:hover {
  color: var(--on-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  padding-top: 24px;
  padding-bottom: 32px;
  border-top: 1px solid var(--line-dark);
  font-size: 13px;
}

.trademark {
  max-width: 70ch;
}

/* Responsive --------------------------------------------------------- */

@media (max-width: 1080px) {
  .primary-nav,
  .header-actions {
    display: none;
  }

  .mobile-nav {
    display: block;
  }

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

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

@media (max-width: 960px) {
  .card-grid,
  .control-list,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .roles li:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .roles li:nth-child(n + 3) {
    border-top: 1px solid var(--line-dark);
  }

  .feature-head,
  .split,
  .form-layout,
  .closing-inner,
  .footer-grid,
  .status-legend,
  .capability-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .closing-inner {
    align-items: start;
  }

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

  .principle {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    padding: 28px 0 32px;
  }

  .principle-index {
    grid-row: span 2;
    margin: 4px 0 0;
  }

  .principle p {
    max-width: 48ch;
    margin-top: 8px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .header-inner {
    min-height: 64px;
  }

  .brand {
    font-size: 23px;
  }

  .brand-mark {
    width: 24px;
    height: 24px;
  }

  .hero-geometry {
    top: auto;
    right: -38%;
    bottom: -12%;
    width: 92vw;
    opacity: 0.14;
    transform: none;
  }

  .hero-grid {
    -webkit-mask-image: radial-gradient(
      ellipse 90% 60% at 80% 85%,
      #000 0%,
      transparent 75%
    );
    mask-image: radial-gradient(
      ellipse 90% 60% at 80% 85%,
      #000 0%,
      transparent 75%
    );
  }

  .button {
    width: 100%;
  }

  .card-grid,
  .control-list,
  .steps,
  .role-grid,
  .roles,
  .field-row,
  .footer-nav {
    grid-template-columns: minmax(0, 1fr);
  }

  .roles li,
  .roles li + li {
    padding: 16px 0;
    border-left: 0;
    border-top: 1px solid var(--line-dark);
  }

  .roles li:first-child {
    border-top: 0;
  }

  .card {
    padding: 22px;
  }

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

  .form-actions .button {
    min-width: 0;
  }
}

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

  .button:hover .button-arrow {
    transform: none;
  }
}

@media (forced-colors: active) {
  .button {
    border: 1px solid ButtonText;
  }

  .hero-grid {
    display: none;
  }
}
