/*
 * VELYX Brand Theme 2.0
 * ============================================================
 * Digital theme based on the approved VELYX brand palette.
 *
 * Intended for:
 * - ASP.NET Core
 * - ASP.NET MVC
 * - Razor Pages
 * - Blazor
 * - .NET web applications
 * - Standard HTML websites
 *
 * Brand principles:
 * - Midnight communicates authority.
 * - Architectural Navy communicates architecture.
 * - Intelligence Blue communicates technology.
 * - Mineral Teal communicates transformation.
 * - Architecture Mist communicates structure and context.
 * - Graphite communicates information.
 * - Architectural White communicates clarity.
 *
 * Accessibility:
 * - Midnight on Architectural White: WCAG AAA
 * - Graphite on Architectural White: WCAG AAA
 * - Intelligence Blue on Architectural White: WCAG AA
 * - Mineral Teal on Midnight: WCAG AA
 *
 * Important:
 * Mineral Teal must not be used for normal text on light surfaces.
 * Gradients are expressive brand treatments, not core logo colors.
 */

/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */

:root {
  /*
   * Core brand colors
   */

  --velyx-midnight: #081b2c;
  --velyx-architectural-navy: #0a3157;
  --velyx-intelligence-blue: #2864dc;
  --velyx-mineral-teal: #00a7a5;
  --velyx-architecture-mist: #b6cadc;
  --velyx-graphite: #35414d;
  --velyx-architectural-white: #f6f8fa;

  /*
   * Supporting neutrals
   */

  --velyx-white: #ffffff;
  --velyx-black: #000000;

  --velyx-neutral-50: #f8fafb;
  --velyx-neutral-100: #edf2f6;
  --velyx-neutral-200: #dce5ec;
  --velyx-neutral-300: #cdd8e1;
  --velyx-neutral-400: #99a9b8;
  --velyx-neutral-500: #718292;
  --velyx-neutral-600: #536574;
  --velyx-neutral-700: #35414d;
  --velyx-neutral-800: #1e2c38;
  --velyx-neutral-900: #0e202f;

  /*
   * Semantic brand tokens
   */

  --color-brand: var(--velyx-midnight);
  --color-brand-primary: var(--velyx-midnight);
  --color-brand-deep: var(--velyx-architectural-navy);
  --color-brand-accent: var(--velyx-mineral-teal);
  --color-brand-technology: var(--velyx-intelligence-blue);
  --color-brand-structure: var(--velyx-architecture-mist);

  /*
   * Surface tokens
   */

  --color-background: var(--velyx-architectural-white);
  --color-background-alt: var(--velyx-neutral-100);
  --color-surface: var(--velyx-white);
  --color-surface-subtle: var(--velyx-neutral-100);
  --color-surface-dark: var(--velyx-midnight);
  --color-surface-navy: var(--velyx-architectural-navy);

  /*
   * Text tokens
   */

  --color-text: var(--velyx-midnight);
  --color-text-secondary: var(--velyx-graphite);
  --color-text-muted: var(--velyx-neutral-600);
  --color-text-inverse: var(--velyx-architectural-white);
  --color-text-link: var(--velyx-intelligence-blue);
  --color-text-accent-dark: var(--velyx-mineral-teal);

  /*
   * Border and divider tokens
   */

  --color-border: var(--velyx-neutral-300);
  --color-border-subtle: var(--velyx-neutral-200);
  --color-border-strong: var(--velyx-neutral-500);
  --color-divider: var(--velyx-neutral-300);

  /*
   * Interaction tokens
   */

  --color-interactive: var(--velyx-intelligence-blue);
  --color-interactive-hover: #1f51bb;
  --color-interactive-active: #174398;
  --color-interactive-disabled: var(--velyx-neutral-400);

  --color-focus: var(--velyx-intelligence-blue);
  --focus-ring:
    0 0 0 3px rgb(246 248 250 / 100%),
    0 0 0 6px rgb(40 100 220 / 80%);

  /*
   * Optional functional state tokens
   *
   * These colors are intentionally separate from the core
   * VELYX brand meanings.
   */

  --color-info: #2864dc;
  --color-info-background: #eaf0fd;

  --color-success: #18794e;
  --color-success-background: #e8f5ee;

  --color-warning: #9a6700;
  --color-warning-background: #fff4ce;

  --color-error: #b42318;
  --color-error-background: #fef0ed;

  /*
   * Typography
   *
   * Manrope and Inter are listed as preferred fonts.
   * The CSS does not load external font files.
   * Add local or approved hosted font files separately.
   */

  --font-family-display:
    Manrope,
    Inter,
    "Segoe UI",
    Arial,
    sans-serif;

  --font-family-body:
    Inter,
    "Segoe UI",
    Arial,
    sans-serif;

  --font-family-monospace:
    "Cascadia Code",
    "SFMono-Regular",
    Consolas,
    "Liberation Mono",
    monospace;

  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-md: 1.125rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 2rem;
  --font-size-3xl: 2.75rem;
  --font-size-4xl: 3.75rem;
  --font-size-5xl: 5rem;

  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  --line-height-tight: 1.1;
  --line-height-heading: 1.2;
  --line-height-body: 1.6;
  --line-height-relaxed: 1.75;

  /*
   * Layout and spacing
   */

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  --content-max-width: 80rem;
  --content-readable-width: 48rem;

  /*
   * Shape
   */

  --radius-xs: 0.25rem;
  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-pill: 999px;

  /*
   * Shadows
   */

  --shadow-xs:
    0 1px 2px rgb(8 27 44 / 6%);

  --shadow-sm:
    0 1px 3px rgb(8 27 44 / 10%),
    0 1px 2px rgb(8 27 44 / 6%);

  --shadow-md:
    0 12px 32px rgb(8 27 44 / 12%);

  --shadow-lg:
    0 24px 64px rgb(8 27 44 / 16%);

  /*
   * Transitions
   */

  --transition-fast: 150ms ease;
  --transition-standard: 220ms ease;
  --transition-emphasis: 320ms ease;

  /*
   * Expressive digital gradient
   *
   * Do not use as the required master-logo treatment.
   */

  --velyx-intelligence-gradient:
    linear-gradient(
      135deg,
      #081b2c 0%,
      #081b2c 35%,
      #0a3157 58%,
      #2864dc 82%,
      #00a7a5 100%
    );

  --velyx-architectural-gradient:
    linear-gradient(
      135deg,
      #081b2c 0%,
      #0a3157 70%,
      #00a7a5 100%
    );
}

