/*
 * Nexelith website.
 * Every colour, font, space, radius and shadow comes from css/tokens.css,
 * which the build generates from src/design-system/tokens.json.
 * Layout concept: the monolith and the diagonal. Solid, near-square blocks on warm
 * neutrals; orange appears once per view as the primary action, the notch and the
 * diagonal cut.
 */

/* ------------------------------------------------------------------ Base */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 24px;
  background: var(--surface);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
img, svg { max-width: 100%; }
a { color: var(--brand-text); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
::selection { background: var(--brand-soft); color: var(--ink); }
[hidden] { display: none !important; }
main:focus { outline: none; }

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

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 100;
  padding: var(--space-3) var(--space-4);
  background: var(--surface-raised);
  color: var(--ink);
  border: 2px solid var(--focus);
  font-weight: 600;
}
.skip-link:focus { top: var(--space-4); }

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

/* Type tokens scale down on small screens; tokens.css holds the desktop sizes. */
@media (max-width: 1024px) {
  .t-display-xl { font-size: 52px; line-height: 56px; }
}
@media (max-width: 720px) {
  .container { padding-inline: var(--space-4); }
  .t-display-xl { font-size: 40px; line-height: 44px; }
  .t-display { font-size: 34px; line-height: 40px; }
  .t-heading-1 { font-size: 28px; line-height: 36px; }
  .t-heading-2 { font-size: 24px; line-height: 32px; }
  .t-body-lg { font-size: 17px; line-height: 26px; }
}

/* ------------------------------------------------------------------ Design-system components */
/* Mirrors the Nexelith component bundle (nx-*). */

.nx-logo { display: block; flex: none; }
.nx-logo-ink { fill: var(--ink); }
.nx-logo-brand { fill: var(--brand); }

.nx-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-text);
}

.nx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-sans);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.nx-btn-sm { height: 36px; padding: 0 var(--space-4); font-size: 14px; }
.nx-btn-md { height: 44px; padding: 0 var(--space-6); font-size: 16px; }
.nx-btn-lg { height: 52px; padding: 0 var(--space-8); font-size: 16px; }
.nx-btn-primary { background: var(--brand); color: var(--on-brand); }
.nx-btn-primary:hover { background: var(--brand-hover); }
.nx-btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.nx-btn-secondary:hover { background: var(--ink); color: var(--surface); }
.nx-btn-ghost { background: transparent; color: var(--brand-text); padding-left: var(--space-2); padding-right: var(--space-2); }
.nx-btn-ghost:hover { background: var(--brand-soft); }
.nx-btn:disabled, .nx-btn[aria-disabled="true"] {
  background: var(--surface-sunken);
  color: var(--ink-muted);
  border-color: var(--line);
  cursor: not-allowed;
}
.nx-arrow { flex: none; transition: transform .15s; }
.nx-btn:hover .nx-arrow,
.nx-card-link:hover .nx-arrow,
.text-link:hover .nx-arrow,
.link-row:hover .nx-arrow,
.panel-links a:hover .nx-arrow { transform: translateX(3px); }

.nx-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-2);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
}
.nx-tag-neutral { background: var(--surface-raised); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.nx-tag-brand { background: var(--brand-soft); color: var(--brand-text); }

.nx-field { display: flex; flex-direction: column; gap: var(--space-2); }
.nx-label { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink); }
.nx-req { color: var(--danger); }
.nx-optional { font-weight: 400; color: var(--ink-muted); }
.nx-input {
  width: 100%;
  height: 44px;
  padding: 0 var(--space-3);
  font: inherit;
  color: var(--ink);
  background: var(--surface-raised);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
}
textarea.nx-input { height: auto; min-height: 132px; padding: var(--space-3); resize: vertical; }
.nx-input::placeholder { color: var(--ink-muted); }
.nx-input:hover { border-color: var(--ink-muted); }
.nx-input:focus { border-color: var(--ink); box-shadow: var(--shadow-sm); }
.nx-hint { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.nx-field-error .nx-input { border-color: var(--danger); border-width: 2px; }
.nx-field-error .nx-hint { color: var(--danger); }

/* ServiceCard: the signature orange notch in the square top-right corner. */
.nx-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-8);
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-md) 0 var(--radius-md) var(--radius-md);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.nx-card::after,
.notched::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: var(--notch);
  height: var(--notch);
  background: linear-gradient(225deg, var(--brand) 50%, transparent 50%);
}
.nx-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.nx-card-featured { background: var(--basalt); border-color: var(--basalt); color: var(--on-basalt); }
.nx-card-top { display: flex; justify-content: space-between; align-items: flex-start; min-height: 32px; padding-right: var(--space-4); }
.nx-card-featured .nx-eyebrow { color: var(--brand); }
.nx-card-icon { display: block; color: var(--ink); }
.nx-card-featured .nx-card-icon { color: var(--on-basalt); }
.nx-card-title { margin-top: var(--space-2); font-family: var(--font-display); font-size: 20px; line-height: 28px; font-weight: 600; }
.nx-card-body { color: var(--ink-muted); }
.nx-card-featured .nx-card-body { color: var(--on-basalt-muted); }
.nx-card-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--space-1); font-size: 14px; line-height: 20px; }
.nx-card-list li { position: relative; padding-left: var(--space-4); }
.nx-card-list li::before { content: ""; position: absolute; left: 0; top: 7px; width: 6px; height: 6px; background: var(--brand); }
.nx-card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: auto;
  padding-top: var(--space-3);
  font-weight: 600;
  color: var(--brand-text);
  text-decoration: none;
}
.nx-card-link::before { content: ""; position: absolute; inset: 0; } /* whole card is clickable */
.nx-card-featured .nx-card-link { color: var(--brand); }
.industry-card .nx-card-title { margin-top: 0; padding-right: var(--space-6); }

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

