/* Manostat brand layer — retunes the Modernist tokens to navy + teal.
   Structure, flatness and flush-left alignment stay Modernist; buttons and
   type were refined for a lighter, more premium hierarchy. */
:root {
  --color-bg: #ffffff;
  --color-surface: #f5f7f9;
  --color-text: #16212e;

  --color-accent: #0f4c81;
  --color-accent-100: #eef4fa;
  --color-accent-200: #d6e5f2;
  --color-accent-300: #adc8e0;
  --color-accent-400: #5b8db8;
  --color-accent-500: #1a5f9c;
  --color-accent-600: #0d4270;
  --color-accent-700: #0a3559;
  --color-accent-800: #082943;
  --color-accent-900: #061d30;

  --color-accent-2: #16a085;
  --color-accent-2-100: #e8f7f3;
  --color-accent-2-200: #cbeee5;
  --color-accent-2-300: #96dccb;
  --color-accent-2-400: #4fc0a7;
  --color-accent-2-500: #16a085;
  --color-accent-2-600: #12866f;
  --color-accent-2-700: #0e6c59;
  --color-accent-2-800: #0a5344;
  --color-accent-2-900: #073a30;

  --color-divider: rgba(22, 33, 46, 0.14);

  /* project conveniences */
  --line: #e6eaef;
  --ink-70: rgba(22, 33, 46, 0.72);
  --ink-55: rgba(22, 33, 46, 0.56);
  --navy: #0f4c81;
  --navy-deep: #0a3559;
  --teal: #16a085;
  --shell: 1240px;
}

body {
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.6;
}
h1, h2, h3, h4, h5 { letter-spacing: -0.022em; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: var(--navy); transition: color 0.2s ease; }
a:hover { color: var(--teal); }

/* — buttons: soft-cornered, animated, consistent everywhere — */
.btn {
  border-radius: 4px;
  letter-spacing: 0.06em;
  white-space: nowrap;
  gap: 9px;
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease,
    transform 0.22s cubic-bezier(0.2, 0.8, 0.3, 1), box-shadow 0.22s ease;
  will-change: transform;
}
.btn svg { transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.3, 1); }
.btn:hover { transform: translateY(-2px); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(0); }
.btn-primary { box-shadow: 0 1px 2px rgba(6, 29, 48, 0.16); }
.btn-primary:hover { background: var(--color-accent-600); color: #fff; box-shadow: 0 8px 20px rgba(15, 76, 129, 0.26); }
.btn-primary:active { background: var(--color-accent-700); color: #fff; }
.btn-secondary:hover { background: var(--navy); color: #fff; border-color: var(--navy); box-shadow: 0 6px 16px rgba(22, 33, 46, 0.14); }
.btn-secondary:active { background: var(--color-accent-700); color: #fff; border-color: var(--color-accent-700); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.input { border-radius: 4px; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.input:focus-visible { box-shadow: 0 0 0 3px var(--color-accent-100); }

/* scroll reveal (site.js toggles data-reveal="in") */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s cubic-bezier(0.16, 0.84, 0.44, 1), transform 0.7s cubic-bezier(0.16, 0.84, 0.44, 1);
}
[data-reveal="in"] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
}

@keyframes mn-fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes mn-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }

html { scroll-behavior: smooth; }

/* five-across row (media queries can't be inline) */
@media (max-width: 1100px) {
  [data-row5] { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (max-width: 760px) {
  [data-row5] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 480px) {
  [data-row5] { grid-template-columns: minmax(0, 1fr) !important; }
}

/* six-across row (media queries can't be inline) */
@media (max-width: 1100px) {
  [data-row6] { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (max-width: 760px) {
  [data-row6] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 480px) {
  [data-row6] { grid-template-columns: minmax(0, 1fr) !important; }
}
