/* ==========================================================================
   WATCHPOINT0 — Stylesheet (graphic system v1: light contact)
   --------------------------------------------------------------------------
   1. Tokens
   2. Reset & base
   3. Layout
   4. Components (buttons, eyebrow, callout, dividers, reticle, pulse)
   5. Header & nav
   6. Hero (blueprint grid + corner rings)
   7. Capabilities (featured live scope)
   8. Contact
   9. Footer
   10. Animations
   11. Responsive
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Color */
  --color-bg:           #f4f5f5;
  --color-surface:      #ffffff;
  --color-surface-alt:  #eaebec;
  --color-surface-mid:  #edf0f2;

  --color-border:       #d8dadb;
  --color-border-strong:#b0b8bc;

  --color-ink:          #111314;
  --color-ink-soft:     #535a5e;
  --color-ink-muted:    #626a6e;
  --color-ink-faint:    #8a9499;

  --color-accent:       #3d4a52;
  --color-accent-light: #e8eaeb;
  --color-accent-text:  #2a3035;

  /* Signal accent — used sparingly: dots, blips, sweeps, live states */
  --color-signal:       #2E7D5B;
  --color-signal-soft:  #6FA28B;
  --color-signal-tint:  #E4EEE8;

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Scale */
  --text-xs:   11px;
  --text-sm:   12px;
  --text-base: 14px;
  --text-md:   16px;
  --text-lg:   20px;
  --text-xl:   28px;
  --text-xxl:  38px;

  /* Spacing */
  --sp-1:  0.5rem;
  --sp-2:  1rem;
  --sp-3:  1.5rem;
  --sp-4:  2rem;
  --sp-5:  3rem;
  --sp-6:  4.5rem;

  /* Layout */
  --container:     1120px;
  --header-height: 60px;
  --radius-sm:     6px;
  --radius-md:     8px;
  --radius-lg:     10px;
}


/* --------------------------------------------------------------------------
   2. RESET & BASE
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-ink);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-ink);
}

p { color: var(--color-ink-soft); }

a {
  color: inherit;
  text-decoration: none;
}

img, svg { display: block; }

ul { list-style: none; }

#capabilities,
#contact { scroll-margin-top: calc(var(--header-height) + 12px); }

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


/* --------------------------------------------------------------------------
   3. LAYOUT
   -------------------------------------------------------------------------- */
.container {
  width: min(100% - var(--sp-4), var(--container));
  margin-inline: auto;
}


/* --------------------------------------------------------------------------
   4. COMPONENTS
   -------------------------------------------------------------------------- */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--font);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}
.btn-primary:hover {
  background: #2e3940;
  border-color: #2e3940;
}

.btn-outline {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
  padding: 9px 18px;
}
.btn-outline:hover {
  background: var(--color-accent-light);
}

.btn-ghost {
  background: transparent;
  color: var(--color-ink-soft);
  border-color: var(--color-border-strong);
}
.btn-ghost:hover {
  background: var(--color-surface-alt);
}

/* Pulse dot — the signal accent's heartbeat */
.pulse-dot,
.eyebrow-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-signal);
  box-shadow: 0 0 0 3px rgba(46, 125, 91, 0.13);
  animation: wp-pulse 2.2s ease-in-out infinite;
  flex-shrink: 0;
}

/* Eyebrow label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: var(--color-accent-light);
  border: 1px solid var(--color-border-strong);
  padding: 5px 13px;
  border-radius: 9999px;
  margin-bottom: var(--sp-3);
}

.eyebrow-dot { width: 6px; height: 6px; }

/* Section divider — "+ ——— SEC / NN — LABEL ——— +" */
.sec-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: var(--sp-4);
}

.sec-divider-line {
  flex: 1;
  height: 1px;
  background: #cfd3d5;
}

.sec-divider-plus {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-ink-faint);
  line-height: 1;
}

.sec-divider-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--color-ink-soft);
  white-space: nowrap;
}

