/* SysClew LLC — single-page site
   Aesthetic: calm, document-like, editorial. All-light. Navy + teal on cool off-white.
   Pure static CSS, no framework. Brand palette from templates/source/brand.yaml. */

:root {
  /* Brand */
  --navy: #142850;
  --navy-light: #3a5a8c;
  --teal: #3c7878;
  --teal-bright: #289696;
  --teal-deep: #1f5959;
  --teal-pale: #9bc5c5;

  /* Text */
  --ink: #22303f;
  --ink-soft: #5a6a7c;

  /* Surfaces — cool off-white, shifted toward the logo's backdrop */
  --paper: #f4f6f7;
  --surface: #ffffff;
  --band: #e6eeee;      /* alternating section tint — pale teal */
  --teal-wash: #e6eeee;

  /* Lines */
  --line: #dce2e6;
  --line-strong: #c3ccd2;

  /* Status accents (When-to-call markers) */
  --amber: #c2901f;
  --red: #9c3344;

  --measure: min(720px, 100%);
  --measure-wide: min(880px, 100%);
  --gutter: clamp(20px, 5vw, 56px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.62;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--teal-bright);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.18s ease;
}

.skip-link:focus {
  top: 16px;
}

/* ---------- Layout primitives ---------- */

.content {
  width: min(1140px, 100%);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.measure {
  width: var(--measure);
}

.measure-wide {
  width: var(--measure-wide);
}

.section,
.intro,
.closing {
  padding-block: clamp(68px, 9vw, 124px);
}

.band {
  background: var(--band);
  border-block: 1px solid var(--line);
}

/* ---------- Shared type ---------- */

h1 {
  font-size: clamp(2.4rem, 1.4rem + 3.6vw, 3.85rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.022em;
  color: var(--navy);
}

h2 {
  font-size: clamp(1.6rem, 1.05rem + 2vw, 2.5rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.018em;
  color: var(--navy);
}

h3 {
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--navy);
}

.eyebrow {
  display: flex;
  align-items: baseline;
  gap: 0.6em;
  margin-bottom: 18px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
}

.eyebrow .num {
  font-variant-numeric: tabular-nums;
  color: var(--teal-bright);
  padding-right: 0.6em;
  border-right: 1px solid var(--line-strong);
}

.lede {
  max-width: 36em;
  margin-top: 22px;
  font-size: clamp(1.12rem, 1rem + 0.6vw, 1.32rem);
  color: var(--ink-soft);
}

.section-copy {
  margin-top: 16px;
  color: var(--ink-soft);
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 9px;
  font: inherit;
  font-weight: 650;
  font-size: 0.98rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.button.primary {
  background: var(--navy);
  color: #fff;
}

.button.primary:hover {
  background: var(--teal-deep);
  transform: translateY(-1px);
}

.button.ghost {
  color: var(--navy);
  border-color: var(--line-strong);
  background: transparent;
}

.button.ghost:hover {
  border-color: var(--navy);
  background: rgba(20, 40, 80, 0.045);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 14px var(--gutter);
  background: rgba(244, 246, 247, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  line-height: 0;
}

.brand img {
  height: 46px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 34px);
}

.nav-links a {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 550;
  text-decoration: none;
  transition: color 0.16s ease;
}

.nav-links a:hover {
  color: var(--teal-bright);
}

/* ---------- Decorative knot watermark ---------- */

.knot-mark {
  position: absolute;
  z-index: 0;
  background: url("assets/SysClewKnot.png") center / contain no-repeat;
  pointer-events: none;
}

.hero-knot {
  width: clamp(240px, 34vw, 440px);
  aspect-ratio: 1;
  top: 50%;
  right: calc(var(--gutter) * -0.4);
  transform: translateY(-50%);
  opacity: 0.07;
}

.closing-knot {
  width: clamp(180px, 22vw, 280px);
  aspect-ratio: 1;
  bottom: -36px;
  right: 4%;
  opacity: 0.12;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(72px, 10vw, 138px);
  background: linear-gradient(168deg, #f8f9fa 0%, #e9f0f0 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero h1 {
  max-width: 17ch;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 34px;
}

.proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 56px 0 0;
  border-top: 1px solid var(--line-strong);
}

.proof-item {
  padding: 20px 26px 0 0;
  border-right: 1px solid var(--line);
}

.proof-item:last-child {
  border-right: 0;
}

.proof dt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}

.proof dd {
  margin: 7px 0 0;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--navy);
}

/* ---------- Intro band ---------- */

.intro h2 {
  font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.1rem);
  letter-spacing: -0.014em;
}