.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: var(--surface-raised);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; gap: var(--space-8); height: 72px; }
.header-home { display: flex; flex: none; }
.header-home .nx-logo { width: auto; height: 36px; }

.primary-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: var(--space-6); list-style: none; margin: 0; padding: 0; }
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2) 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}
.nav-link:hover { color: var(--brand-text); }
.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: var(--stroke-accent);
  background: var(--brand);
}
.chevron { flex: none; transition: transform .15s; }
.nav-trigger[aria-expanded="true"] .chevron { transform: rotate(180deg); }

.nav-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  width: min(760px, calc(100vw - 32px));
  transform: translateX(-50%);
  padding: var(--space-6);
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow-md);
}
.menu-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-1); }
.menu-grid-compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.menu-link {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-3);
  color: var(--ink);
  text-decoration: none;
  border-radius: var(--radius-sm);
}
.menu-link:hover { background: var(--surface-sunken); }
.menu-link:hover .menu-title { color: var(--brand-text); }
.menu-icon { flex: none; margin-top: 2px; }
.menu-link-all { background: var(--surface-sunken); }
.menu-link-all .menu-icon, .menu-link-all .menu-title { color: var(--brand-text); }
.menu-title { display: block; font-weight: 600; }
.menu-text { display: block; margin-top: 2px; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.menu-all {
  display: block;
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
  font-weight: 600;
  text-decoration: none;
}
.menu-all:hover { text-decoration: underline; }

.header-actions { display: flex; align-items: center; gap: var(--space-3); }
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.icon-button:hover { background: var(--surface-sunken); }

.no-js .theme-toggle { display: none; }
.theme-icon-light { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-icon-dark { display: none; }
  :root:not([data-theme="light"]) .theme-icon-light { display: block; }
}
:root[data-theme="dark"] .theme-icon-dark { display: none; }
:root[data-theme="dark"] .theme-icon-light { display: block; }

.menu-toggle { display: none; }
.menu-close { display: none; }
.menu-toggle[aria-expanded="true"] .menu-bars { display: none; }
.menu-toggle[aria-expanded="true"] .menu-close { display: inline; }

.mobile-nav {
  max-height: calc(100dvh - 72px);
  overflow-y: auto;
  background: var(--surface-raised);
  border-top: 1px solid var(--line);
}
.mobile-nav-inner { display: flex; flex-direction: column; gap: var(--space-6); padding-block: var(--space-4) var(--space-8); }
.mobile-nav-heading {
  margin-top: var(--space-4);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.mobile-nav ul { list-style: none; margin: var(--space-2) 0 0; padding: 0; }
.mobile-nav li a { display: block; padding: var(--space-2) 0; font-size: 17px; font-weight: 500; color: var(--ink); text-decoration: none; }
.mobile-nav li a:hover { color: var(--brand-text); }
.mobile-nav-cta { align-self: stretch; }

@media (max-width: 960px) {
  .primary-nav { display: none; }
  .header-actions { margin-left: auto; }
  .menu-toggle { display: inline-flex; }
  body.drawer-open { overflow: hidden; }
}
@media (min-width: 961px) {
  .mobile-nav { display: none !important; }
}
@media (max-width: 520px) {
  .header-cta { display: none; }
  .header-home .nx-logo { height: 30px; }
}

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

.band { padding-block: var(--space-24); }
.band-tight { padding-block: var(--space-12) var(--space-24); }
.band-sunken { background: var(--surface-sunken); }
.band-basalt { background: var(--basalt); color: var(--on-basalt); }
.band-inverse { background: var(--surface-inverse); color: var(--ink-inverse); }
@media (max-width: 720px) {
  .band { padding-block: var(--space-16); }
  .band-tight { padding-block: var(--space-8) var(--space-16); }
}

.section-head { display: flex; flex-direction: column; gap: var(--space-3); max-width: 760px; margin-bottom: var(--space-12); }
.section-lead { color: var(--ink-muted); }
.band-basalt .nx-eyebrow { color: var(--brand); }
.band-basalt .section-lead { color: var(--on-basalt-muted); }

/* Orange as text fails contrast on the inverse band in one theme, so eyebrows there use ink with an orange marker. */
.band-inverse .nx-eyebrow { display: flex; align-items: center; gap: var(--space-2); color: var(--ink-inverse); }
.band-inverse .nx-eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--brand); }
.band-inverse a:not(.nx-btn) { color: var(--ink-inverse); }

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-16); align-items: start; }
.split-faq { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.split-main { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); }
.split .section-head { margin-bottom: 0; }
@media (max-width: 960px) {
  .split, .split-faq { grid-template-columns: minmax(0, 1fr); gap: var(--space-8); }
}

