/* Konnected Interactive — Concrete Lemon brand system
   concrete #D9D6D0 · surface #F0EDE6 · ink #1A1A1A · lemon #D4E157
   Rules: square edges (2px), no gradients, no shadows, one lemon action per screen. */

:root {
  --paper: #d9d6d0;      /* concrete neutral, page foundation */
  --paper-deep: #cbc7c0; /* grid lines */
  --surface: #f0ede6;    /* cream card surface */
  --ink: #1a1a1a;        /* primary, headlines & borders */
  --ink-soft: #565656;   /* secondary, captions & body support */
  --line: #1a1a1a;       /* hard brutalist edge */
  --hairline: #b9b5ae;   /* internal dividers only */
  --lemon: #d4e157;      /* the sole interaction driver, reserve it */
  --lemon-deep: #b7b330;
  --display: "Archivo", sans-serif;
  --body: "Archivo Narrow", sans-serif;
  --mono: "IBM Plex Mono", monospace;
  --max: 1180px;
  --radius: 2px;
}

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

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

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 1.0925rem;
  background-image:
    linear-gradient(var(--paper-deep) 1px, transparent 1px),
    linear-gradient(90deg, var(--paper-deep) 1px, transparent 1px);
  background-size: 48px 48px;
}

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

/* ---------- type ---------- */
h1, h2, h3 {
  font-family: var(--display);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); font-weight: 800; font-stretch: 115%; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 750; font-stretch: 110%; }
h3 { font-size: 1.25rem; font-weight: 700; font-stretch: 105%; margin-bottom: 0.6rem; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}
.mono-note {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}
.u-cobalt { background: var(--lemon); color: var(--ink); padding: 0 0.15em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

a { color: var(--ink); }
.text-link { font-weight: 600; text-decoration-thickness: 2px; text-underline-offset: 3px; }

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

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  max-width: var(--max); margin: 0 auto;
  padding: 0.9rem 1.5rem;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.wordmark {
  display: flex; align-items: center; gap: 0.55rem;
  font-family: var(--display); font-weight: 800; font-stretch: 110%;
  font-size: 1.05rem; color: var(--ink); text-decoration: none; letter-spacing: -0.01em;
}
.wordmark em { font-style: normal; font-weight: 500; color: var(--ink-soft); }
.mark { width: 26px; height: 26px; color: var(--ink); }

.site-header nav { display: flex; align-items: center; gap: 1.4rem; }
.site-header nav a {
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.95rem;
}
.site-header nav a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.nav-cta {
  padding: 0.45rem 0.95rem;
  background: var(--ink); color: var(--surface) !important;
  border-radius: var(--radius); font-weight: 600;
}
.nav-cta:hover { background: var(--lemon); color: var(--ink) !important; text-decoration: none !important; }

/* ---------- buttons ---------- */
.cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }
.cta-row.center { justify-content: center; }
.btn {
  display: inline-block;
  font-family: var(--display); font-weight: 700; font-stretch: 105%;
  font-size: 1rem; text-decoration: none;
  padding: 0.85rem 1.5rem; border-radius: var(--radius);
  border: 1.5px solid var(--ink);
  transition: background 120ms ease, color 120ms ease;
}
.btn-signal { background: var(--lemon); color: var(--ink); }
.btn-signal:hover { background: var(--ink); color: var(--surface); }
.btn-ghost { color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--surface); }

/* ---------- hero ---------- */
.hero {
  max-width: var(--max); margin: 0 auto;
  padding: 5rem 1.5rem 3.5rem;
  display: grid; gap: 3rem;
}
.hero-copy { max-width: 46rem; }
.lede { font-size: 1.2rem; color: var(--ink-soft); margin-top: 1.2rem; max-width: 40rem; }

/* schematic */
.schematic { width: 100%; }
.schematic svg { width: 100%; height: auto; }
.schematic figcaption { margin-top: 0.6rem; }