.intro p {
  margin-top: 22px;
  font-size: 1.1rem;
  color: var(--ink-soft);
}

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

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(36px, 6vw, 84px);
  align-items: start;
}

.split-head {
  position: sticky;
  top: 6.5rem;
}

/* ---------- Trigger cards ---------- */

.trigger-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.card {
  padding: 26px 24px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.card:hover {
  border-color: var(--teal-pale);
  box-shadow: 0 14px 34px -20px rgba(20, 40, 80, 0.4);
  transform: translateY(-3px);
}

.dot {
  display: block;
  width: 11px;
  height: 11px;
  margin-bottom: 22px;
  border-radius: 50%;
}

.dot-amber { background: var(--amber); }
.dot-red { background: var(--red); }
.dot-teal { background: var(--teal-bright); }
.dot-navy { background: var(--navy); }

.card p {
  margin-top: 9px;
  font-size: 0.97rem;
  color: var(--ink-soft);
}

/* ---------- Rows (Why / Boundary) ---------- */

.rows {
  display: grid;
  border-top: 1px solid var(--line-strong);
}

.row {
  display: grid;
  grid-template-columns: minmax(0, 0.4fr) minmax(0, 0.6fr);
  gap: 28px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.row strong {
  font-size: 1.04rem;
  font-weight: 700;
  color: var(--navy);
}

.row span {
  color: var(--ink-soft);
}

/* ---------- Output: document panel ---------- */

.output-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}

.doc-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 30px 60px -38px rgba(20, 40, 80, 0.5);
  overflow: hidden;
}

.doc-label {
  padding: 15px 26px;
  background: var(--teal-wash);
  border-bottom: 1px solid var(--line);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-deep);
}

.findings {
  margin: 0;
  padding: 8px 26px;
  list-style: none;
  counter-reset: none;
}

.findings li {
  display: flex;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.findings li:last-child {
  border-bottom: 0;
}

.f-num {
  flex: none;
  font-variant-numeric: tabular-nums;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--teal-bright);
  padding-top: 0.18em;
}

/* ---------- Engagements facts ---------- */

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 36px 0 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
}

.fact {
  padding: 24px 26px;
  border-right: 1px solid var(--line);
}

.fact:last-child {
  border-right: 0;
}

.fact dt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}

.fact dd {
  margin: 8px 0 0;
  font-size: 1.16rem;
  font-weight: 700;
  color: var(--navy);
}

/* ---------- Closing ---------- */

.closing {
  position: relative;
  overflow: hidden;
  background: var(--teal-wash);
  border-top: 1px solid var(--line);
}

.closing .content {
  position: relative;
  z-index: 1;
}

.closing p {
  margin-top: 20px;
  font-size: 1.1rem;
  color: var(--ink-soft);
}

.closing .button {
  margin-top: 32px;
}

.contact-line {
  margin-top: 26px;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--navy);
}

.contact-line a {
  color: var(--teal-deep);
  text-decoration: none;
}

.contact-line a:hover {
  text-decoration: underline;
}

.contact-line .sep {
  margin: 0 12px;
  color: var(--line-strong);
}

/* ---------- Footer ---------- */

.site-footer {
  padding-block: 32px;
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-mark {
  width: 34px;
  height: 34px;
  flex: none;
}

.footer-text p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--ink-soft);
}

.footer-text p:first-child {
  color: var(--ink);
  margin-bottom: 4px;
}

/* ---------- Load reveal ---------- */

.reveal {
  opacity: 0;
  animation: rise 0.66s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.reveal-1 { animation-delay: 0.08s; }
.reveal-2 { animation-delay: 0.16s; }
.reveal-3 { animation-delay: 0.24s; }
.reveal-4 { animation-delay: 0.32s; }

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

/* ---------- Responsive ---------- */

@media (max-width: 880px) {
  .split,
  .output-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .split-head {
    position: static;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .nav-links {
    display: none;
  }

  .brand img {
    height: 38px;
  }

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

  .row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .proof,
  .facts {
    grid-template-columns: 1fr;
  }

  .proof-item {
    padding: 18px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .proof-item:last-child {
    border-bottom: 0;
  }

  .fact {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .fact:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 480px) {
  .actions {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    animation: none;
  }

  .button:hover,
  .card:hover {
    transform: none;
  }
}
