/* Hugging Robots: site styles
   No external fonts or frameworks. System font stack for speed and privacy. */

:root {
  --navy: #0F1E2E;
  --charcoal: #2A3441;
  --muted: #5B6675;
  --line: #E1E7ED;
  --tint: #F4F7F9;
  --white: #FFFFFF;
  --accent: #0E7C86;        /* teal, 4.9:1 on white */
  --accent-strong: #0A6169;
  --accent-soft: #2BB3B1;
  --radius: 14px;
  --max: 1160px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(72px, 10vw, 128px);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--charcoal);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }

h1, h2, h3 { color: var(--navy); margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

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

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; color: var(--white); }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.eyebrow-light { color: var(--accent-soft); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 24px;
  border-radius: 999px; border: 1.5px solid transparent;
  font: inherit; font-size: 0.98rem; font-weight: 600; text-decoration: none;
  cursor: pointer; transition: background-color .2s, border-color .2s, color .2s;
}
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--accent-strong); color: var(--white); }
.btn-secondary { background: transparent; color: var(--navy); border-color: #C3CDD6; }
.btn-secondary:hover { border-color: var(--navy); color: var(--navy); }
.btn-small { min-height: 40px; padding: 8px 18px; font-size: 0.92rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--navy); text-decoration: none; font-weight: 700; font-size: 1.08rem; letter-spacing: -0.01em; }
.brand:hover { color: var(--navy); }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 32px; }
.site-nav a:not(.btn) { color: var(--charcoal); text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.site-nav a:not(.btn):hover { color: var(--accent); }

.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px;
    background: var(--white); cursor: pointer;
  }
  .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
    content: ""; display: block; width: 18px; height: 2px; background: var(--navy); border-radius: 2px;
    position: relative; transition: transform .2s;
  }
  .nav-toggle-bar::before { position: absolute; top: -6px; }
  .nav-toggle-bar::after { position: absolute; top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

  .site-nav {
    position: absolute; left: 0; right: 0; top: 72px;
    background: var(--white); border-bottom: 1px solid var(--line);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 24px; }
  .site-nav li a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .site-nav li .btn { margin-top: 20px; width: 100%; }
}

/* Hero */
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 112px); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: 24px; max-width: 14ch; }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.22rem); color: var(--muted); max-width: 40em; margin-bottom: 36px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-visual { margin: 0; }
.hero-visual img { width: 100%; max-width: 480px; margin-left: auto; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-visual img { max-width: 340px; margin: 0 auto; }
}
@media (max-width: 480px) {
  .actions .btn { width: 100%; }
}

/* Sections */
.section { padding: var(--section) 0; }
.section-tint { background: var(--tint); }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }

.about-grid, .split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 6vw, 96px); align-items: start; }
.prose p { font-size: 1.12rem; color: var(--charcoal); }
.prose p:last-child { margin-bottom: 0; }
@media (max-width: 860px) { .about-grid, .split { grid-template-columns: 1fr; } }

/* Cards */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px 30px; }
.card h3 { margin: 22px 0 10px; }
.card p { color: var(--muted); font-size: 0.98rem; margin: 0; }
.card-icon { width: 40px; height: 40px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 1024px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

/* Partnership */
.pillars { list-style: none; margin: 28px 0 36px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pillars li { font-size: 0.9rem; color: var(--navy); background: var(--tint); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; }

/* Expertise columns */
.columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 48px); }
.column { border-top: 2px solid var(--navy); padding-top: 24px; }
.column-index { display: block; font-family: var(--mono); font-size: 0.8rem; color: var(--accent); letter-spacing: .1em; margin-bottom: 18px; }
.column h3 { margin-bottom: 12px; font-size: 1.25rem; }
.column p { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .columns { grid-template-columns: 1fr; } }

/* Dark band */
.section-dark { background: var(--navy); color: #C9D3DC; }
.section-dark h2 { color: var(--white); }
.section-dark .prose p { color: #C9D3DC; }
.coords { font-family: var(--mono); font-size: 0.85rem !important; letter-spacing: .08em; color: var(--accent-soft) !important; margin-top: 28px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact-info h2 { margin-bottom: 20px; }
.contact-info > p { color: var(--muted); font-size: 1.08rem; }
.contact-list { margin: 36px 0 0; display: grid; gap: 20px; }
.contact-list div { border-top: 1px solid var(--line); padding-top: 16px; }
.contact-list dt { font-family: var(--mono); font-size: 0.75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.contact-list dd { margin: 0; color: var(--navy); font-weight: 600; word-break: break-word; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-form { background: var(--tint); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 0.9rem; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--navy);
  background: var(--white); border: 1px solid #C9D3DC; border-radius: 10px;
  padding: 12px 14px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(14,124,134,.15); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #B42318; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .btn { width: 100%; }
.form-status { margin: 14px 0 0; font-size: 0.95rem; min-height: 1.5em; color: var(--muted); }
.form-status.is-error { color: #B42318; }
.form-status.is-success { color: var(--accent-strong); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0; font-size: 0.93rem; color: var(--muted); }
.site-footer p { margin: 0 0 6px; }
.footer-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: flex-end; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--navy); font-weight: 700; font-size: 1.05rem; margin-bottom: 12px !important; }
.footer-meta { text-align: right; }
@media (max-width: 640px) { .footer-meta { text-align: left; } }