/* ============================================================
   2. RESET AND DOCUMENT FOUNDATION
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--color-background);
  color: var(--color-text-secondary);
  font-family: var(--font-family-body);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

[hidden] {
  display: none !important;
}

/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-block: 0 0.6em;
  color: var(--color-text);
  font-family: var(--font-family-display);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-heading);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 6vw, var(--font-size-5xl));
  line-height: var(--line-height-tight);
  letter-spacing: -0.045em;
}

h2 {
  font-size: clamp(2rem, 4vw, var(--font-size-4xl));
  letter-spacing: -0.035em;
}

h3 {
  font-size: clamp(1.5rem, 3vw, var(--font-size-2xl));
}

h4 {
  font-size: var(--font-size-xl);
}

h5 {
  font-size: var(--font-size-lg);
}

h6 {
  font-size: var(--font-size-base);
  letter-spacing: 0;
}

p {
  margin-block: 0 1em;
}

strong {
  color: var(--color-text);
  font-weight: var(--font-weight-semibold);
}

small {
  font-size: var(--font-size-sm);
}

code,
pre,
kbd,
samp {
  font-family: var(--font-family-monospace);
}

code {
  padding: 0.15em 0.35em;
  border-radius: var(--radius-xs);
  background: var(--color-surface-subtle);
  color: var(--velyx-architectural-navy);
}

pre {
  overflow-x: auto;
  padding: var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--velyx-midnight);
  color: var(--velyx-architectural-white);
}

pre code {
  padding: 0;
  background: transparent;
  color: inherit;
}

blockquote {
  margin: var(--space-8) 0;
  padding: var(--space-4) var(--space-6);
  border-inline-start: 4px solid var(--velyx-mineral-teal);
  background: var(--color-surface-subtle);
  color: var(--color-text);
  font-size: var(--font-size-md);
}

/* ============================================================
   4. LINKS AND FOCUS
   ============================================================ */

