/* ============================================================
   SteadyState Data — design tokens
   Palette: cool graphite/off-white (not the warm-cream default),
   one restrained teal "signal" accent, a rare amber "exception" color.
   Type: Fraunces (display serif, has weight and character — used
   sparingly for headlines) paired with IBM Plex Sans (body/UI).
   ============================================================ */

:root {
  --ink: #14181a;
  --paper: #f0f2f0;
  --card: #fafbfa;
  --slate: #5c6b6e;
  --slate-light: #8a9698;
  --line: #d7ddda;
  --signal: #1f6f62;
  --signal-dim: #164f46;
  --signal-soft: #e4efec;
  --exception: #b8632e;
  --exception-soft: #f5e9dd;

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "IBM Plex Sans", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  --max-width: 1152px;
  --radius: 6px;
}

* {
  box-sizing: border-box;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

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

::selection {
  background: var(--signal);
  color: var(--paper);
}

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}

/* ---------- layout ---------- */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  border-bottom: 1px solid var(--line);
}

.section--card {
  background: var(--card);
}

.section-pad {
  padding: 64px 0;
}

@media (min-width: 768px) {
  .section-pad {
    padding: 96px 0;
  }
}

.section-pad--sm {
  padding: 56px 0;
}

@media (min-width: 768px) {
  .section-pad--sm {
    padding: 72px 0;
  }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: var(--radius);
  z-index: 100;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(240, 242, 240, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
}

.brand-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--signal);
  flex-shrink: 0;
}

.primary-nav {
  display: none;
  align-items: center;
  gap: 32px;
}

.primary-nav a {
  text-decoration: none;
  font-size: 15px;
  color: var(--slate);
  transition: color 0.15s ease;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: var(--ink);
}

.primary-nav a[aria-current="page"] {
  font-weight: 500;
}

.nav-cta {
  display: none;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  color: var(--ink);
  cursor: pointer;
}

@media (min-width: 860px) {
  .primary-nav {
    display: flex;
  }
  .nav-cta {
    display: inline-flex;
  }
  .nav-toggle {
    display: none;
  }
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  padding: 16px 24px 20px;
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-nav a {
  display: block;
  padding: 10px 4px;
  text-decoration: none;
  color: var(--ink);
  font-size: 15px;
  border-radius: var(--radius);
}

.mobile-nav .btn {
  margin-top: 10px;
  width: 100%;
  justify-content: center;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn--primary {
  background: var(--ink);
  color: var(--paper);
}

.btn--primary:hover {
  background: var(--signal-dim);
}

.btn--secondary {
  background: transparent;
  border-color: rgba(20, 24, 26, 0.2);
  color: var(--ink);
}

.btn--secondary:hover {
  border-color: var(--signal);
  color: var(--signal-dim);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ---------- typography helpers ---------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--slate);
  margin-bottom: 12px;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal);
  flex-shrink: 0;
}

.h1 {
  font-size: clamp(2.1rem, 1.6rem + 2.2vw, 3.4rem);
}

.h2 {
  font-size: clamp(1.7rem, 1.4rem + 1.3vw, 2.4rem);
}

.h3 {
  font-size: 1.25rem;
  font-family: var(--font-body);
  font-weight: 500;
}

.lede {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--slate);
  max-width: 42rem;
}

.max-prose {
  max-width: 42rem;
}

.text-slate {
  color: var(--slate);
}

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

.hero {
  display: grid;
  gap: 48px;
  align-items: center;
  padding: 64px 0;
}

@media (min-width: 860px) {
  .hero {
    grid-template-columns: 1.1fr 0.9fr;
    padding: 100px 0;
  }
}

.hero-copy .h1 {
  margin-top: 4px;
}