/* ------------------------------------------------------------------ Home hero */

.hero { padding-block: var(--space-16) var(--space-12); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-12); align-items: center; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-6); }
.hero-title { max-width: 11ch; }
.hero-lead { max-width: 34em; color: var(--ink-muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-2); }
.hero-visual { display: flex; justify-content: flex-end; }
.hero-art { display: block; width: 100%; max-width: 520px; height: auto; }
.hero-visual-sm .hero-art { max-width: 400px; }
.art-basalt { fill: var(--basalt); }
.art-brand { fill: var(--brand); }
.art-relief { fill: var(--on-basalt-muted); }
.art-inverse { fill: var(--surface-inverse); }

/* The one orchestrated moment: the diagonal cuts slide into the orange slab along the logo's slope. */
@media (prefers-reduced-motion: no-preference) {
  .hero-art .art-b path + g path { animation: nx-cut .5s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-art .art-b path + g path:nth-child(2) { animation-delay: .06s; }
  .hero-art .art-b path + g path:nth-child(3) { animation-delay: .12s; }
  .hero-art .art-b path + g path:nth-child(4) { animation-delay: .18s; }
  .hero-art .art-b path + g path:nth-child(5) { animation-delay: .24s; }
}
@keyframes nx-cut {
  from { transform: translate(-68px, -96px); }
  to { transform: none; }
}

.platforms {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4) var(--space-6);
  margin-top: var(--space-16);
  padding-top: var(--space-6);
  border-top: 1px solid var(--line);
}
.platforms-label {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.tag-list { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; margin: 0; padding: 0; }
.tag-list-loose { gap: var(--space-3); align-content: flex-start; }

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: var(--space-8); }
  .hero-visual { justify-content: flex-start; }
  .hero-art { max-width: 420px; }
}
@media (max-width: 480px) {
  .hero-actions .nx-btn { flex: 1 1 100%; }
}
@media (max-width: 720px) {
  .hero { padding-block: var(--space-8); }
  .hero-art { max-width: 300px; }
  .platforms { margin-top: var(--space-8); }
}

/* ------------------------------------------------------------------ Page hero */

.page-hero { padding-block: var(--space-6) var(--space-16); border-bottom: 1px solid var(--line); }
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0 0 var(--space-12);
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-muted);
}
.breadcrumbs li + li::before { content: "/"; margin-right: var(--space-2); color: var(--line-strong); }
.breadcrumbs a { color: var(--ink-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand-text); text-decoration: underline; }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-12); align-items: end; }
.page-hero-single { max-width: 820px; }
.page-hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); }
.page-title { max-width: 18ch; }
.page-lead { max-width: 36em; color: var(--ink-muted); }
.page-hero-center { padding-block: var(--space-24); border-bottom: 0; }
.page-hero-center .page-hero-single { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); }
@media (max-width: 960px) {
  .page-hero-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-8); }
}
@media (max-width: 720px) {
  .page-hero { padding-block: var(--space-4) var(--space-12); }
  .breadcrumbs ol { margin-bottom: var(--space-8); }
}

/* ------------------------------------------------------------------ Panels and lists */

.panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-8);
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.notched { border-top-right-radius: 0; overflow: hidden; }
.panel-basalt { background: var(--basalt); border-color: var(--basalt); color: var(--on-basalt); }
.panel-basalt p { color: var(--on-basalt-muted); }
.panel-basalt a { color: var(--on-basalt); }
.panel-kicker {
  padding-right: var(--space-6);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.panel-basalt .panel-kicker { color: var(--brand); }
.panel-links { list-style: none; margin: 0; padding: 0; }
.panel-links li + li { border-top: 1px solid var(--line); }
.panel-basalt .panel-links li + li { border-top-color: var(--on-basalt-muted); }
.panel-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  padding-block: var(--space-3);
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 26px;
  font-weight: 600;
  text-decoration: none;
}
.panel-links .nx-arrow { color: var(--brand); }
@media (max-width: 720px) {
  .panel { padding: var(--space-6); }
}

.check-list { display: flex; flex-direction: column; gap: var(--space-3); list-style: none; margin: 0; padding: 0; }
.check-list li { display: flex; align-items: flex-start; gap: var(--space-3); }
.check-list .icon { flex: none; margin-top: 2px; color: var(--brand-text); }
.band-basalt .check-list .icon,
.panel-basalt .check-list .icon { color: var(--brand); }
.check-list-2col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4) var(--space-8); }
@media (max-width: 560px) {
  .check-list-2col { grid-template-columns: minmax(0, 1fr); }
}

/* ------------------------------------------------------------------ Grids */

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* A three-card grid would leave one card alone on the second row: stack it instead. */
  .card-grid:has(> :nth-child(3):last-child) { grid-template-columns: minmax(0, 1fr); }
  .nx-card { padding: var(--space-6); }
}
@media (max-width: 640px) {
  .card-grid { grid-template-columns: minmax(0, 1fr); }
}

.capability-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-12) var(--space-8); }
.capability,
.process-step,
.feature,
.name-part { position: relative; display: flex; flex-direction: column; gap: var(--space-3); padding-top: var(--space-6); border-top: 1px solid var(--line-strong); }
.capability { border-top-color: var(--on-basalt-muted); }
.capability::before,
.process-step::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 32px;
  height: var(--stroke-accent);
  background: var(--brand);
}
.capability-tech {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand);
}
.capability p:last-child { color: var(--on-basalt-muted); }

.process { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-8) var(--space-6); list-style: none; margin: 0; padding: 0; }
.process-num { font-family: var(--font-mono); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .14em; color: var(--brand-text); }
.process-step p { color: var(--ink-muted); }
.process-step .process-output { margin-top: auto; padding-top: var(--space-3); border-top: 1px dashed var(--line); font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink); }

.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-12) var(--space-8); }
.feature p { color: var(--ink-muted); }

.principle-grid { display: grid; gap: var(--space-8) var(--space-12); }
.principle-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.principle-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.principle { display: flex; align-items: flex-start; gap: var(--space-4); }
.principle-icon {
  flex: none;
  box-sizing: content-box;
  padding: 6px;
  color: var(--brand-text);
  background: var(--brand-soft);
  border-radius: var(--radius-sm);
}
.principle-title { margin-bottom: var(--space-1); font-size: 16px; line-height: 24px; font-weight: 600; }
.principle p { color: var(--ink-muted); }

.help-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); }
.help-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-8);
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.help-item p { color: var(--ink-muted); }
.text-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: var(--space-2);
  margin-top: auto;
  padding-top: var(--space-2);
  font-weight: 600;
  text-decoration: none;
}
.text-link:hover { text-decoration: underline; }

.link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--space-12);
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-strong);
}
.link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: var(--space-6);
  row-gap: var(--space-1);
  height: 100%;
  padding-block: var(--space-6);
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
}
.link-row-title { font-family: var(--font-display); font-size: 20px; line-height: 28px; font-weight: 600; }
.link-row-text { grid-column: 1; color: var(--ink-muted); }
.link-row .nx-arrow { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--brand-text); }
.link-row:hover .link-row-title { color: var(--brand-text); }

.inline-links { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); list-style: none; margin: var(--space-4) 0 0; padding: 0; }
.inline-links a { font-weight: 500; }

.name-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-8); margin: 0; }
.name-part dt { display: flex; align-items: flex-end; min-height: 56px; }
.name-word { font-family: var(--font-display); font-size: 48px; line-height: 56px; font-weight: 600; letter-spacing: -.02em; }
.name-part dd { color: var(--ink-muted); }