a {
  color: var(--color-text-link);
  text-decoration-line: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
  transition:
    color var(--transition-fast),
    text-decoration-thickness var(--transition-fast);
}

a:hover {
  color: var(--color-interactive-hover);
  text-decoration-thickness: 0.12em;
}

a:active {
  color: var(--color-interactive-active);
}

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
}

.velyx-focus-ring:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* ============================================================
   5. LAYOUT
   ============================================================ */

.velyx-container {
  width: min(
    calc(100% - clamp(2rem, 6vw, 6rem)),
    var(--content-max-width)
  );
  margin-inline: auto;
}

.velyx-container--readable {
  width: min(
    calc(100% - 2rem),
    var(--content-readable-width)
  );
  margin-inline: auto;
}

.velyx-section {
  padding-block: clamp(var(--space-16), 7vw, var(--space-24));
}

.velyx-section--compact {
  padding-block: clamp(var(--space-10), 5vw, var(--space-16));
}

.velyx-section--light {
  background: var(--velyx-architectural-white);
}

.velyx-section--white {
  background: var(--velyx-white);
}

.velyx-section--subtle {
  background: var(--color-surface-subtle);
}

.velyx-section--dark {
  background: var(--velyx-midnight);
  color: var(--velyx-architectural-white);
}

.velyx-section--navy {
  background: var(--velyx-architectural-navy);
  color: var(--velyx-architectural-white);
}

.velyx-section--dark h1,
.velyx-section--dark h2,
.velyx-section--dark h3,
.velyx-section--dark h4,
.velyx-section--dark h5,
.velyx-section--navy h1,
.velyx-section--navy h2,
.velyx-section--navy h3,
.velyx-section--navy h4,
.velyx-section--navy h5 {
  color: var(--velyx-architectural-white);
}

.velyx-grid {
  display: grid;
  gap: var(--space-6);
}

.velyx-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.velyx-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.velyx-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.velyx-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.velyx-cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
}

/* ============================================================
   6. HEADER AND NAVIGATION
   ============================================================ */

.velyx-header {
  position: relative;
  z-index: 20;
  background: var(--velyx-midnight);
  color: var(--velyx-architectural-white);
  border-bottom: 1px solid rgb(182 202 220 / 20%);
}

.velyx-header__inner {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.velyx-header__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--velyx-architectural-white);
  text-decoration: none;
}

.velyx-header__logo {
  display: block;
  width: auto;
  height: 36px;
}

.velyx-navigation {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.velyx-navigation a {
  color: var(--velyx-architectural-white);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
}

.velyx-navigation a:hover,
.velyx-navigation a[aria-current="page"] {
  color: var(--velyx-mineral-teal);
}

/* ============================================================
   7. HERO
   ============================================================ */

.velyx-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(5rem, 10vw, 10rem);
  background: var(--velyx-midnight);
  color: var(--velyx-architectural-white);
}

.velyx-hero::after {
  position: absolute;
  inset: auto -15% -50% auto;
  width: clamp(20rem, 50vw, 48rem);
  aspect-ratio: 1;
  border: 1px solid rgb(182 202 220 / 14%);
  border-radius: 32%;
  content: "";
  pointer-events: none;
  rotate: 36deg;
}

.velyx-hero__content {
  position: relative;
  z-index: 1;
  max-width: 60rem;
}

.velyx-hero h1,
.velyx-hero h2,
.velyx-hero strong {
  color: var(--velyx-architectural-white);
}

