/* Klytech Dynamics - klytech365.com - single dark theme, one accent */
:root {
  --ground: #0e1217;
  --panel: #131922;
  --panel-2: #171e29;
  --ink: #e9edf2;
  --muted: #96a0ad;
  --faint: #6b7684;
  --line: #232b36;
  --accent: #4e9bea;
  --accent-ink: #0b0f14;
  --accent-tint: rgba(78, 155, 234, 0.09);
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--ground);
  color: var(--ink);
  font-family: "Schibsted Grotesk", "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 22px; }
a { color: var(--ink); text-decoration: none; }
::selection { background: var(--accent); color: var(--accent-ink); }

.mono {
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ---------- nav ---------- */
nav.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(14, 18, 23, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
/* Mobile-first: links always visible as a compact second row - no hamburger to hunt for */
.nav-inner { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 26px; padding-top: 12px; padding-bottom: 12px; }
.wordmark { font-weight: 800; font-size: 16px; letter-spacing: 0.02em; }
.wordmark span { color: var(--accent); }
.nav-links { display: flex; gap: 20px; width: 100%; order: 3; }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 500; padding: 2px 0; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-cta {
  margin-left: auto;
  font-size: 13.5px; font-weight: 700;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 14px;
  white-space: nowrap;
}
.nav-cta:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- hero ---------- */
header.hero { padding: 84px 0 0; }
header.hero.page { padding: 72px 0 0; }
.hero-eyebrow { color: var(--accent); margin-bottom: 22px; }
h1 {
  font-size: clamp(34px, 6.4vw, 66px);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -0.022em;
  text-wrap: balance;
  max-width: 17ch;
}
header.hero.page h1 { font-size: clamp(30px, 5vw, 52px); max-width: 22ch; }
h1 em { font-style: normal; color: var(--accent); }
.hero-sub {
  margin-top: 26px;
  font-size: clamp(16px, 2.2vw, 19px);
  color: var(--muted);
  max-width: 58ch;
}
.hero-actions { margin-top: 38px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700; font-size: 15.5px;
  padding: 13px 26px;
  border-radius: 9px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 28px rgba(78,155,234,0.28); }
.quiet { color: var(--muted); font-size: 14.5px; }
.quiet:hover { color: var(--accent); }

/* runway centerline - the one decorative motif */
.runway { margin-top: 78px; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.runway::after {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, var(--accent) 0 34px, transparent 34px 68px);
  opacity: 0.55;
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}

/* ---------- facts strip (centered block, holds on every width) ---------- */
.facts {
  display: grid; gap: 26px;
  padding: 44px 0 0;
  max-width: 980px;
  margin: 0 auto;
  justify-items: center;
  text-align: center;
}
.fact { min-width: 0; }
.fact .v { font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.fact .k { color: var(--faint); font-size: 13.5px; margin-top: 2px; }

/* ---------- sections ---------- */
section { padding: 104px 0 0; }
.section-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 34px; flex-wrap: wrap; }
h2 { font-size: clamp(26px, 3.6vw, 36px); font-weight: 800; letter-spacing: -0.018em; text-wrap: balance; }
h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.lead { color: var(--muted); font-size: 17px; max-width: 66ch; }

/* services rows */
.service { display: grid; gap: 8px; padding: 30px 0; border-top: 1px solid var(--line); }
.service:last-of-type { border-bottom: 1px solid var(--line); }
.service p { color: var(--muted); font-size: 15.5px; max-width: 62ch; }
.service ul { color: var(--muted); font-size: 15px; margin: 6px 0 0; padding-left: 20px; }
.service li { margin: 3px 0; }
.service.featured {
  border-left: 3px solid var(--accent);
  padding-left: 22px;
  margin-left: -25px;
  background: linear-gradient(90deg, var(--accent-tint), transparent 65%);
}
.tag {
  display: inline-block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(78, 155, 234, 0.45);
  border-radius: 999px;
  padding: 2px 10px;
  margin-left: 10px;
  vertical-align: 3px;
}

/* principles */
.principles { display: grid; gap: 16px; margin-top: 8px; }
.principle {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 24px;
}
.principle h3 { margin-bottom: 6px; }
.principle p { color: var(--muted); font-size: 15px; }

/* ---------- product panel ---------- */
.product-panel {
  margin-top: 34px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(30px, 5vw, 56px);
  position: relative;
  overflow: hidden;
}
.product-panel::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.product-name { font-size: clamp(30px, 4.6vw, 46px); font-weight: 800; letter-spacing: -0.02em; margin: 14px 0 10px; }
.status-pill {
  display: inline-block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-tint);
  border: 1px solid rgba(78, 155, 234, 0.4);
  border-radius: 999px;
  padding: 4px 13px;
}
.statement { font-size: clamp(17px, 2.4vw, 21px); max-width: 46ch; margin: 18px 0 8px; line-height: 1.5; }
.statement b { color: var(--accent); font-weight: 700; }
.product-panel .sub { color: var(--muted); font-size: 15px; max-width: 58ch; }
.product-panel .quiet { display: inline-block; margin-top: 24px; }

/* ---------- about / client wall ---------- */
.about-copy p { color: var(--muted); font-size: 16.5px; max-width: 70ch; }
.about-copy p b { color: var(--ink); font-weight: 700; }
.about-copy p + p { margin-top: 14px; }
.client-wall {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.client-wall .cell {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 30px 16px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; text-align: center;
  min-height: 108px;
  transition: background 0.2s ease;
}
.client-wall .cell:hover { background: var(--accent-tint); }
.client-wall .name {
  font-weight: 800; font-size: 17px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted);
}
.client-wall .cell:hover .name { color: var(--ink); }
.client-wall .via {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--faint);
}
.wall-note { color: var(--faint); font-size: 12.5px; margin-top: 12px; font-family: "IBM Plex Mono", monospace; letter-spacing: 0.04em; }

