/* Tekk-it — brand: logo red on ink/paper, IBM Plex voice */

:root {
  --red: #e32226;
  --red-deep: #b0181c;
  --ink: #141417;
  --ink-2: #1d1d21;
  --ink-3: #2a2a30;
  --paper: #fafaf8;
  --card: #ffffff;
  --body: #4a4a50;
  --muted: #7c7c84;
  --line: #e7e5e1;
  --line-dark: #33333a;
  --ok: #2fae5f;
  --on-ink: #f5f5f2;
  --on-ink-muted: #a3a3ab;

  --sans: "IBM Plex Sans", -apple-system, "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Code", Consolas, monospace;

  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: 1.375rem;
  --step-3: 1.75rem;
  --step-4: clamp(2rem, 4.5vw, 2.75rem);
  --step-5: clamp(2.5rem, 6.5vw, 4rem);

  --space: 1rem;
  --section: clamp(4rem, 9vw, 7rem);
  --wrap: 72rem;
}

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

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

body {
  font-family: var(--sans);
  font-size: var(--step-1);
  line-height: 1.65;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { color: var(--ink); line-height: 1.12; text-wrap: balance; letter-spacing: -0.015em; }
h1 { font-size: var(--step-5); font-weight: 700; }
h2 { font-size: var(--step-4); font-weight: 700; }
h3 { font-size: var(--step-2); font-weight: 600; }

a { color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}

/* ---------- nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 2rem; height: 4.25rem; }
.nav-logo { display: flex; align-items: center; gap: 0.7rem; color: var(--ink); text-decoration: none; }
.nav-logo img { height: 2.6rem; width: 2.6rem; }
.wordmark { font-weight: 700; font-size: 1.45rem; letter-spacing: -0.03em; line-height: 1; }
.wordmark::after {
  content: ""; display: inline-block;
  width: 0.28em; height: 0.28em; margin-left: 0.14em;
  background: var(--red); vertical-align: baseline;
}
.nav-links { display: flex; gap: 1.75rem; margin-left: auto; align-items: center; }
.nav-links a { text-decoration: none; font-size: 0.95rem; font-weight: 500; color: var(--body); }
.nav-links a:hover { color: var(--ink); }
.nav-phone {
  font-family: var(--mono); font-size: 0.9rem; font-weight: 600;
  color: var(--ink) !important;
  border: 1.5px solid var(--ink); border-radius: 999px;
  padding: 0.45rem 1.1rem; white-space: nowrap;
}
.nav-phone:hover { background: var(--ink); color: var(--on-ink) !important; }

.nav-toggle {
  display: none; margin-left: auto;
  background: none; border: none; cursor: pointer;
  color: var(--ink); padding: 0.5rem;
}
@media (max-width: 860px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 0.5rem 0 1rem;
    box-shadow: 0 18px 30px -18px rgba(20, 20, 23, 0.25);
  }
  .nav-open .nav-links { display: flex; }
  .nav-links a:not(.nav-phone) {
    padding: 0.85rem clamp(1.25rem, 4vw, 2.5rem);
    font-size: 1.05rem; border-bottom: 1px solid var(--line);
  }
  .nav-links .nav-phone { margin: 1rem clamp(1.25rem, 4vw, 2.5rem) 0; text-align: center; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--sans); font-weight: 600; font-size: 1rem;
  padding: 0.85rem 1.75rem; border-radius: 999px;
  text-decoration: none; border: 1.5px solid transparent;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-deep); }
.btn-ghost-dark { border-color: var(--line-dark); color: var(--on-ink); }
.btn-ghost-dark:hover { border-color: var(--on-ink); }
.btn-ghost-light { border-color: var(--ink); color: var(--ink); }
.btn-ghost-light:hover { background: var(--ink); color: var(--on-ink); }

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

.hero {
  background:
    radial-gradient(55rem 38rem at 82% 15%, rgba(227, 34, 38, 0.08), transparent 62%),
    var(--ink);
  color: var(--on-ink-muted); overflow: clip;
}
.hero-inner {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 6vw, 5rem); align-items: center;
  padding-block: var(--section);
}
.hero h1 { color: var(--on-ink); margin: 1.1rem 0 1.35rem; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero p { max-width: 34rem; font-size: var(--step-1); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.25rem; }
.hero-note { margin-top: 1.4rem; font-family: var(--mono); font-size: 0.8125rem; color: var(--on-ink-muted); }

/* status console card */
.console {
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  font-family: var(--mono); font-size: 0.875rem;
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.55);
}
.console-bar {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 1.1rem; border-bottom: 1px solid var(--line-dark);
  color: var(--on-ink-muted); font-size: 0.78rem; letter-spacing: 0.06em;
}
.console-bar .dots { display: flex; gap: 0.35rem; margin-right: 0.4rem; }
.console-bar .dots span { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--ink-3); }
.console-body { padding: 1.1rem 1.2rem 1.3rem; display: grid; gap: 0.65rem; }
.console-status {
  display: flex; align-items: center; gap: 0.6rem;
  color: var(--on-ink); font-weight: 600; padding-bottom: 0.55rem;
  border-bottom: 1px dashed var(--line-dark); margin-bottom: 0.3rem;
}
.pulse {
  width: 0.65rem; height: 0.65rem; border-radius: 50%;
  background: var(--ok); flex: none;
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(47, 174, 95, 0.5); }
  70% { box-shadow: 0 0 0 9px rgba(47, 174, 95, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 174, 95, 0); }
}
.console-row {
  display: flex; justify-content: space-between; gap: 1.5rem;
  color: var(--on-ink-muted);
  opacity: 0; transform: translateY(6px);
  animation: rise 420ms ease-out forwards;
}
.console-row:nth-child(3) { animation-delay: 120ms; }
.console-row:nth-child(4) { animation-delay: 240ms; }
.console-row:nth-child(5) { animation-delay: 360ms; }
.console-row:nth-child(6) { animation-delay: 480ms; }
.console-row:nth-child(7) { animation-delay: 600ms; }
.console-row:nth-child(8) { animation-delay: 720ms; }

