/* ===== KADESH — HOME CSS ===== */

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--rule2);
}

.hero-inner {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  padding-top: calc(var(--nav-h) + 4rem);
  padding-bottom: 4rem;
}

.hero-coord {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--ink4);
  letter-spacing: 0.12em;
  margin-bottom: 1.75rem;
  animation: fadeUp 0.6s 0.05s both;
}

.coord-label { color: var(--ink4); }
.coord-sep { color: var(--rule2); }

.hero-content .label { animation: fadeUp 0.6s 0.1s both; }

.hero-content .display {
  animation: fadeUp 0.7s 0.18s both;
}

.hero-sub {
  color: var(--ink3);
  font-size: 1.05rem;
  max-width: 440px;
  line-height: 1.75;
  margin: 1.5rem 0 2rem;
  animation: fadeUp 0.7s 0.26s both;
}

.hero-actions { animation: fadeUp 0.7s 0.34s both; display: flex; gap: 0.75rem; flex-wrap: wrap; }

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

/* SPEC STRIP */
.spec-strip {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule2);
  animation: fadeUp 0.7s 0.42s both;
}

.ss-item { display: flex; flex-direction: column; gap: 3px; }

.ss-key {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--ink4);
  text-transform: uppercase;
}

.ss-val {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink2);
  font-weight: 400;
}

.ss-div {
  width: 1px;
  height: 28px;
  background: var(--rule2);
  flex-shrink: 0;
}

/* HERO DIAGRAM */
.hero-diagram {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeUp 0.9s 0.3s both;
}

.diagram-frame {
  background: var(--paper2);
  border: 1px solid var(--rule2);
  padding: 2rem;
  position: relative;
  width: 100%;
  max-width: 400px;
}

.df-label {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  color: var(--ink4);
  position: absolute;
}

.top-label { top: 0.6rem; left: 1rem; }
.bot-label { bottom: 0.6rem; right: 1rem; }

.circuit-svg { width: 100%; height: auto; display: block; }

/* TICKER */
.hero-ticker {
  background: var(--ink);
  padding: 0.65rem 0;
  overflow: hidden;
  flex-shrink: 0;
}

.ht-inner {
  display: flex;
  gap: 2.5rem;
  white-space: nowrap;
  animation: slide 28s linear infinite;
}

.ht-item {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: rgba(244,245,242,0.45);
}

.ht-k {
  color: var(--blue);
  margin-right: 0.4rem;
}

.ht-sep { color: rgba(244,245,242,0.15); }

@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* STATS */
.stats-row-section { padding: 2.5rem 0; }

.stats-row {
  display: flex;
  align-items: center;
}

.stat-block {
  flex: 1;
  padding: 1.5rem 2rem;
  text-align: center;
}

.stat-n {
  font-family: var(--font-head);
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--blue);
  display: inline;
}

.stat-u {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--blue);
  font-weight: 400;
}

.stat-block p {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--ink4);
  text-transform: uppercase;
  margin-top: 0.3rem;
}

.stat-div {
  width: 1px;
  height: 48px;
  background: var(--rule2);
  flex-shrink: 0;
}

/* SERVICES TABLE */
.services-overview { padding: 6rem 0; }

.so-head { margin-bottom: 3rem; }

.so-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.so-sub {
  color: var(--ink3);
  max-width: 380px;
  font-size: 0.95rem;
  line-height: 1.65;
  padding-bottom: 0.25rem;
}

.services-table {
  border: 1px solid var(--rule2);
  overflow: hidden;
}

.st-row {
  display: grid;
  grid-template-columns: 70px 1fr 200px 130px 36px;
  align-items: center;
  border-bottom: 1px solid var(--rule2);
  transition: background 0.15s;
  text-decoration: none;
  color: inherit;
}

.st-row:last-child { border-bottom: none; }

.st-header {
  background: var(--paper2);
  border-bottom: 2px solid var(--rule2);
}

.st-data:hover { background: var(--blue-dim); }
.st-data:hover .st-act { color: var(--blue); transform: translateX(4px); }