.velyx-hero p {
  max-width: 46rem;
  color: #d7e1e9;
  font-size: clamp(1.125rem, 2vw, 1.375rem);
}

.velyx-eyebrow {
  display: inline-block;
  margin-bottom: var(--space-5);
  color: var(--velyx-mineral-teal);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ============================================================
   8. CARDS
   ============================================================ */

.velyx-card {
  position: relative;
  overflow: hidden;
  padding: clamp(var(--space-5), 3vw, var(--space-8));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  transition:
    border-color var(--transition-standard),
    box-shadow var(--transition-standard),
    translate var(--transition-standard);
}

.velyx-card:hover {
  border-color: var(--velyx-architecture-mist);
  box-shadow: var(--shadow-md);
  translate: 0 -2px;
}

.velyx-card h3,
.velyx-card h4 {
  margin-bottom: var(--space-3);
}

.velyx-card--architectural {
  border-top: 4px solid var(--velyx-midnight);
}

.velyx-card--technology {
  border-top: 4px solid var(--velyx-intelligence-blue);
}

.velyx-card--transformation {
  border-top: 4px solid var(--velyx-mineral-teal);
}

.velyx-card--dark {
  border-color: rgb(182 202 220 / 20%);
  background: var(--velyx-midnight);
  color: var(--velyx-architectural-white);
}

.velyx-card--dark h3,
.velyx-card--dark h4 {
  color: var(--velyx-architectural-white);
}

/* ============================================================
   9. BUTTONS
   ============================================================ */

.velyx-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.75rem 1.2rem;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-family-body);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  line-height: 1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast),
    box-shadow var(--transition-fast),
    translate var(--transition-fast);
}

.velyx-button:hover {
  text-decoration: none;
  translate: 0 -1px;
}

.velyx-button:active {
  translate: 0;
}

.velyx-button:disabled,
.velyx-button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.55;
  translate: 0;
}

.velyx-button--primary {
  background: var(--velyx-midnight);
  color: var(--velyx-architectural-white);
}

.velyx-button--primary:hover {
  background: var(--velyx-architectural-navy);
  color: var(--velyx-architectural-white);
}

.velyx-button--technology {
  background: var(--velyx-intelligence-blue);
  color: var(--velyx-white);
}

.velyx-button--technology:hover {
  background: var(--color-interactive-hover);
  color: var(--velyx-white);
}

.velyx-button--accent-dark {
  background: var(--velyx-mineral-teal);
  color: var(--velyx-midnight);
}

.velyx-button--accent-dark:hover {
  background: #18b7b4;
  color: var(--velyx-midnight);
}

.velyx-button--outline {
  border-color: var(--velyx-midnight);
  background: transparent;
  color: var(--velyx-midnight);
}

.velyx-button--outline:hover {
  background: var(--velyx-midnight);
  color: var(--velyx-architectural-white);
}

.velyx-button--outline-light {
  border-color: var(--velyx-architectural-white);
  background: transparent;
  color: var(--velyx-architectural-white);
}

.velyx-button--outline-light:hover {
  background: var(--velyx-architectural-white);
  color: var(--velyx-midnight);
}

/* ============================================================
   10. FORMS
   ============================================================ */

.velyx-field {
  display: grid;
  gap: var(--space-2);
}

.velyx-label {
  color: var(--color-text);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
}

.velyx-input,
.velyx-select,
.velyx-textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text);
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.velyx-textarea {
  min-height: 8rem;
  resize: vertical;
}

.velyx-input:hover,
.velyx-select:hover,
.velyx-textarea:hover {
  border-color: var(--velyx-architectural-navy);
}

.velyx-input:focus,
.velyx-select:focus,
.velyx-textarea:focus {
  border-color: var(--velyx-intelligence-blue);
  outline: none;
  box-shadow: 0 0 0 3px rgb(40 100 220 / 18%);
}

.velyx-help-text {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
}