/* support-log replay: rows land at conversation pace */
.log { gap: 0.85rem; }
.log-row {
  display: grid; grid-template-columns: 2.7rem 3.9rem 1fr;
  gap: 0.7rem; align-items: baseline;
  opacity: 0; transform: translateY(6px);
  animation: rise 420ms ease-out forwards;
}
.log-row time, .log-row .who { font-size: 0.78rem; }
.log-row time { color: var(--on-ink-muted); opacity: 0.65; font-variant-numeric: tabular-nums; }
.who.client { color: var(--on-ink); }
.who.tekk { color: var(--red); }
.log-row p { font-size: 0.875rem; line-height: 1.5; color: var(--on-ink-muted); }
.log-row .who.client + p { color: var(--on-ink); }
.log-row .ok-line { color: var(--ok); }
.log-summary p {
  display: flex; align-items: center; gap: 0.6rem;
  color: var(--on-ink); font-weight: 500;
  border-top: 1px dashed var(--line-dark); padding-top: 0.8rem; margin-top: 0.2rem;
}
.log-row:nth-child(1) { animation-delay: 300ms; }
.log-row:nth-child(2) { animation-delay: 1200ms; }
.log-row:nth-child(3) { animation-delay: 2200ms; }
.log-row:nth-child(4) { animation-delay: 3200ms; }
.log-row:nth-child(5) { animation-delay: 4000ms; }
.log-row:nth-child(6) { animation-delay: 4900ms; }
.log-row:nth-child(7) { animation-delay: 5500ms; }
@media (prefers-reduced-motion: reduce) { .log-row { opacity: 1; transform: none; } }

/* hero mesh constellation */
.mesh-wrap {
  position: relative;
  height: clamp(320px, 42vw, 460px);
}
.mesh-wrap canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  -webkit-mask-image: radial-gradient(closest-side at 50% 50%, #000 62%, transparent 100%);
  mask-image: radial-gradient(closest-side at 50% 50%, #000 62%, transparent 100%);
}
@media (max-width: 860px) {
  .mesh-wrap { height: 320px; max-width: none; }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .console-row { opacity: 1; transform: none; } }
.console-row b { color: var(--on-ink); font-weight: 500; }
.console-row .ok { color: var(--ok); }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .console, .hero-card { max-width: 30rem; }
}

/* ---------- trust strip ---------- */