.hero-lede {
  margin-top: 22px;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-visual {
  display: none;
}

@media (min-width: 860px) {
  .hero-visual {
    display: block;
  }
}

.hero-visual p {
  margin-top: 12px;
  font-size: 14px;
  color: var(--slate);
}

/* ---------- signal line motif ---------- */

.signal-line {
  width: 100%;
  height: auto;
}

/* ---------- recognition grid ---------- */

.grid-cards {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 40px;
}

@media (min-width: 640px) {
  .grid-cards--2 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 768px) {
  .grid-cards--3 {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.card {
  background: var(--card);
  padding: 28px;
}

.card p {
  font-size: 1.05rem;
  line-height: 1.55;
}

.card-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.15s ease;
}

.card-link:hover {
  background: var(--signal-soft);
}

.card-link h3 {
  color: var(--ink);
}

.card-link p {
  margin-top: 8px;
  flex: 1;
  font-size: 0.95rem;
  color: var(--slate);
  line-height: 1.55;
}

.card-link .read-more {
  margin-top: 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--signal-dim);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.card-link:hover .read-more {
  opacity: 1;
}

/* ---------- approach / steps ---------- */

.approach-steps {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 32px;
}

@media (min-width: 640px) {
  .approach-steps {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .approach-steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.approach-steps .step-num {
  font-size: 14px;
  font-weight: 500;
  color: var(--slate);
}

.approach-steps h3 {
  margin-top: 4px;
}

.approach-steps p {
  margin-top: 8px;
  font-size: 0.95rem;
  color: var(--slate);
  line-height: 1.55;
}

/* ---------- before / after ---------- */

.before-after {
  margin-top: 40px;
}

.before-after ol {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.before-after li {
  display: flex;
  gap: 12px;
  font-size: 0.98rem;
  line-height: 1.5;
}

.before-after .num {
  color: var(--slate);
}

.before-after .after .num {
  color: var(--signal-dim);
}

.before-after .label {
  font-size: 14px;
  font-weight: 500;
  color: var(--slate);
}

.before-after .after .label {
  color: var(--signal-dim);
}

.before-after .sublabel {
  margin-top: 2px;
  font-size: 14px;
  color: var(--slate);
}

.conclusion-line {
  margin-top: 32px;
  font-size: 1.2rem;
  font-family: var(--font-display);
}

/* ---------- industries ---------- */

.industries-list {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  gap: 28px;
}

@media (min-width: 640px) {
  .industries-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .industries-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.industries-list li {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.industries-list h3 {
  font-size: 1.05rem;
}

.industries-list p {
  margin-top: 8px;
  font-size: 0.95rem;
  color: var(--slate);
  line-height: 1.55;
}

/* ---------- small-data-pipes callout ---------- */

.callout {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 10px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (min-width: 768px) {
  .callout {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 40px;
  }
}

.callout-copy {
  max-width: 34rem;
}

.callout-eyebrow {
  font-size: 14px;
  color: var(--slate);
}

.callout h2 {
  margin-top: 6px;
  font-size: 1.5rem;
}

.callout p.body {
  margin-top: 12px;
  font-size: 0.98rem;
  color: var(--slate);
  line-height: 1.6;
}

/* ---------- final CTA ---------- */

.final-cta {
  text-align: center;
  padding: 80px 0;
}

@media (min-width: 768px) {
  .final-cta {
    padding: 110px 0;
  }
}

.final-cta .h2 {
  max-width: 34rem;
  margin: 0 auto;
}

.final-cta .lede {
  margin: 16px auto 0;
  text-align: center;
}

.final-cta .btn {
  margin-top: 30px;
}

/* ---------- services page ---------- */

.service-block {
  padding: 56px 0;
}

.service-block--alt {
  background: var(--card);
}

.service-grid {
  display: grid;
  gap: 40px;
}

@media (min-width: 768px) {
  .service-grid {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

.service-intro h2 {
  font-size: 1.55rem;
}

.service-intro p {
  margin-top: 12px;
  font-size: 0.95rem;
  color: var(--slate);
  line-height: 1.6;
}

.service-columns {
  display: grid;
  gap: 28px;
}

@media (min-width: 480px) {
  .service-columns {
    grid-template-columns: 1fr 1fr;
  }
}

.service-columns h4 {
  font-size: 14px;
  font-weight: 500;
  color: var(--slate);
  margin: 0;
}

.service-columns ul {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-columns li {
  font-size: 0.95rem;
  line-height: 1.5;
}

.outcome {
  margin-top: 32px;
  border: 1px solid var(--line);
  background: var(--signal-soft);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-size: 0.95rem;
  line-height: 1.55;
}

.outcome strong {
  font-weight: 500;
}

.tech-grid {
  display: grid;
  gap: 28px;
  margin-top: 40px;
}

@media (min-width: 640px) {
  .tech-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .tech-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.tech-grid h4 {
  font-size: 14px;
  font-weight: 500;
  color: var(--slate);
  margin: 0;
}

.tech-grid p {
  margin-top: 8px;
  font-size: 0.95rem;
}

/* ---------- how we work ---------- */

.phase-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.phase-item {
  display: grid;
  gap: 20px;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}

.phase-item:last-child {
  border-bottom: none;
}

@media (min-width: 768px) {
  .phase-item {
    grid-template-columns: 220px 1fr;
    gap: 48px;
  }
}

.phase-num {
  font-size: 14px;
  font-weight: 500;
  color: var(--slate);
}

.phase-item h2 {
  font-size: 1.4rem;
  margin-top: 6px;
}

.phase-item .desc {
  max-width: 42rem;
  font-size: 0.98rem;
  color: var(--slate);
  line-height: 1.6;
}

.phase-tags {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.phase-tags span {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 3px;
  padding: 6px 12px;
  font-size: 14px;
}

/* ---------- about ---------- */

.drift-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0 0 0 24px;
  border-left: 2px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.drift-list li {
  font-size: 1.05rem;
  line-height: 1.55;
}

/* ---------- legal pages ---------- */

.legal-section {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 40px;
}

.legal-section h2 {
  font-size: 1.15rem;
  font-family: var(--font-body);
  font-weight: 500;
}

.legal-section p {
  margin-top: 8px;
  font-size: 0.95rem;
  color: var(--slate);
  line-height: 1.6;
}

.legal-section a {
  color: var(--ink);
  text-decoration: underline;
}

.updated {
  margin-top: 8px;
  font-size: 14px;
  color: var(--slate);
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 56px 0;
}

@media (min-width: 768px) {
  .footer-top {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
}

.footer-desc {
  margin-top: 12px;
  max-width: 24rem;
  font-size: 0.95rem;
  color: var(--slate);
  line-height: 1.55;
}

.footer-sdp {
  margin-top: 16px;
  font-size: 0.95rem;
  color: var(--slate);
  line-height: 1.55;
}

.footer-sdp a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 40px;
}

.footer-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--slate);
}

.footer-nav a:hover {
  color: var(--ink);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding: 20px 0;
  font-size: 0.9rem;
  color: var(--slate);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-bottom a {
  color: var(--slate);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--ink);
}

/* ---------- 404 ---------- */

.notfound {
  text-align: center;
  padding: 120px 0;
}

.notfound .code {
  font-size: 14px;
  font-weight: 500;
  color: var(--slate);
}

.notfound h1 {
  margin-top: 12px;
}

.notfound p {
  margin: 12px auto 0;
  max-width: 28rem;
  color: var(--slate);
}

.notfound .actions {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  gap: 16px;
}