.velyx-validation-error {
  color: var(--color-error);
  font-size: var(--font-size-sm);
}

/* ============================================================
   11. TABLES
   ============================================================ */

.velyx-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.velyx-table {
  width: 100%;
  min-width: 42rem;
  background: var(--color-surface);
}

.velyx-table th,
.velyx-table td {
  padding: var(--space-4);
  border-bottom: 1px solid var(--color-border-subtle);
  text-align: left;
  vertical-align: top;
}

.velyx-table th {
  background: var(--velyx-midnight);
  color: var(--velyx-architectural-white);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
}

.velyx-table tbody tr:hover {
  background: var(--color-surface-subtle);
}

/* ============================================================
   12. BADGES AND STATUS
   ============================================================ */

.velyx-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-pill);
  background: var(--color-surface-subtle);
  color: var(--color-text);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
}

.velyx-badge--technology {
  background: var(--color-info-background);
  color: #174398;
}

.velyx-badge--transformation {
  background: var(--velyx-midnight);
  color: var(--velyx-mineral-teal);
}

.velyx-status--success {
  background: var(--color-success-background);
  color: var(--color-success);
}

.velyx-status--warning {
  background: var(--color-warning-background);
  color: var(--color-warning);
}

.velyx-status--error {
  background: var(--color-error-background);
  color: var(--color-error);
}

/* ============================================================
   13. BRAND AND ARCHITECTURAL UTILITIES
   ============================================================ */

.velyx-text-primary {
  color: var(--velyx-midnight);
}

.velyx-text-secondary {
  color: var(--velyx-graphite);
}

.velyx-text-technology {
  color: var(--velyx-intelligence-blue);
}

.velyx-text-accent-dark {
  color: var(--velyx-mineral-teal);
}

.velyx-text-structure {
  color: var(--velyx-architecture-mist);
}

.velyx-background-primary {
  background: var(--velyx-midnight);
  color: var(--velyx-architectural-white);
}

.velyx-background-navy {
  background: var(--velyx-architectural-navy);
  color: var(--velyx-architectural-white);
}

.velyx-background-light {
  background: var(--velyx-architectural-white);
  color: var(--velyx-midnight);
}

.velyx-background-white {
  background: var(--velyx-white);
  color: var(--velyx-midnight);
}

.velyx-rule {
  width: 4rem;
  height: 3px;
  margin: var(--space-5) 0;
  border: 0;
  background: var(--velyx-mineral-teal);
}

.velyx-rule--technology {
  background: var(--velyx-intelligence-blue);
}

.velyx-architectural-frame {
  position: relative;
  border: 1px solid var(--velyx-architecture-mist);
}

.velyx-architectural-frame::before {
  position: absolute;
  top: -1px;
  left: -1px;
  width: 4rem;
  height: 4px;
  background: var(--velyx-mineral-teal);
  content: "";
}

.velyx-expressive {
  background: var(--velyx-intelligence-gradient);
  color: var(--velyx-white);
}

.velyx-expressive--architectural {
  background: var(--velyx-architectural-gradient);
  color: var(--velyx-white);
}

/*
 * Do not introduce a generic utility that renders Mineral Teal text
 * on a light background. The approved teal/light contrast is not
 * sufficient for normal-size text.
 */

/* ============================================================
   14. ACCESSIBILITY UTILITIES
   ============================================================ */

.velyx-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.velyx-skip-link {
  position: fixed;
  top: var(--space-3);
  left: var(--space-3);
  z-index: 9999;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  background: var(--velyx-architectural-white);
  color: var(--velyx-midnight);
  box-shadow: var(--shadow-md);
  translate: 0 -200%;
}

.velyx-skip-link:focus {
  translate: 0;
}

@media (forced-colors: active) {
  .velyx-button,
  .velyx-card,
  .velyx-input,
  .velyx-select,
  .velyx-textarea {
    border: 1px solid CanvasText;
  }

  :focus-visible {
    outline: 3px solid Highlight;
  }
}