@media (max-width: 1024px) {
  .capability-grid, .feature-grid, .principle-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid-3 { grid-template-columns: minmax(0, 1fr); }
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .capability-grid, .feature-grid, .principle-grid-3, .principle-grid-2,
  .help-grid, .link-grid, .name-grid, .process { grid-template-columns: minmax(0, 1fr); }
  .capability-grid, .feature-grid { gap: var(--space-8); }
  .help-item { padding: var(--space-6); }
}

/* ------------------------------------------------------------------ FAQ */

.faq { border-top: 1px solid var(--line-strong); }
.faq-item { border-bottom: 1px solid var(--line-strong); }
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  padding-block: var(--space-6);
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 26px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--brand-text); }
.faq-item[open] .chevron { transform: rotate(180deg); }
.faq-item p { max-width: 62ch; padding-bottom: var(--space-6); color: var(--ink-muted); }

/* ------------------------------------------------------------------ CTA band and footer */

.cta-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-12); align-items: end; }
.cta-title { max-width: 16ch; margin-top: var(--space-3); }
.cta-text { max-width: 36em; margin-top: var(--space-4); }
.cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); }
.cta-email { font-size: 14px; line-height: 20px; }
@media (max-width: 960px) {
  .cta-inner { grid-template-columns: minmax(0, 1fr); gap: var(--space-8); }
}

.site-footer {
  padding-block: var(--space-16) var(--space-8);
  background: var(--surface-inverse);
  color: var(--ink-inverse);
  border-top: 1px solid var(--line-strong);
}
.site-footer .nx-logo-ink { fill: var(--ink-inverse); }
.site-footer a { color: var(--ink-inverse); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-main { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-12); }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); }
.footer-logo { width: auto; height: 36px; }
.footer-tagline { max-width: 30ch; }
.footer-contact { display: flex; flex-direction: column; gap: var(--space-1); font-style: normal; font-size: 14px; line-height: 20px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-8); }
.footer-heading {
  margin-bottom: var(--space-4);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.footer-cols ul { display: flex; flex-direction: column; gap: var(--space-2); list-style: none; margin: 0; padding: 0; font-size: 14px; line-height: 20px; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2) var(--space-6);
  margin-top: var(--space-12);
  padding-top: var(--space-6);
  border-top: 1px solid var(--line-strong);
  font-size: 14px;
  line-height: 20px;
}
@media (max-width: 960px) {
  .footer-main { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-cols > div:last-child { grid-column: 1 / -1; }
}

/* ------------------------------------------------------------------ Forms and dialog */

.contact-form { display: flex; flex-direction: column; gap: var(--space-4); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.form-actions { display: flex; }
.form-status { padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm); }
.form-status.is-success { background: var(--success-soft); color: var(--success); }
.form-status.is-error { background: var(--danger-soft); color: var(--danger); }
.form-status.is-info { background: var(--info-soft); color: var(--info); }
.form-status a { color: inherit; font-weight: 600; }
@media (max-width: 560px) {
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .form-actions .nx-btn { width: 100%; }
}

.contact-dialog {
  width: min(720px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  color: var(--ink);
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}
.contact-dialog::backdrop { background: rgb(10 11 14 / .6); }
.dialog-body { padding: var(--space-8); }
.dialog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-4); margin-bottom: var(--space-6); }
.dialog-head .nx-eyebrow { margin-bottom: var(--space-2); }
@media (prefers-reduced-motion: no-preference) {
  .contact-dialog[open] { animation: nx-fade .18s ease-out; }
}
@keyframes nx-fade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@media (max-width: 560px) {
  .contact-dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); }
  .dialog-body { padding: var(--space-6) var(--space-4); }
}

.contact-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--space-12); align-items: start; }
.contact-panel { gap: var(--space-6); }
.contact-details { display: flex; flex-direction: column; gap: var(--space-6); }
.detail-list { display: flex; flex-direction: column; gap: var(--space-4); margin: 0; }
.detail-list dt {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.detail-list dd { margin-top: var(--space-1); overflow-wrap: anywhere; }
@media (max-width: 960px) {
  .contact-layout { grid-template-columns: minmax(0, 1fr); }
}

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

.prose { display: flex; flex-direction: column; gap: var(--space-4); max-width: 68ch; }
.prose p { color: var(--ink-muted); }
.prose .t-body-lg { color: var(--ink); }
.legal h2 { margin-top: var(--space-6); }
.legal-meta { font-size: 14px; line-height: 20px; }

/* ------------------------------------------------------------------ Motion */

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
