/* ==========================================================
   Spidernet — site styles
   Edit the colors here to restyle the whole site.
   ========================================================== */
:root {
  --ink: #16202E;
  --ink-2: #3A4658;
  --muted: #4A5668;
  --subtle: #5A6578;
  --line: #DCE2EB;
  --bg: #F7F9FC;
  --white: #FFFFFF;
  --soft: #E3E9F2;
  --accent: #1F47C2;
  --accent-dark: #132E80;
  --accent-light: #8FAEFF;
  --dark-line: #2B3A52;
  --radius: 8px;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
h1, h2, h3 { line-height: 1.15; margin: 0; }
p { margin: 0; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 4px; z-index: 100; }
.skip-link:focus { left: 8px; }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(1.2) blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-icon { width: 40px; height: 40px; color: var(--ink); }
.brand-icon .pupil { fill: var(--accent); }
.brand-word { font-weight: 700; font-size: 22px; }
.brand-word span { color: var(--accent); }

.site-nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.site-nav a { color: var(--ink-2); text-decoration: none; padding: 10px 0; }
.site-nav a:hover { color: var(--accent); }
.site-nav .nav-cta { color: var(--accent); font-weight: 600; }

.menu-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 6px;
  width: 44px; height: 44px; align-items: center; justify-content: center; color: var(--ink); cursor: pointer;
}

/* ---------- Shared ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-white { background: var(--white); }
.eyebrow { font-family: var(--mono); font-size: 14px; color: var(--accent); margin-bottom: 12px; }
.eyebrow-light { color: var(--accent-light); }
h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; letter-spacing: -0.5px; margin-bottom: 40px; }

.btn {
  display: inline-block; font: inherit; font-weight: 600; font-size: 17px;
  padding: 15px 26px; border-radius: 4px; text-decoration: none; border: 0; cursor: pointer;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.link-arrow { font-weight: 600; font-size: 17px; padding: 12px 0; }

/* ---------- Hero ---------- */
.hero { background: var(--white); padding: clamp(56px, 8vw, 104px) 0; }
.hero-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.hero-copy { flex: 999 1 520px; min-width: 0; }
.hero-art { flex: 1 1 340px; min-width: 0; display: flex; justify-content: center; }
.hero-art svg { width: 100%; max-width: 460px; height: auto; }
.hero-art .hub { fill: var(--accent); }
.hero h1 { font-size: clamp(34px, 5vw, 60px); letter-spacing: -1px; }
.lead { margin-top: 24px; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: var(--muted); max-width: 620px; }
.actions { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.meta { margin-top: 28px; font-family: var(--mono); font-size: 13px; color: var(--subtle); }

/* subtle pulse on the web nodes */
@media (prefers-reduced-motion: no-preference) {
  .hero-art .nodes circle { animation: pulse 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
  .hero-art .nodes circle:nth-child(2) { animation-delay: .5s; }
  .hero-art .nodes circle:nth-child(3) { animation-delay: 1s; }
  .hero-art .nodes circle:nth-child(4) { animation-delay: 1.5s; }
  .hero-art .nodes circle:nth-child(5) { animation-delay: 2s; }
  .hero-art .nodes circle:nth-child(6) { animation-delay: 2.5s; }
}
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.25); } }