.strip { border-block: 1px solid var(--line-dark); background: var(--ink); }
.strip-inner {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1rem; padding-block: 1.5rem;
}
.strip-item { display: grid; gap: 0.25rem; text-align: center; }
.strip-item b {
  font-family: var(--mono); font-weight: 600; font-size: 1.15rem;
  color: var(--on-ink);
  font-variant-numeric: tabular-nums;
}
.strip-item span {
  font-family: var(--mono); font-size: 0.72rem;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--on-ink-muted);
}
@media (min-width: 861px) { .strip-item + .strip-item { border-left: 1px solid var(--line-dark); } }

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

.section { padding-block: var(--section); }
.section-head { max-width: 44rem; margin-bottom: clamp(2.25rem, 5vw, 3.5rem); }
.section-head h2 { margin: 0.9rem 0 1rem; }
.section-alt { background: var(--card); border-block: 1px solid var(--line); }

/* services */
.services { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.1rem; }
.service {
  grid-column: span 2;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 1.75rem 1.6rem 1.9rem;
  display: grid; gap: 0.7rem; align-content: start;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.service:hover {
  transform: translateY(-4px);
  border-color: #d9d6d0;
  box-shadow: 0 16px 32px -20px rgba(20, 20, 23, 0.22);
}
.service.wide:hover { border-color: var(--ink-3); box-shadow: 0 16px 32px -20px rgba(0, 0, 0, 0.5); }
.service.wide { grid-column: span 3; background: var(--ink); border-color: var(--ink); }
.service.wide h3 { color: var(--on-ink); }
.service.wide p { color: var(--on-ink-muted); }
.service-icon { width: 1.6rem; height: 1.6rem; color: var(--red); margin-bottom: 0.1rem; }
.service-tag { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); }
.service p { font-size: 1rem; }
@media (max-width: 1020px) { .service, .service.wide { grid-column: span 3; } }
@media (max-width: 660px) { .service, .service.wide { grid-column: span 6; } }

/* why us */
.why { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.why-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.why-item { display: grid; gap: 0.35rem; padding: 1.35rem 0; border-bottom: 1px solid var(--line); }
.why-item h3 { font-size: var(--step-1); }
.why-item p { font-size: 1rem; }
@media (max-width: 860px) { .why { grid-template-columns: 1fr; } }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.step {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 1.75rem 1.6rem 1.9rem;
  display: grid; gap: 0.7rem; align-content: start;
}
.step-num {
  font-family: var(--mono); font-size: 0.85rem; font-weight: 600;
  color: var(--red); letter-spacing: 0.1em;
}
.step h3 { font-size: var(--step-1); }
.step p { font-size: 1rem; }
html.anim .steps .reveal:nth-child(2) { transition-delay: 80ms; }
html.anim .steps .reveal:nth-child(3) { transition-delay: 160ms; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* team */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1.1rem; }
.member {
  position: relative; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 1.6rem 1.4rem; text-align: center; display: grid; gap: 0.2rem; justify-items: center;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.member::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--red); transform: scaleX(0); transform-origin: left;
  transition: transform 220ms ease;
}
.member:hover {
  transform: translateY(-4px);
  border-color: #d9d6d0;
  box-shadow: 0 16px 32px -20px rgba(20, 20, 23, 0.22);
}
.member:hover::after { transform: scaleX(1); }
.member img, .member .avatar {
  width: 6.5rem; height: 6.5rem; border-radius: 50%; object-fit: cover;
  margin-bottom: 0.9rem; border: 3px solid var(--paper); box-shadow: 0 0 0 1.5px var(--line);
  transition: box-shadow 220ms ease;
}
.member:hover img, .member:hover .avatar { box-shadow: 0 0 0 1.5px var(--red); }
.member .avatar {
  display: grid; place-items: center; background: var(--ink); color: var(--on-ink);
  font-family: var(--mono); font-size: 1.6rem; font-weight: 600;
}
.member h3 { font-size: 1.1rem; }
.member .role { font-size: 0.9rem; color: var(--muted); }
.member .cert {
  margin-top: 0.45rem;
  font-family: var(--mono); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--red);
  border: 1px solid color-mix(in srgb, var(--red) 35%, transparent);
  border-radius: 999px; padding: 0.25rem 0.7rem;
}
.member .li {
  margin-top: 0.7rem; font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.08em;
  color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line);
}
.member .li:hover { color: var(--red); border-color: var(--red); }