.wire {
  fill: none; stroke: var(--ink); stroke-width: 1.6;
  stroke-dasharray: 5 6; marker-end: url(#dot);
  animation: flow 1.6s linear infinite;
  opacity: 0.75;
}
.wire.out { stroke: var(--ink-soft); opacity: 0.8; }
@keyframes flow { to { stroke-dashoffset: -22; } }

.nodes rect {
  fill: var(--surface); stroke: var(--ink); stroke-width: 1.5;
}
.nodes text {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.06em;
  fill: var(--ink);
}
.nodes.out rect { stroke-width: 2; }
.nodes.out text { font-weight: 500; }

.hub rect { fill: var(--ink); stroke: none; }
.hub circle { fill: var(--lemon); }
.hub path { stroke: var(--surface); fill: none; }
.hub text {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; fill: var(--surface);
}

/* ---------- proof strip ---------- */
.proof-strip {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--ink);
}
.proof-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  max-width: none; margin: 0 auto;
}
.proof {
  padding: 1.6rem 1.5rem;
  border-left: 1px solid #3a3a3a;
  display: flex; flex-direction: column; gap: 0.2rem;
}
.proof:first-child { border-left: none; }
.proof strong {
  font-family: var(--display); font-weight: 800; font-stretch: 115%;
  font-size: 2rem; color: var(--lemon); line-height: 1;
}
.proof span { font-size: 0.88rem; color: #b8b8b4; line-height: 1.4; }

/* ---------- sections ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: 5rem 1.5rem; }
.section.alt {
  max-width: none;
  background: var(--surface);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.section.alt > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.section-head { max-width: 46rem; margin-bottom: 3rem; }
.section-lede { color: var(--ink-soft); margin-top: 1rem; font-size: 1.1rem; }

/* build log */
.build-log { counter-reset: bld; list-style: none; border-top: 1px solid var(--line); }
.build-log li {
  counter-increment: bld;
  display: grid; grid-template-columns: 3.2rem 1fr auto; gap: 1.5rem;
  align-items: baseline;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--hairline);
}
.build-log li:last-child { border-bottom: 1px solid var(--line); }
.build-log li::before {
  content: counter(bld, decimal-leading-zero);
  font-family: var(--mono); font-size: 0.8rem; color: var(--ink);
}
.build-name h3 { font-size: 1.1rem; margin-bottom: 0.35rem; }
.build-name p { color: var(--ink-soft); font-size: 0.96rem; max-width: 44rem; }
.build-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: flex-end; }
.build-tags span {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.05em;
  color: var(--ink); background: var(--surface);
  border: 1px solid var(--ink); border-radius: var(--radius);
  padding: 0.22rem 0.5rem; white-space: nowrap;
}

/* audiences */
.audience-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.audience {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem;
  background: var(--paper);
}
.audience .mono-note { color: var(--ink); margin-bottom: 0.9rem; }
.audience h3 { margin-bottom: 0.7rem; }
.audience p:last-child { color: var(--ink-soft); font-size: 0.98rem; }

/* guardrails */
.guard-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.guard {
  border: 1px solid var(--line); border-top-width: 3px;
  background: var(--paper); border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
}
.guard h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.guard p { color: var(--ink-soft); font-size: 0.95rem; }
.candor {
  margin-top: 2.5rem; max-width: 46rem;
  padding: 1.3rem 1.5rem;
  border: 1px solid var(--line); border-left: 4px solid var(--lemon);
  background: var(--paper); border-radius: var(--radius);
  color: var(--ink-soft);
}
.candor strong { color: var(--ink); }

