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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1rem);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--page);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-feature-settings: "cv11", "ss01", "ss03";
  line-height: var(--leading-body);
  overflow-wrap: anywhere;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.menu-open {
  overflow: hidden;
}

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

img {
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: inherit;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--leading-heading);
  letter-spacing: var(--tracking-heading);
  text-wrap: balance;
}

h1 {
  font-size: var(--text-h1);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-display);
}

h2 {
  font-size: var(--text-h2);
}

h3 {
  font-size: var(--text-h3);
  letter-spacing: -0.02em;
}

h4 {
  font-size: var(--text-md);
  letter-spacing: -0.015em;
}

p,
ul,
ol,
dl,
figure {
  margin: 0;
}

p {
  text-wrap: pretty;
}

a {
  color: var(--defense-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color var(--duration-fast) var(--ease-standard), text-decoration-color var(--duration-fast) var(--ease-standard);
}

a:hover {
  color: var(--text);
}

strong {
  font-weight: 650;
}

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

[hidden] {
  display: none !important;
}

code,
kbd,
samp {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

::selection {
  background: rgba(95, 227, 232, 0.35);
  color: #fff;
}

.skip-link {
  position: fixed;
  top: var(--space-3);
  left: var(--space-3);
  z-index: var(--z-skip-link);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-sm);
  background: var(--ink-950);
  color: var(--ink-text);
  font-weight: 650;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform var(--duration-fast) var(--ease-standard);
}

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

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: var(--section-space);
}

.section:not(.section--muted, .section--dark, .section--perspectives) + .section:not(.section--muted, .section--dark, .section--perspectives) {
  padding-top: 0;
}

.section--muted {
  background: var(--hex-texture) center top / 56px 97px, linear-gradient(180deg, #16222f, #142030);
  border-block: 1px solid var(--line);
}

.prose p + p,
.content-section p + p {
  margin-top: var(--space-4);
}

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

/* Content stays readable with enlarged user fonts and long product names. */
:where(main, footer) :where(h1, h2, h3, p, a, dd, span) { overflow-wrap: anywhere; }
:where(.hero__copy, .page-hero__copy, .content-main, .contact-main, .module-card, .module-card > span, .s1-spotlight__copy) { min-width: 0; }
@media (forced-colors: active) {
  .button, input, select, textarea, summary { border: 1px solid ButtonText; }
  :focus-visible { outline: 3px solid Highlight; }
  .lang-switch__pill { border: 2px solid Highlight; }
}

.field, .contact-layout > *, .form-grid > * { min-width: 0; }
input, select, textarea { min-width: 0; max-width: 100%; }
