/* ============================================================
   IHH Agency — ihhagency.com
   Monitoring-terminal aesthetic: dark ground, grotesque display
   type (Archivo), Inter body, IBM Plex Mono for data. One amber
   signal accent + green for approvals. Hairline grid everywhere.
   ============================================================ */

:root {
  --bg: #0a0b0d;
  --surface: #101215;
  --surface-2: #15181c;
  --line: #22262c;
  --line-strong: #3a4048;
  --text: #eef0f2;
  --soft: #c2c8cf;
  --muted: #848d97;
  --amber: #f0b429;
  --amber-deep: #d99a11;
  --ok: #43d17c;
  --light-bg: #eef0f2;
  --light-ink: #101215;
  --light-soft: #454c54;
  --max: 1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.mono {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  letter-spacing: 0.08em;
}

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

a { color: inherit; }

::selection { background: var(--amber); color: var(--bg); }

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

header {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max);
  margin: 0 auto;
}

.wordmark {
  font-family: "Archivo", "Inter", sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-decoration: none;
}
.wordmark span { color: var(--amber); font-weight: 600; }

nav { display: flex; gap: 26px; }

nav a {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color 120ms ease;
}
nav a:hover { color: var(--text); }

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

.hero {
  /* faint graph-paper grid — monitoring, not knitwear */
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px);
  background-size: 44px 44px;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding: 92px 0 100px;
}

.eyebrow {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--amber);
  margin-bottom: 24px;
}

h1 {
  font-family: "Archivo", "Inter", sans-serif;
  font-size: clamp(2.5rem, 5.4vw, 3.9rem);
  font-weight: 750;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

h1 em {
  font-style: normal;
  color: var(--amber);
}

.hero p.lede {
  font-size: 1.08rem;
  color: var(--soft);
  max-width: 46ch;
  margin-bottom: 36px;
}

.cta {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bg);
  background: var(--amber);
  padding: 14px 22px;
  display: inline-block;
  transition: background 140ms ease, transform 140ms ease;
}
.cta:hover { background: var(--text); transform: translateY(-1px); }

/* staged entrance */
.rise {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 640ms cubic-bezier(0.22, 0.9, 0.3, 1) forwards;
}
.rise.d1 { animation-delay: 80ms; }
.rise.d2 { animation-delay: 180ms; }
.rise.d3 { animation-delay: 280ms; }
.rise.d4 { animation-delay: 420ms; }

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .rise { animation: none; opacity: 1; transform: none; }
}

/* ---------- activity log (hero artifact) ---------- */

.report {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  padding: 0 0 16px;
}

.report-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line-strong);
  padding: 12px 20px;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}
.report-head .period { color: var(--muted); }

.feed-row {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 11px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 0.73rem;
  line-height: 1.55;
}
.feed-row .when {
  flex: 0 0 76px;
  font-size: 0.63rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.feed-row .event { flex: 1; color: var(--soft); }

.feed-row.flagged .event { color: var(--text); }
.feed-row.flagged .event strong { color: var(--amber); letter-spacing: 0.1em; }

.feed-row.ok .event::before { content: "\2713\00a0"; color: var(--ok); }

.report-note {
  padding: 14px 20px 0;
  font-size: 0.67rem;
  line-height: 1.6;
  color: var(--muted);
}

.report-caption {
  margin-top: 14px;
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
}

/* ---------- sections ---------- */

section.block { padding: 96px 0; }

.section-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--amber);
  margin-bottom: 18px;
}

h2 {
  font-family: "Archivo", "Inter", sans-serif;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 24ch;
  margin-bottom: 48px;
}

/* what we keep finding */

#findings { border-bottom: 1px solid var(--line); }

.findings {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line-strong);
}

.finding {
  padding: 28px 28px 32px 0;
  border-bottom: 1px solid var(--line);
}
.finding:nth-child(even) {
  border-left: 1px solid var(--line);
  padding-left: 28px;
}

.finding h3 {
  font-family: "Archivo", "Inter", sans-serif;
  font-size: 1.14rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.finding p { font-size: 0.93rem; color: var(--muted); }

.findings-close {
  margin-top: 40px;
  font-size: 1.14rem;
  line-height: 1.55;
  max-width: 54ch;
  color: var(--soft);
}
.findings-close em { color: var(--amber); font-style: normal; font-weight: 600; }

/* what we do */

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-strong);
}

.service {
  border-bottom: 1px solid var(--line);
  padding: 30px 28px 34px 0;
}
.service + .service { border-left: 1px solid var(--line); padding-left: 28px; }

.service .kicker {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 14px;
}

.service h3 {
  font-family: "Archivo", "Inter", sans-serif;
  font-size: 1.18rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.service p { font-size: 0.93rem; color: var(--muted); }

/* how we work — light band (inverts the dark site) */

.light {
  background: var(--light-bg);
  color: var(--light-ink);
}
.light .section-label { color: var(--amber-deep); }
.light h2 { color: var(--light-ink); }

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px;
}

.principle h3 {
  font-family: "Archivo", "Inter", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.principle h3 .tick { color: var(--amber-deep); }

.principle p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--light-soft);
}

/* contact */

.contact-line {
  font-family: "Archivo", "Inter", sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  max-width: 26ch;
  margin-bottom: 36px;
}

.email-link {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: clamp(1rem, 2.4vw, 1.3rem);
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--amber);
  border-bottom: 2px solid var(--amber);
  padding-bottom: 4px;
  transition: color 120ms ease, border-color 120ms ease;
}
.email-link:hover { color: var(--text); border-color: var(--text); }

.contact-note {
  margin-top: 26px;
  font-size: 0.76rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}

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

footer {
  border-top: 1px solid var(--line);
  padding: 34px 0 44px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.footer-inner a { text-decoration: none; }
.footer-inner a:hover { color: var(--text); }
.footer-links { display: flex; gap: 22px; }

/* ---------- document pages (privacy / terms) ---------- */

.doc {
  max-width: 720px;
  margin: 0 auto;
  padding: 72px 24px 96px;
}

.doc h1 {
  font-family: "Archivo", "Inter", sans-serif;
  font-size: 2.1rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.doc .effective {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 40px;
}

.doc h2 {
  font-family: "Archivo", "Inter", sans-serif;
  font-size: 1.2rem;
  font-weight: 650;
  margin: 40px 0 12px;
  max-width: none;
}

.doc p, .doc li {
  font-size: 0.95rem;
  color: var(--soft);
  margin-bottom: 12px;
}

.doc a { color: var(--amber); }

.doc ul { padding-left: 22px; margin-bottom: 14px; }

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; padding: 56px 0 64px; }
  .services { grid-template-columns: 1fr; }
  .findings { grid-template-columns: 1fr; }
  .finding, .finding:nth-child(even) { border-left: none; padding-left: 0; padding-right: 0; }
  .service, .service + .service { border-left: none; padding-left: 0; padding-right: 0; }
  .principles { grid-template-columns: 1fr; gap: 34px; }
  nav { gap: 16px; }
}