/* ---------- Services ---------- */
.featured {
  background: var(--ink); color: #fff; border-radius: var(--radius);
  padding: clamp(28px, 4vw, 56px); display: flex; flex-wrap: wrap; align-items: center; gap: 32px 56px; margin-bottom: 24px;
}
.featured-copy { flex: 999 1 440px; min-width: 0; }
.featured h3 { font-size: clamp(26px, 2.8vw, 34px); margin-bottom: 14px; }
.featured-copy > p:last-child { font-size: 18px; line-height: 1.6; color: #C9D2DE; }
.featured-tags { flex: 1 1 280px; display: flex; flex-wrap: wrap; gap: 10px; }
.tag { font-family: var(--mono); font-size: 13px; padding: 8px 12px; border: 1px solid #3E4E66; border-radius: 4px; }
.featured-link { flex-basis: 100%; margin-top: 8px; color: #fff; font-weight: 600; }
.featured-link:hover { color: var(--accent-light); }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; display: flex; flex-direction: column; gap: 14px;
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card-num { font-family: var(--mono); font-size: 13px; color: var(--subtle); }
.card h3 { font-size: 22px; font-weight: 600; }
.card p { font-size: 16px; line-height: 1.6; color: var(--muted); }
.card .card-tags { margin-top: auto; padding-top: 6px; font-family: var(--mono); font-size: 13px; color: var(--accent); }
.also { margin-top: 32px; font-size: 16px; color: var(--muted); }
.also strong { color: var(--ink); }

/* ---------- Photos ---------- */
.photo { position: relative; margin: 0; border-radius: var(--radius); background: var(--soft); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-ph { font-family: var(--mono); font-size: 14px; color: var(--muted); text-align: center; padding: 20px; }
.photo-wide { height: clamp(220px, 28vw, 380px); }
.photo-square { aspect-ratio: 1 / 1; flex: 1 1 280px; max-width: 380px; }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.steps li { border-top: 2px solid var(--accent); padding-top: 20px; }
.step-num { font-family: var(--mono); font-size: 14px; color: var(--subtle); }
.steps h3 { font-size: 21px; margin: 8px 0; }
.steps li > p:last-child { font-size: 16px; line-height: 1.6; color: var(--muted); }

/* ---------- Testimonials ---------- */
.quote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.quote { margin: 0; background: var(--bg); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.quote blockquote { margin: 0; font-size: 18px; line-height: 1.6; }
.quote figcaption { margin-top: auto; font-size: 15px; color: var(--muted); }
.quote figcaption strong { color: var(--ink); }

/* ---------- About ---------- */
.about { display: flex; flex-wrap: wrap; align-items: center; gap: 48px 64px; }
.about-copy { flex: 999 1 460px; min-width: 0; }
.about-copy h2 { margin-bottom: 8px; }
.about-name { letter-spacing: 1px; }
.about-name span { color: var(--accent); }
.stats { display: flex; flex-wrap: wrap; gap: 16px 40px; margin: 28px 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
.stats dt { font-family: var(--mono); font-size: 13px; color: var(--subtle); }
.stats dd { margin: 4px 0 0; font-size: 22px; font-weight: 700; color: var(--ink); }
.about-copy p.about-tagline { font-size: 20px; font-weight: 600; color: var(--ink-2); margin-bottom: 20px; }
.about-copy p:not(.eyebrow) { font-size: 18px; line-height: 1.7; color: var(--muted); margin-bottom: 16px; }

/* ---------- Contact ---------- */
.contact { background: var(--ink); color: #fff; }
.contact-inner { display: flex; flex-wrap: wrap; gap: 48px 64px; }
.contact-copy { flex: 1 1 320px; min-width: 0; }
.contact-copy h2 { margin-bottom: 16px; }
.contact-lead { font-size: 18px; line-height: 1.6; color: #C9D2DE; margin-bottom: 36px; }
.label-mono { font-family: var(--mono); font-size: 13px; color: var(--accent-light); margin-bottom: 6px; }
.phone { font-size: 22px; font-weight: 600; margin-bottom: 28px; }
.phone a { color: #fff; }
.area { font-size: 18px; }

.contact-form {
  flex: 999 1 460px; min-width: 0; background: var(--white); color: var(--ink);
  border-radius: var(--radius); padding: clamp(24px, 3vw, 40px); display: grid; gap: 18px;
}
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 560px) { .field-grid { grid-template-columns: 1fr; } }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 600; }
.req { color: #B42318; }
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit; font-weight: 400; font-size: 16px; padding: 13px; border: 1px solid #B9C3D1; border-radius: 4px; background: #fff; color: var(--ink);
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: 0; }
.contact-form [aria-invalid="true"] { border-color: #B42318; }
.contact-form button { justify-self: start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.captcha-slot {
  min-height: 65px; border: 1px dashed #B9C3D1; border-radius: 4px; padding: 12px 16px;
  display: flex; align-items: center; background: var(--bg); font-family: var(--mono); font-size: 12px; color: var(--subtle);
}
.captcha-slot.is-live { border: 0; padding: 0; background: none; }
.form-status { font-size: 15px; min-height: 1.5em; }
.form-status.ok { color: #0E7C3A; }
.form-status.err { color: #B42318; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); border-top: 1px solid var(--dark-line); padding: 28px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 13px; color: var(--accent-light); }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-word { font-family: var(--sans); font-weight: 700; font-size: 16px; color: #fff; }
.footer-word span { color: var(--accent-light); }

/* ---------- Phone & tablet ---------- */
@media (max-width: 820px) {
  .menu-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 16px;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .site-nav a:last-child { border-bottom: 0; }
  .header-inner { position: relative; }
}
@media (max-width: 480px) {
  .brand-word { font-size: 19px; }
  .brand-icon { width: 34px; height: 34px; }
  .card { padding: 24px; }
  .contact-form button { justify-self: stretch; }
  .actions .btn { width: 100%; text-align: center; }
}