/* Reticle-framed icon */
.reticle-icon {
  position: relative;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--color-accent);
  flex-shrink: 0;
}

.reticle-icon .rt {
  position: absolute;
  width: 9px;
  height: 9px;
}

.rt-tl { left: 0;  top: 0;    border-left: 1.5px solid var(--color-accent);  border-top: 1.5px solid var(--color-accent); }
.rt-tr { right: 0; top: 0;    border-right: 1.5px solid var(--color-accent); border-top: 1.5px solid var(--color-accent); }
.rt-bl { left: 0;  bottom: 0; border-left: 1.5px solid var(--color-accent);  border-bottom: 1.5px solid var(--color-accent); }
.rt-br { right: 0; bottom: 0; border-right: 1.5px solid var(--color-accent); border-bottom: 1.5px solid var(--color-accent); }

/* Corner radar rings */
.corner-rings { position: absolute; pointer-events: none; }
.corner-rings--tr { right: 0; top: 0; }
.corner-rings--br { right: 0; bottom: 0; }

.corner-rings .ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
}

.corner-rings--tr .ring-1 { width: 300px; height: 300px; right: -110px; top: -110px; border-color: rgba(61,74,82,0.22); }
.corner-rings--tr .ring-2 { width: 460px; height: 460px; right: -190px; top: -190px; border-color: rgba(61,74,82,0.14); }
.corner-rings--tr .ring-3 { width: 620px; height: 620px; right: -270px; top: -270px; border-color: rgba(61,74,82,0.08); }
.corner-rings--tr .ring-blip { position: absolute; right: 96px; top: 88px; width: 6px; height: 6px; border-radius: 50%; background: var(--color-signal); }

.corner-rings--br .ring-1 { width: 260px; height: 260px; right: -90px;  bottom: -90px;  border-color: rgba(61,74,82,0.2); }
.corner-rings--br .ring-2 { width: 400px; height: 400px; right: -160px; bottom: -160px; border-color: rgba(61,74,82,0.13); }
.corner-rings--br .ring-3 { width: 540px; height: 540px; right: -230px; bottom: -230px; border-color: rgba(61,74,82,0.07); }
.corner-rings--br .ring-blip { position: absolute; right: 84px; bottom: 76px; width: 6px; height: 6px; border-radius: 50%; background: var(--color-signal); }

/* Blueprint grid register marks */
.grid-plus {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1;
  color: rgba(61,74,82,0.35);
  pointer-events: none;
}

.grid-plus--1 { left: 233px; top: 113px; }
.grid-plus--2 { left: 833px; bottom: 89px; }

/* LE callout */
.le-callout {
  margin: var(--sp-3) 0;
  max-width: 580px;
  background: rgba(237, 240, 242, 0.85);
  border-left: 3px solid var(--color-accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: var(--sp-2) var(--sp-3);
}

.le-callout-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--sp-1);
}

.le-callout-label::before {
  content: '';
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-signal);
  flex-shrink: 0;
}

.le-callout p {
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--color-accent-text);
}

.le-callout p strong {
  font-weight: 600;
  color: var(--color-ink);
}


/* --------------------------------------------------------------------------
   5. HEADER & NAV
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(234, 235, 236, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-text {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-ink);
}

.logo-accent { color: var(--color-accent); }

.logo-rule {
  display: block;
  width: 1px;
  height: 14px;
  background: var(--color-border-strong);
}

.logo-sub {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ink-faint);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.site-nav a:not(.btn) {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-ink-muted);
  transition: color 0.15s ease;
}

.site-nav a:not(.btn):hover { color: var(--color-ink); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--color-ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav panel */
.mobile-nav {
  background: var(--color-surface-alt);
  border-bottom: 1px solid var(--color-border);
  padding: var(--sp-2) var(--sp-3);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.mobile-nav[hidden] { display: none; }

.mobile-nav a {
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--color-ink-soft);
  padding: var(--sp-1) 0;
  border-bottom: 1px solid var(--color-border);
}

