/* ==========================================================================
   Inetvision — site stylesheet
   Direction 01 · Quiet Confidence
   ========================================================================== */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, blockquote {
  margin: 0; padding: 0;
}
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; cursor: pointer; background: none; border: none; padding: 0; color: inherit; }
input, textarea, select, button { font: inherit; }

/* ---------- Tokens ---------- */
:root {
  /* color */
  --paper: #FAFAF7;
  --surface: #FFFFFF;
  --ink: #0B1F3A;
  --ink-soft: #1A3050;
  --slate: #5B6B82;
  --slate-soft: #8C97A8;
  --signal: #FF8769;
  --signal-soft: #FFE0D5;
  --border: #E4E0D6;
  --border-soft: #EFECE3;
  --muted: #888888;

  /* type */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  /* layout */
  --wrap-w: 1180px;
  --wrap-pad: 48px;
  --radius: 4px;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Typography ---------- */
.eyebrow {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 18px;
}
.eyebrow.signal { color: var(--signal); }

h1, h2, h3 {
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.05;
}
.display {
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 0.98;
}
.display em { font-style: normal; font-weight: 600; }
h2.section-h {
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 400;
  margin: 0 0 24px;
  max-width: 880px;
}
h2.section-h em { font-style: normal; font-weight: 600; }
h3 {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.lede {
  font-size: clamp(17px, 1.5vw, 20px);
  color: #444;
  max-width: 720px;
  line-height: 1.55;
}
.mono { font-family: var(--font-mono); }

a.link, a:not([class]) {
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  transition: border-color 0.2s, color 0.2s;
}
a.link:hover, a:not([class]):hover { color: var(--signal); border-color: var(--signal); }

/* ---------- Layout ---------- */
.wrap { max-width: var(--wrap-w); margin: 0 auto; padding: 0 var(--wrap-pad); }

section { padding: var(--space-10) 0; }
section.compact { padding: var(--space-9) 0; }
section.bordered { border-top: 1px solid var(--border); }
section.surface-dim { background: #EFEDE5; }
section.surface-ink { background: var(--ink); color: var(--paper); }
section.surface-ink .lede { color: #C5CCD7; }
section.surface-ink h2, section.surface-ink h3 { color: var(--paper); }
section.surface-ink .eyebrow { color: var(--signal); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}
.logo-link { display: inline-flex; align-items: center; border: none; }
.logo-link img { height: 48px; width: auto; }
.nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}
.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border: none;
  padding: 8px 0;
  position: relative;
}
.nav a:hover { color: var(--signal); }
.nav a.is-active { color: var(--ink); }
.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--signal);
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  background: var(--ink);
  color: var(--paper) !important;
  padding: 10px 18px !important;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 14px;
}
.nav-cta:hover { background: var(--ink-soft); color: var(--paper) !important; }
.nav-toggle {
  display: none;
  width: 32px; height: 32px;
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; stroke: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.2s, color 0.2s, border 0.2s;
  cursor: pointer;
}
.btn.primary { background: var(--ink); color: var(--paper); }
.btn.primary:hover { background: var(--ink-soft); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn.text { padding: 14px 0; color: var(--ink); border-bottom: 1px solid var(--ink); border-radius: 0; }
.btn.text:hover { color: var(--signal); border-bottom-color: var(--signal); }
.btn.on-dark.ghost { color: var(--paper); border-color: var(--paper); }
.btn.on-dark.ghost:hover { background: var(--paper); color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--paper) 0%, #EFEDE5 100%);
  padding: var(--space-9) 0 var(--space-10);
}
.hero-eyebrow {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--slate);
  margin-bottom: 24px;
}
.hero .display { margin: 0 0 32px; }
.hero .lede { margin-bottom: 40px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 24px; margin-top: 56px; }
.cards.col-2 { grid-template-columns: repeat(2, 1fr); }
.cards.col-3 { grid-template-columns: repeat(3, 1fr); }
.cards.col-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 32px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
a.card { text-decoration: none; color: inherit; border-bottom: 1px solid var(--border); }
a.card:hover {
  border-color: var(--ink);
  box-shadow: 0 20px 40px -28px rgba(11, 31, 58, 0.18);
  transform: translateY(-1px);
}
.card .card-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--paper);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.card h3 { margin: 0; font-size: 22px; }
.card p { color: var(--slate); font-size: 15px; line-height: 1.55; margin: 0; }
.card .card-arrow {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink);
  font-weight: 500;
}
.card .card-arrow span { transition: transform 0.2s; }
a.card:hover .card-arrow span { transform: translateX(4px); color: var(--signal); }

/* ---------- Stats / strip ---------- */
.strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 64px;
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.strip-item .v {
  font-size: 28px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.strip-item .l {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--slate);
  margin-top: 6px;
}

/* ---------- Service detail (services page) ---------- */
.svc-block {
  padding: 56px 0;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  align-items: start;
}
.svc-block:first-of-type { border-top: none; padding-top: 0; }
.svc-side { position: sticky; top: 100px; }
.svc-side .svc-icon { width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 20px; }
.svc-side h3 { font-size: 28px; margin: 0; }
.svc-side .tagline { color: var(--slate); font-size: 15px; margin-top: 8px; }
.svc-content > p:first-of-type {
  font-size: 19px;
  color: var(--ink);
  font-weight: 400;
  margin: 0 0 32px;
  line-height: 1.5;
}
.svc-content .panel {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 28px;
  border-radius: var(--radius);
  margin-bottom: 20px;
}
.svc-content .panel h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin: 0 0 16px;
  font-weight: 500;
}
.svc-content .panel ul {
  display: grid;
  gap: 10px;
}
.svc-content .panel li {
  font-size: 15px;
  color: var(--ink);
  padding-left: 22px;
  position: relative;
  line-height: 1.5;
}
.svc-content .panel li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 10px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--signal);
}
.svc-content .panel.scope-out li::before { background: var(--slate-soft); }