/* ---------- team ---------- */
.team-grid { display: grid; gap: 22px; }
.member {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 30px 30px 26px;
}
.member .role { color: var(--accent); font-size: 13.5px; font-weight: 600; margin: 2px 0 14px; }
.member h3 { font-size: 22px; }
.member p { color: var(--muted); font-size: 15.5px; max-width: 68ch; }
.member p + p { margin-top: 10px; }
.member .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11.5px; letter-spacing: 0.04em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 11px;
}
.member-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 22px; margin-top: 20px; }
.member-facts .k { color: var(--faint); font-size: 12px; font-family: "IBM Plex Mono", monospace; letter-spacing: 0.08em; text-transform: uppercase; }
.member-facts .v { font-size: 14.5px; color: var(--ink); margin-top: 2px; }
.member.placeholder {
  border-style: dashed;
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  min-height: 160px;
  color: var(--faint); font-size: 14.5px; text-align: center;
}

/* ---------- forms ---------- */
form.stack { display: grid; gap: 14px; max-width: 560px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 5px; color: var(--muted); }
input[type="text"], input[type="email"], select, textarea {
  width: 100%;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
  padding: 11px 13px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
textarea { min-height: 110px; resize: vertical; }
.form-note { color: var(--faint); font-size: 13px; }
.form-msg { font-size: 14.5px; display: none; }
.form-msg.ok { color: #6fc79a; display: block; }
.form-msg.err { color: #e8837c; display: block; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- CTA band ---------- */
.cta-band {
  margin-top: 110px;
  border-top: 1px solid var(--line);
  background: var(--panel);
  padding: 84px 0;
}
.cta-band .inner { max-width: 640px; margin: 0 auto; text-align: center; padding: 0 22px; }
.cta-band h2 { max-width: 24ch; margin: 14px auto 12px; }
.cta-band > .inner > p { color: var(--muted); max-width: 52ch; margin: 0 auto 30px; }
.cta-band form.stack { margin: 0 auto; text-align: left; }
.cta-band .mail { color: var(--muted); font-size: 14px; margin-top: 20px; display: block; }
.cta-band .mail a { color: var(--accent); }

/* ---------- footer ---------- */
footer.site { border-top: 1px solid var(--line); padding: 30px 0 44px; }
.foot-inner {
  display: flex; flex-wrap: wrap; gap: 10px 28px;
  justify-content: space-between; align-items: baseline;
  color: var(--faint); font-size: 13.5px;
}
.foot-inner a { color: var(--muted); }
.foot-inner a:hover { color: var(--accent); }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .rise.d1 { animation-delay: 0.08s; }
  .rise.d2 { animation-delay: 0.16s; }
  .rise.d3 { animation-delay: 0.24s; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
  }
}

/* No sideways scroll, ever */
html, body { max-width: 100%; overflow-x: hidden; }
img, svg, video { max-width: 100%; height: auto; }

/* ---------- ≥760px ---------- */
@media (min-width: 760px) {
  .nav-inner { height: 60px; padding-top: 0; padding-bottom: 0; flex-wrap: nowrap; }
  .nav-links { width: auto; order: 0; margin-left: 8px; gap: 24px; }
  .facts { grid-template-columns: repeat(3, 1fr); }
  .service { grid-template-columns: 300px 1fr; gap: 30px; align-items: start; }
  .principles { grid-template-columns: repeat(3, 1fr); }
  .client-wall { grid-template-columns: repeat(3, 1fr); }
  .team-grid { grid-template-columns: 1fr; }
  .member-facts { grid-template-columns: repeat(4, 1fr); }
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