.mobile-nav a:last-child { border-bottom: none; }


/* --------------------------------------------------------------------------
   6. HERO — blueprint grid + corner rings
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: var(--sp-6) var(--sp-5);
  border-bottom: 1px solid var(--color-border);
  background-color: #f6f7f7;
  background-image:
    repeating-linear-gradient(0deg,  rgba(61,74,82,0.055) 0px, rgba(61,74,82,0.055) 1px, transparent 1px, transparent 24px),
    repeating-linear-gradient(90deg, rgba(61,74,82,0.055) 0px, rgba(61,74,82,0.055) 1px, transparent 1px, transparent 24px),
    repeating-linear-gradient(0deg,  rgba(61,74,82,0.09)  0px, rgba(61,74,82,0.09)  1px, transparent 1px, transparent 120px),
    repeating-linear-gradient(90deg, rgba(61,74,82,0.09)  0px, rgba(61,74,82,0.09)  1px, transparent 1px, transparent 120px);
}

.hero-inner {
  position: relative;
  max-width: var(--container);
}

.hero-content {
  max-width: 660px;
}

.hero h1 {
  font-size: clamp(30px, 4.5vw, 42px);
  font-weight: 700;
  line-height: 1.12;
  color: var(--color-ink);
  margin-bottom: var(--sp-3);
}

.hero h1 em {
  font-style: normal;
  color: var(--color-accent);
}

.hero-lead {
  font-size: 15px;
  line-height: 1.75;
  color: var(--color-ink-soft);
  max-width: 560px;
}

.hero-lead + .hero-lead {
  margin-top: var(--sp-2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: var(--sp-4);
}


/* --------------------------------------------------------------------------
   7. CAPABILITIES — featured live scope + indexed schematic cards
   -------------------------------------------------------------------------- */
.capabilities {
  padding-block: var(--sp-5) var(--sp-6);
}

.cap-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.cap-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.15s ease;
}

.cap-card:hover { border-color: #9aa3a8; }

.cap-card--featured {
  grid-column: 1 / -1;
  border-color: var(--color-border-strong);
  padding: 34px 36px;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.cap-card--full {
  grid-column: 1 / -1;
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
  align-items: flex-start;
}

.cap-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: var(--sp-2);
}

.cap-index {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  color: var(--color-ink-faint);
  white-space: nowrap;
}

.cap-live {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--color-signal);
}

.cap-title {
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-ink);
  margin-bottom: var(--sp-1);
  letter-spacing: -0.01em;
}

.cap-title--featured {
  font-size: var(--text-lg);
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin-bottom: 0;
}

.cap-desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--color-ink-muted);
}

.cap-desc + .cap-desc {
  margin-top: var(--sp-2);
}

.cap-featured-body {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cap-featured-body .cap-desc {
  font-size: 13.5px;
  max-width: 640px;
  margin-top: 0;
}

.cap-full-body {
  flex: 1;
  min-width: 300px;
}

.cap-full-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: var(--sp-1);
}

.cap-full-head .cap-title { margin-bottom: 0; }

.cap-full-body .cap-desc { max-width: 760px; }

/* Live radar scope (featured card only — one ambient motion element per page) */
.scope-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  padding-top: 4px;
}

.scope {
  position: relative;
  width: 148px;
  height: 148px;
  flex-shrink: 0;
}

.scope-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
}

.scope-ring--1 { inset: 0;    border-color: rgba(17,19,20,0.28); }
.scope-ring--2 { inset: 26px; border-color: rgba(17,19,20,0.2); }
.scope-ring--3 { inset: 51px; border-color: rgba(17,19,20,0.16); }

.scope-axis { position: absolute; background: rgba(17,19,20,0.12); }
.scope-axis--h { left: 0; right: 0; top: 50%; height: 1px; }
.scope-axis--v { top: 0; bottom: 0; left: 50%; width: 1px; }