.st-cell {
  padding: 1rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

.st-header .st-cell {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink4);
}

.st-name strong {
  display: block;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}

.st-name span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--ink4);
}

.st-scope {
  font-size: 0.7rem;
  color: var(--ink3);
  letter-spacing: 0.02em;
}

.st-act {
  color: var(--ink4);
  font-size: 0.9rem;
  transition: color 0.15s, transform 0.15s;
  text-align: center;
}

.mono-dim {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--ink4);
}

/* WHY SECTION */
.why-section { padding: 6rem 0; }

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 6rem;
  align-items: start;
}

.why-text h2 { margin: 0.5rem 0 1.25rem; }
.why-text p { color: var(--ink3); line-height: 1.75; }

.why-pillars { display: flex; flex-direction: column; }

.pillar-row {
  display: grid;
  grid-template-columns: 36px 1fr 4px;
  gap: 1.25rem;
  align-items: start;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--rule2);
  transition-delay: calc(var(--i, 0) * 0.08s);
}

.pillar-row:last-child { border-bottom: none; }

.pr-num {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--blue);
  letter-spacing: 0.1em;
  padding-top: 0.2rem;
}

.pr-content h4 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.pr-content p { font-size: 0.9rem; color: var(--ink3); line-height: 1.6; }

.pr-indicator {
  width: 4px;
  height: 0;
  background: var(--blue);
  transition: height 0.4s;
  margin-top: 0.25rem;
  align-self: stretch;
}

.pillar-row.visible .pr-indicator { height: 100%; }

/* PROJECTS PREVIEW */
.projects-preview { padding: 6rem 0; background: var(--paper2); border-top: 1px solid var(--rule2); border-bottom: 1px solid var(--rule2); }

.pp-head { margin-bottom: 3rem; }

.pp-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.pp-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule2);
  border: 1px solid var(--rule2);
}

.pp-card {
  background: var(--paper);
  padding: 2rem;
  transition: background 0.2s;
  transition-delay: calc(var(--i, 0) * 0.08s);
}

.pp-card:hover { background: var(--blue-dim); }

.ppc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.pp-card h3 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.75rem;
  color: var(--ink);
}

.pp-card p {
  font-size: 0.875rem;
  color: var(--ink3);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.ppc-specs {
  display: flex;
  gap: 1.5rem;
  border-top: 1px solid var(--rule2);
  padding-top: 1.25rem;
}

.ppc-specs div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ppc-specs span {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink4);
}

.ppc-specs strong {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blue);
}

/* CTA */
.cta-section { padding: 6rem 0; }

.cta-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 3rem;
  background: var(--paper2);
  border: 1px solid var(--rule2);
}

.cta-text h2 { margin: 0.5rem 0 1rem; }
.cta-text p { color: var(--ink3); font-size: 0.95rem; line-height: 1.7; }

.cta-actions { display: flex; flex-direction: column; gap: 1.25rem; align-items: flex-start; }

.cta-contact-line {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.cta-phone {
  color: var(--blue);
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: opacity 0.2s;
}

.cta-phone:hover { opacity: 0.7; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: calc(var(--nav-h) + 3rem); }
  .hero-diagram { display: none; }
  .so-head-row { flex-direction: column; align-items: flex-start; }
  .why-grid { grid-template-columns: 1fr; gap: 3rem; }
  .pp-cards { grid-template-columns: 1fr; gap: 0; }
  .pp-card { border-bottom: 1px solid var(--rule2); }
  .cta-inner { grid-template-columns: 1fr; gap: 2rem; }
  .st-row { grid-template-columns: 60px 1fr 36px; }
  .st-scope, .st-type { display: none; }
}

@media (max-width: 768px) {
  .stats-row { flex-wrap: wrap; }
  .stat-block { flex: 0 0 50%; border-bottom: 1px solid var(--rule2); }
  .stat-div { display: none; }
  .pp-head-row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 500px) {
  .hero-content .display { font-size: 2.5rem; }
  .spec-strip { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .ss-div { display: none; }
}