/* engagements table */
.engagements { margin-top: 4rem; }
.engagements .eyebrow { margin-bottom: 1.2rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.engagements table { width: 100%; border-collapse: collapse; font-size: 0.97rem; min-width: 640px; }
.engagements th {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.07em;
  text-transform: uppercase; text-align: left; color: var(--ink-soft);
  padding: 0.9rem 1.2rem; border-bottom: 1px solid var(--line);
}
.engagements td {
  padding: 0.95rem 1.2rem; border-bottom: 1px solid var(--hairline);
  color: var(--ink-soft); vertical-align: top;
}
.engagements td strong { color: var(--ink); }
.engagements tr:last-child td { border-bottom: none; }
.table-note { margin-top: 0.8rem; }

/* comparison strip */
.compare { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 3rem; }
.compare-cell { border-radius: var(--radius); padding: 1.4rem 1.5rem; border: 1px solid var(--line); background: var(--surface); }
.compare-cell .mono-note { margin-bottom: 0.6rem; }
.compare-cell p:last-child { color: var(--ink-soft); font-size: 0.95rem; }
.compare-cell.no .mono-note { color: var(--ink-soft); text-decoration: line-through; text-decoration-color: var(--ink); text-decoration-thickness: 1.5px; }
.compare-cell.yes { border-width: 2px; background: var(--lemon); }
.compare-cell.yes .mono-note { color: var(--ink); }
.compare-cell.yes p:last-child { color: var(--ink); }

/* faq */
.faq-list { max-width: 50rem; display: grid; gap: 0.8rem; }
.faq-list details {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.05rem 1.3rem;
}
.faq-list summary {
  cursor: pointer; font-family: var(--display); font-weight: 700; font-stretch: 105%;
  font-size: 1.05rem; list-style: none; position: relative; padding-right: 2rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: 0.2rem; top: 50%; transform: translateY(-50%);
  font-family: var(--mono); color: var(--ink); font-size: 1.2rem; font-weight: 400;
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { margin-top: 0.8rem; color: var(--ink-soft); }

/* work */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.case {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem;
  background: var(--surface);
}
.case .mono-note { margin-bottom: 0.9rem; color: var(--ink); }
.case h3 { margin-bottom: 0.7rem; }
.case p:last-child { color: var(--ink-soft); font-size: 0.98rem; }

/* services */
.services-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.2rem;
}
.service {
  grid-column: span 3;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem;
}
.service p { color: var(--ink-soft); margin-bottom: 0.9rem; }
.service ul { padding-left: 1.1rem; color: var(--ink-soft); font-size: 0.95rem; }
.service li { margin-bottom: 0.3rem; }
.service li::marker { color: var(--ink); }
.service .tag-soft {
  display: inline-block;
  color: var(--ink);
  margin-bottom: 0.75rem;
}
.service.featured {
  grid-column: 1 / -1;
  border: 2px solid var(--ink);
  background: var(--surface);
}
.service.featured .tag {
  display: inline-block; color: var(--surface); background: var(--ink);
  padding: 0.25rem 0.6rem; border-radius: var(--radius); margin-bottom: 0.9rem;
}
.services-aside {
  margin-top: 1.4rem;
  text-align: center;
  color: var(--ink-soft);
}
.service.brain {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem;
  padding: 2.2rem;
}
.service.brain h3 { font-size: 1.6rem; }
.brain-asks {
  border-left: 1px solid var(--hairline);
  padding-left: 2rem;
  align-self: center;
}
.brain-asks .mono-note { color: var(--ink); margin-bottom: 1rem; }
.brain-asks ul { list-style: none; padding: 0; display: grid; gap: 0.7rem; }
.brain-asks li {
  background: var(--paper); border: 1px solid var(--ink);
  border-radius: var(--radius);
  padding: 0.65rem 0.9rem;
  font-size: 0.93rem; color: var(--ink);
}

/* steps */
.steps {
  counter-reset: step;
  list-style: none;
  max-width: 46rem;
  display: grid; gap: 0;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 1.1rem 0 1.1rem 4rem;
  border-top: 1px solid var(--hairline);
  color: var(--ink-soft);
}
.steps li:first-child { border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li strong { color: var(--ink); }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 1.15rem;
  font-family: var(--mono); font-size: 0.85rem; color: var(--ink);
}
.steps li::after {
  content: ""; position: absolute; left: 2.6rem; top: 1.45rem;
  width: 0.8rem; height: 1px; background: var(--hairline);
}

/* about */
.about {
  display: grid; grid-template-columns: 300px 1fr; gap: 3rem; align-items: start;
}
.about-photo img {
  border-radius: var(--radius); border: 1px solid var(--line);
  width: 100%; height: auto;
}
.about-copy p { margin-bottom: 1rem; color: var(--ink-soft); }
.about-copy h2 { margin-bottom: 1.2rem; }

/* contact */
.contact { text-align: center; padding-bottom: 6rem; }
.contact .section-head { margin: 0 auto; }

/* footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--ink); color: var(--surface);
  padding: 2rem 1.5rem;
  display: flex; flex-wrap: wrap; gap: 1rem;
  align-items: center; justify-content: space-between;
}
.site-footer .mono-note { color: #8f8f8a; }
.site-footer p:first-child { font-size: 0.95rem; }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 500ms ease, transform 500ms ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .services-grid, .work-grid, .audience-grid, .guard-grid, .compare { grid-template-columns: 1fr; }
  .service { grid-column: auto; }
  .service.brain { grid-template-columns: 1fr; gap: 1.5rem; padding: 1.8rem; }
  .brain-asks { border-left: none; padding-left: 0; border-top: 1px solid var(--hairline); padding-top: 1.5rem; }
  .proof-strip { grid-template-columns: repeat(2, 1fr); }
  .proof:nth-child(3) { border-left: none; }
  .proof { border-top: 1px solid #3a3a3a; }
  .proof:nth-child(-n+2) { border-top: none; }
  .about { grid-template-columns: 1fr; }
  .about-photo img { width: 220px; }
  .build-log li { grid-template-columns: 2.4rem 1fr; }
  .build-tags { grid-column: 2; justify-content: flex-start; }
}
@media (max-width: 680px) {
  .site-header { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
  .site-header nav { flex-wrap: wrap; gap: 0.9rem 1.1rem; }
  .hero { padding-top: 3rem; }
  .schematic svg { min-width: 560px; }
  .schematic { overflow-x: auto; }
  .proof-strip { grid-template-columns: 1fr 1fr; }
}