/* ---------- Steps (how we work) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
}
.step {
  border-top: 2px solid var(--signal);
  padding-top: 24px;
}
.step .step-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--signal);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.step h3 { font-size: 22px; margin: 0 0 12px; }
.step p { color: var(--slate); font-size: 15px; line-height: 1.55; }

/* ---------- About / principles ---------- */
.principles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.principle {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 32px;
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  align-items: start;
}
.principle-num {
  width: 40px; height: 40px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.principle h3 { font-size: 18px; margin: 0 0 8px; }
.principle p { color: var(--slate); font-size: 15px; line-height: 1.55; margin: 0; }

/* ---------- Team ---------- */
.team {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.team-photo {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--border-soft) 0%, var(--paper) 100%);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.team-photo .initials {
  font-size: 48px;
  font-weight: 300;
  color: var(--slate);
  letter-spacing: -0.04em;
}
.team-photo.placeholder::after {
  content: "PHOTO TO COME";
  position: absolute;
  bottom: 12px; right: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--slate-soft);
  letter-spacing: 0.1em;
}
.team-info { padding: 24px; }
.team-info h3 { font-size: 18px; margin: 0 0 4px; }
.team-info .role { color: var(--slate); font-size: 14px; margin-bottom: 12px; }
.team-info .creds { font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.05em; }

/* ---------- Support: response table ---------- */
.response-table {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 56px;
}
.response-row {
  display: grid;
  grid-template-columns: 120px 1fr 1fr;
  padding: 24px 28px;
  border-top: 1px solid var(--border);
  align-items: center;
}
.response-row:first-child { border-top: none; }
.response-row.h {
  background: var(--paper);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  font-weight: 500;
}
.response-row .priority {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 15px;
  color: var(--signal);
}
.response-row.h .priority { color: var(--muted); font-weight: 500; font-family: var(--font-sans); font-size: 11px; }
.response-row .what { font-size: 15px; color: var(--ink); }
.response-row .when { font-size: 15px; color: var(--slate); font-family: var(--font-mono); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  margin-top: 56px;
  align-items: start;
}
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 40px;
  border-radius: var(--radius);
  display: grid;
  gap: 20px;
}
.field { display: grid; gap: 6px; }
.field label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--slate);
  font-weight: 500;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--ink);
  font-family: var(--font-sans);
  transition: border-color 0.2s, background 0.2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  background: var(--surface);
  border-color: var(--ink);
}
.field .help { font-size: 12px; color: var(--muted); margin-top: 4px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.contact-aside { display: grid; gap: 32px; }
.contact-item h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  font-weight: 500;
  margin: 0 0 10px;
}
.contact-item .v { font-size: 17px; color: var(--ink); }
.contact-item .v a { border-bottom: none; color: var(--ink); }
.contact-item .v a:hover { color: var(--signal); }
.contact-item .sub { font-size: 13px; color: var(--slate); margin-top: 6px; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--ink);
  color: var(--paper);
  padding: var(--space-9) 0;
  text-align: center;
}
.cta-banner h2 { color: var(--paper); margin-bottom: 16px; }
.cta-banner p { color: #C5CCD7; max-width: 560px; margin: 0 auto 32px; font-size: 18px; }
.cta-banner .btn.primary { background: var(--paper); color: var(--ink); }
.cta-banner .btn.primary:hover { background: white; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand img { height: 40px; margin-bottom: 22px; }
.footer-brand p { color: var(--slate); font-size: 14px; max-width: 320px; line-height: 1.55; }
.footer-col h5 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin: 0 0 18px;
  font-weight: 500;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a {
  color: var(--ink);
  font-size: 14px;
  text-decoration: none;
  border: none;
}
.footer-col ul a:hover { color: var(--signal); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}
.footer-bottom .legal { font-family: var(--font-mono); }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-0 { margin-top: 0; }
.mt-8 { margin-top: 64px; }
.divider { width: 32px; height: 2px; background: var(--signal); margin: 24px 0; }

/* ---------- Mobile ---------- */
@media (max-width: 880px) {
  :root { --wrap-pad: 24px; }
  section { padding: var(--space-9) 0; }
  .hero { padding: 64px 0 80px; }
  .logo-link img { height: 40px; }
  .site-header .wrap { padding-top: 16px; padding-bottom: 16px; }

  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--border); flex-direction: column; gap: 0; padding: 16px var(--wrap-pad) 24px; align-items: flex-start; }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; font-size: 16px; width: 100%; }
  .nav-cta { margin-top: 8px; }
  .nav-toggle { display: flex; }

  .cards.col-2, .cards.col-3, .cards.col-4 { grid-template-columns: 1fr; }
  .strip { grid-template-columns: 1fr 1fr; }
  .svc-block { grid-template-columns: 1fr; gap: 32px; }
  .svc-side { position: static; }
  .steps { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; }
  .team { grid-template-columns: 1fr; }
  .response-row { grid-template-columns: 80px 1fr; padding: 20px; }
  .response-row .when { grid-column: 2; font-size: 13px; margin-top: 6px; }
  .response-row.h .when { display: none; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-form { padding: 28px; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 14px; align-items: flex-start; }
}