/* ============================================================
   15. RESPONSIVE BEHAVIOR
   ============================================================ */

@media (max-width: 64rem) {
  .velyx-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .velyx-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 48rem) {
  .velyx-header__inner {
    min-height: 64px;
  }

  .velyx-navigation {
    gap: var(--space-4);
  }

  .velyx-grid--2,
  .velyx-grid--3,
  .velyx-grid--4 {
    grid-template-columns: 1fr;
  }

  .velyx-hero {
    padding-block: var(--space-20);
  }

  .velyx-cluster--mobile-stack {
    align-items: stretch;
    flex-direction: column;
  }

  .velyx-cluster--mobile-stack .velyx-button {
    width: 100%;
  }
}

@media (max-width: 36rem) {
  .velyx-navigation {
    display: none;
  }

  .velyx-card {
    padding: var(--space-5);
  }
}

/* ============================================================
   16. REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ============================================================
   17. DARK MODE
   ============================================================ */

@media (prefers-color-scheme: dark) {
  :root {
    --color-background: #061624;
    --color-background-alt: #081b2c;
    --color-surface: #0c2438;
    --color-surface-subtle: #102d46;

    --color-text: var(--velyx-architectural-white);
    --color-text-secondary: #d7e1e9;
    --color-text-muted: #b6cadc;
    --color-text-inverse: var(--velyx-midnight);
    --color-text-link: #8eb2ff;

    --color-border: #29455c;
    --color-border-subtle: #1e3b51;
    --color-border-strong: #527087;
    --color-divider: #29455c;
  }

  html {
    color-scheme: dark;
  }

  .velyx-card--architectural {
    border-top-color: var(--velyx-mineral-teal);
  }

  .velyx-button--primary {
    background: var(--velyx-architectural-white);
    color: var(--velyx-midnight);
  }

  .velyx-button--primary:hover {
    background: var(--velyx-architecture-mist);
    color: var(--velyx-midnight);
  }

  .velyx-button--outline {
    border-color: var(--velyx-architecture-mist);
    color: var(--velyx-architectural-white);
  }

  .velyx-button--outline:hover {
    background: var(--velyx-architectural-white);
    color: var(--velyx-midnight);
  }

  code {
    color: var(--velyx-architecture-mist);
  }
}

/* ============================================================
   18. PRINT
   ============================================================ */

@media print {
  :root {
    --color-background: #ffffff;
    --color-background-alt: #ffffff;
    --color-surface: #ffffff;
    --color-surface-subtle: #ffffff;
    --color-text: #081b2c;
    --color-text-secondary: #35414d;
    --color-text-muted: #536574;
    --color-border: #cdd8e1;
  }

  html,
  body {
    background: #ffffff;
    color: #35414d;
  }

  body {
    font-size: 10.5pt;
  }

  a {
    color: #081b2c;
    text-decoration: underline;
  }

  .velyx-header,
  .velyx-navigation,
  .velyx-button,
  .velyx-skip-link {
    display: none !important;
  }

  .velyx-hero,
  .velyx-section--dark,
  .velyx-section--navy,
  .velyx-expressive,
  .velyx-expressive--architectural {
    background: #ffffff !important;
    color: #081b2c !important;
  }

  .velyx-hero h1,
  .velyx-hero h2,
  .velyx-section--dark h1,
  .velyx-section--dark h2,
  .velyx-section--dark h3,
  .velyx-section--navy h1,
  .velyx-section--navy h2,
  .velyx-section--navy h3 {
    color: #081b2c !important;
  }

  .velyx-card {
    break-inside: avoid;
    border: 1px solid #cdd8e1;
    box-shadow: none;
  }

  .velyx-table-wrapper {
    overflow: visible;
  }

  .velyx-table {
    min-width: 0;
  }

  .velyx-table th {
    background: #081b2c !important;
    color: #ffffff !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  /*
   * Architectural White should normally be represented by the
   * physical white paper stock rather than printing a background tint.
   */
}