.scope-sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(46,125,91,0.4), rgba(46,125,91,0) 80deg);
  animation: wp-rotate 5s linear infinite;
}

.scope-blip {
  position: absolute;
  left: 64%;
  top: 24%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-signal);
  animation: wp-pulse 2.5s ease-in-out infinite;
}

.scope-center {
  position: absolute;
  left: calc(50% - 2.5px);
  top: calc(50% - 2.5px);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-ink);
}

.scope-caption {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  color: var(--color-ink-faint);
  white-space: nowrap;
}


/* --------------------------------------------------------------------------
   8. CONTACT
   -------------------------------------------------------------------------- */
.contact-section {
  position: relative;
  overflow: hidden;
  padding-block: var(--sp-5) var(--sp-6);
  border-top: 1px solid var(--color-border);
  background: var(--color-surface-alt);
}

.contact-inner {
  position: relative;
}

.contact-section .sec-divider-line { background: #c4c9cb; }

.contact-body { max-width: 540px; }

.contact-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--color-ink);
  margin-bottom: var(--sp-2);
}

.contact-desc {
  font-size: var(--text-base);
  line-height: 1.75;
  color: var(--color-ink-soft);
  margin-bottom: var(--sp-3);
}


/* --------------------------------------------------------------------------
   9. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--color-surface-alt);
  border-top: 1px solid var(--color-border);
  padding-block: var(--sp-3);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 9px;
}

.footer-logo {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-accent);
}

.footer-logo span { color: var(--color-ink-faint); }

.footer-right {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}

.footer-text {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-ink-faint);
}

.footer-divider {
  font-size: var(--text-xs);
  color: var(--color-border-strong);
}


/* --------------------------------------------------------------------------
   10. ANIMATIONS
   -------------------------------------------------------------------------- */
@keyframes wp-rotate {
  to { transform: rotate(360deg); }
}

@keyframes wp-pulse {
  0%, 100% { opacity: 0.25; }
  50%      { opacity: 1; }
}


/* --------------------------------------------------------------------------
   11. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  :root {
    --sp-5: 2.5rem;
    --sp-6: 3rem;
  }

  .site-nav a:not(.btn) { display: none; }
  .site-nav .btn { display: none; }
  .nav-toggle { display: flex; }

  .hero h1 { font-size: clamp(1.8rem, 6vw, 2.4rem); }

  .grid-plus { display: none; }

  .cap-grid {
    grid-template-columns: 1fr;
  }

  .cap-card--featured,
  .cap-card--full {
    grid-column: 1;
  }

  .cap-card--featured { padding: 28px; gap: var(--sp-3); }

  .scope-col { margin-inline: auto; }

  .logo-rule,
  .logo-sub { display: none; }

  .sec-divider-label { letter-spacing: 0.16em; }

  .contact-body { max-width: 100%; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: var(--sp-1); }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}


/* --------------------------------------------------------------------------
   12. BLOG FEED — Substack RSS embed
   -------------------------------------------------------------------------- */
.blog-feed-wrap {
  margin-top: var(--sp-5);
}

.substack-feed-embed {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.substack-card {
  display: block;
}

.substack-post {
  display: flex;
  gap: var(--sp-2);
  align-items: flex-start;
  height: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: border-color 0.15s ease;
}

.substack-post:hover { border-color: var(--color-border-strong); }

.substack-thumbnail {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.substack-post > div { flex: 1; min-width: 0; }

.substack-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-ink);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.substack-card:hover .substack-title { color: var(--color-accent); }

.substack-date {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ink-faint);
  margin-bottom: 6px;
}

.substack-desc {
  font-size: 13px;
  line-height: 1.65;
  color: var(--color-ink-muted);
}

.substack-skeleton,
.substack-empty,
.substack-error {
  grid-column: 1 / -1;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-ink-faint);
  padding: var(--sp-3) 0;
}

@media (max-width: 768px) {
  .substack-feed-embed { grid-template-columns: 1fr; }
}

