/* ============================================================
   Tomahoc — shared styles
   Dark, high-tech consulting site.
   Palette: ink black base, cool slate surfaces, a single
   signal-cyan accent, warm off-white text.
   ============================================================ */

:root {
  --ink:      #08090c;   /* page base */
  --surface:  #101218;   /* raised panels */
  --surface-2:#161922;   /* cards */
  --line:     #23262f;   /* hairlines */
  --text:     #e9ebf0;   /* primary text */
  --muted:    #8b909c;   /* secondary text */
  --signal:   #35e6c5;   /* the one accent */
  --signal-d: #0f4f45;   /* dim accent for fills */

  --display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --body:    "Inter", system-ui, -apple-system, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  --maxw: 1140px;
  --pad: clamp(1.25rem, 4vw, 3rem);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* subtle grid texture across the whole site — the "instrument panel" feel */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 100%);
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); position: relative; z-index: 1; }

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

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--signal);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--signal);
  display: inline-block;
}

.lede { color: var(--muted); font-size: 1.15rem; max-width: 52ch; }

/* ---------- header ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(8,9,12,0.72);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex; align-items: center; gap: 0.6rem;
}
.brand img.logo { height: 26px; width: auto; display: block; }
.brand .dot {
  width: 9px; height: 9px; border-radius: 2px;
  background: var(--signal);
  box-shadow: 0 0 12px var(--signal);
  flex: none;
}
footer.site .brand img.logo { height: 22px; opacity: 0.92; }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
  font-size: 0.93rem; color: var(--muted);
  transition: color 0.2s;
  position: relative;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 1px; background: var(--signal);
}
.nav-cta {
  font-family: var(--mono); font-size: 0.82rem;
  border: 1px solid var(--line); padding: 0.5rem 1rem; border-radius: 6px;
  color: var(--text); transition: all 0.2s;
}
.nav-cta:hover { border-color: var(--signal); color: var(--signal); }

.menu-btn { display: none; background: none; border: 0; color: var(--text); font-size: 1.5rem; cursor: pointer; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--mono); font-size: 0.85rem; letter-spacing: 0.02em;
  padding: 0.8rem 1.4rem; border-radius: 7px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.15s, background 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--signal); color: #04110e; font-weight: 600; }
.btn-primary:hover { box-shadow: 0 8px 30px -8px var(--signal); }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--signal); color: var(--signal); }

/* ---------- sections ---------- */
.section { padding-block: clamp(4rem, 9vw, 8rem); }
.section-head { margin-bottom: 3rem; max-width: 60ch; }
.section-head h2 { margin-top: 0.8rem; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(5rem, 12vw, 9rem) clamp(4rem, 8vw, 7rem); position: relative; }
#node-net {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
  mask-image: radial-gradient(ellipse 90% 80% at 30% 40%, #000 35%, transparent 85%);
}
.hero > .eyebrow, .hero > h1, .hero > .lede, .hero > .hero-actions, .hero > .readout { position: relative; z-index: 1; }
.hero h1 { margin: 1.4rem 0 1.6rem; max-width: 16ch; }
.hero .lede { font-size: 1.25rem; }
.hero-actions { display: flex; gap: 1rem; margin-top: 2.4rem; flex-wrap: wrap; }

/* readout strip — the signature element */
.readout {
  margin-top: 4rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, var(--surface), var(--ink));
  display: grid; grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
}
.readout .cell { padding: 1.6rem 1.5rem; border-right: 1px solid var(--line); }
.readout .cell:last-child { border-right: 0; }
.readout .k { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.readout .v { font-family: var(--display); font-size: 2rem; margin-top: 0.4rem; }
.readout .v span { color: var(--signal); }

/* ---------- card grids ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.8rem;
  transition: border-color 0.25s, transform 0.25s;
}
.card:hover { border-color: var(--signal); transform: translateY(-3px); }
.card .num { font-family: var(--mono); font-size: 0.78rem; color: var(--signal); letter-spacing: 0.12em; }
.card h3 { margin: 0.8rem 0 0.6rem; }
.card p { color: var(--muted); font-size: 0.98rem; }

/* feature list with hairline rows */
.rows { border-top: 1px solid var(--line); }
.row {
  display: grid; grid-template-columns: 80px 1fr; gap: 1.5rem;
  padding: 1.8rem 0; border-bottom: 1px solid var(--line);
  align-items: start;
}
.row .idx { font-family: var(--mono); color: var(--signal); font-size: 0.85rem; padding-top: 0.2rem; }
.row h3 { margin-bottom: 0.5rem; }
.row p { color: var(--muted); }

/* ---------- prose blocks ---------- */
.prose p { color: var(--muted); margin-bottom: 1.1rem; max-width: 65ch; }
.prose p strong { color: var(--text); font-weight: 600; }

/* ---------- CTA band ---------- */
.cta-band {
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    radial-gradient(120% 140% at 80% -20%, rgba(53,230,197,0.12), transparent 60%),
    var(--surface);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
}
.cta-band h2 { margin-bottom: 1rem; }
.cta-band .lede { margin: 0 auto 2rem; }

/* ---------- contact form ---------- */
.form { display: grid; gap: 1.2rem; max-width: 560px; }
.field label { display: block; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.5rem; }
.field input, .field textarea, .field select {
  width: 100%; background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 8px; padding: 0.85rem 1rem; color: var(--text);
  font-family: var(--body); font-size: 1rem; transition: border-color 0.2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--signal); }
.field textarea { resize: vertical; min-height: 130px; }

/* ---------- footer ---------- */
footer.site { border-top: 1px solid var(--line); padding-block: 3rem; margin-top: 4rem; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.foot .muted { color: var(--muted); font-size: 0.88rem; }
.foot-links { display: flex; gap: 1.5rem; }
.foot-links a { color: var(--muted); font-size: 0.9rem; transition: color 0.2s; }
.foot-links a:hover { color: var(--signal); }

/* ---------- reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .readout { grid-template-columns: 1fr; }
  .readout .cell { border-right: 0; border-bottom: 1px solid var(--line); }
  .readout .cell:last-child { border-bottom: 0; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute;
    top: 68px; left: 0; right: 0; background: var(--ink);
    border-bottom: 1px solid var(--line); padding: 1.5rem var(--pad); gap: 1.2rem;
  }
  .menu-btn { display: block; }
  .row { grid-template-columns: 1fr; gap: 0.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover { transform: none; }
}