/* faq */
.faq { max-width: 46rem; display: grid; gap: 0.8rem; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.1rem 1.35rem; font-weight: 600; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-size: 1.2rem; color: var(--red); flex: none; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { padding: 0 1.35rem 1.25rem; font-size: 1rem; }

/* contact */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2.5rem, 6vw, 5rem); }
.contact-info { display: grid; gap: 1.6rem; align-content: start; }
.contact-line { display: grid; gap: 0.15rem; }
.contact-line .label { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.contact-line a { font-family: var(--mono); font-size: 1.25rem; color: var(--ink); text-decoration: none; }
.contact-line a:hover { color: var(--red); }
.form { display: grid; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 0.35rem; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.field input, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--card); border: 1.5px solid var(--line); border-radius: 8px;
  padding: 0.75rem 0.9rem; width: 100%;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red); }
.field textarea { resize: vertical; min-height: 8rem; }
.consent { display: flex; gap: 0.7rem; align-items: start; font-size: 0.85rem; line-height: 1.55; color: var(--muted); cursor: pointer; }
.consent input {
  appearance: none; -webkit-appearance: none;
  flex: 0 0 auto; width: 1.15rem; height: 1.15rem; margin-top: 0.14rem;
  border: 1.5px solid color-mix(in srgb, var(--muted) 55%, var(--line));
  border-radius: 0.3rem; background: #fff; cursor: pointer;
  display: grid; place-content: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.consent input::before {
  content: ""; width: 0.62rem; height: 0.62rem; transform: scale(0);
  transition: transform 0.12s ease; background: #fff;
  clip-path: polygon(14% 46%, 0 62%, 38% 100%, 100% 22%, 84% 8%, 38% 68%);
}
.consent input:checked { background: var(--red); border-color: var(--red); }
.consent input:checked::before { transform: scale(1); }
.consent input:hover { border-color: var(--red); }
.consent a { color: inherit; }
.form-note { font-size: 0.85rem; color: var(--muted); }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

/* cta band */
.band { background: var(--ink); color: var(--on-ink-muted); }
.band-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 3.5rem; }
.band h2 { color: var(--on-ink); font-size: var(--step-3); }
.band p { margin-top: 0.4rem; }

/* footer */
.footer { background: var(--ink); color: var(--on-ink-muted); border-top: 1px solid var(--line-dark); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; padding-block: 2rem; font-size: 0.875rem; }
.footer-logo { display: flex; align-items: center; gap: 0.7rem; color: var(--on-ink); }
.footer-logo img {
  height: 2.5rem; width: 2.5rem;
  background: var(--paper); border-radius: 9px; padding: 0.3rem;
}
.footer-logo .wordmark { font-size: 1.2rem; }
.footer-links { display: flex; gap: 1.5rem; margin-left: auto; flex-wrap: wrap; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--on-ink); }

/* ---------- scroll reveals (html.anim set by JS only when motion is ok) ---------- */

html.anim .reveal {
  opacity: 0; transform: translateY(14px);
  transition: opacity 550ms ease, transform 550ms ease;
}
html.anim .reveal.in { opacity: 1; transform: none; }
html.anim .services .reveal:nth-child(2),
html.anim .team .reveal:nth-child(2),
html.anim .strip-inner .reveal:nth-child(2) { transition-delay: 80ms; }
html.anim .services .reveal:nth-child(3),
html.anim .team .reveal:nth-child(3),
html.anim .strip-inner .reveal:nth-child(3) { transition-delay: 160ms; }
html.anim .services .reveal:nth-child(4),
html.anim .team .reveal:nth-child(4),
html.anim .strip-inner .reveal:nth-child(4) { transition-delay: 240ms; }
html.anim .services .reveal:nth-child(5) { transition-delay: 320ms; }

/* console heartbeat caret */
.caret {
  display: inline-block; width: 0.55em; height: 1em;
  background: var(--on-ink-muted); vertical-align: text-bottom;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- legal pages ---------- */

.legal { max-width: 46rem; padding-block: var(--section); }
.legal h1 { font-size: var(--step-4); margin: 0.9rem 0 0.5rem; }
.legal .updated { font-family: var(--mono); font-size: 0.8125rem; color: var(--muted); }
.legal h2 { font-size: var(--step-2); margin: 2.5rem 0 0.75rem; }
.legal p, .legal li { font-size: 1rem; }
.legal ul { padding-left: 1.3rem; display: grid; gap: 0.4rem; margin-block: 0.75rem; }
.legal a { color: var(--red); }
