/* home.css: homepage only. Needs tokens.css and base.css first. */

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  justify-content: center;
  padding: 140px 48px 80px;
  position: relative;
  overflow: hidden;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--navy-60);
  margin-bottom: 28px;
  display: flex; align-items: center; gap: 12px;
  opacity: 0; animation: fadeUp 0.8s ease 0.2s forwards;
}
.hero-eyebrow::before {
  content: '';
  display: block; width: 32px; height: 1px;
  background: var(--navy-60);
}

.hero-headline {
  font-size: clamp(42px, 6vw, 88px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 900px;
  margin-bottom: 32px;
  opacity: 0; animation: fadeUp 0.8s ease 0.4s forwards;
}
.hero-headline em {
  font-style: italic;
  font-weight: 400;
  color: var(--navy-60);
}

.hero-sub {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--navy-60);
  max-width: 480px;
  margin-bottom: 48px;
  opacity: 0; animation: fadeUp 0.8s ease 0.6s forwards;
}

.hero-actions {
  display: flex; align-items: center; gap: 20px;
  opacity: 0; animation: fadeUp 0.8s ease 0.8s forwards;
}

.btn-secondary {
  font-family: var(--mono);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--navy-60);
  text-decoration: none;
  display: flex; align-items: center; gap: 8px;
  transition: color 0.2s;
}
.btn-secondary:hover { color: var(--navy); }
.btn-secondary::after { content: '↓'; }

/* Hero decorative grid */
.hero-grid {
  position: absolute; right: 0; top: 0; bottom: 0;
  width: 45%;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: repeat(6, 1fr);
  opacity: 0.04;
  pointer-events: none;
}
.hero-grid-cell {
  border: 1px solid var(--navy);
}

/* Floating tag */
.hero-tag {
  position: absolute;
  right: 8%; top: 35%;
  background: var(--navy);
  color: var(--white);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 2px;
  opacity: 0;
  animation: fadeIn 1s ease 1.2s forwards;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute; bottom: 40px; left: 48px;
  display: flex; align-items: center; gap: 12px;
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--navy-60);
  opacity: 0; animation: fadeIn 1s ease 1.4s forwards;
}
.scroll-line {
  width: 40px; height: 1px;
  background: var(--navy-20);
  position: relative; overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute; left: -100%; top: 0;
  width: 100%; height: 100%;
  background: var(--navy);
  animation: scrollLine 2s ease 1.5s infinite;
}

/* ── CLIENTS STRIP ── */
.clients-strip {
  padding: 32px 48px;
  border-top: 1px solid var(--navy-10);
  border-bottom: 1px solid var(--navy-10);
  display: flex; align-items: center; gap: 48px;
  overflow: hidden;
}
.clients-label {
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--navy-60);
  white-space: nowrap;
  flex-shrink: 0;
}
.clients-list {
  display: flex; align-items: center; gap: 48px;
  flex-wrap: wrap;
}
.client-name {
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--navy-20);
  white-space: nowrap;
  transition: color 0.3s;
}
.client-name:hover { color: var(--navy); }

/* ── WHAT WE DO — KEYBOARD PILLARS ── */
.pillars-section { background: var(--off-white); }

.pillars-header {
  display: flex; justify-content: space-between;
  align-items: flex-end; margin-bottom: 72px;
  flex-wrap: wrap; gap: 24px;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* THE KEYBOARD KEY */
.pillar-key {
  position: relative;
  cursor: pointer;
  user-select: none;
}

.key-outer {
  background: var(--navy);
  border-radius: 12px;
  padding: 4px 4px 8px;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  box-shadow: 0 8px 0 rgba(0,0,0,0.35), 0 12px 24px rgba(7,11,51,0.2);
}

.pillar-key:hover .key-outer {
  transform: translateY(2px);
  box-shadow: 0 6px 0 rgba(0,0,0,0.35), 0 8px 18px rgba(7,11,51,0.2);
}

.pillar-key.active .key-outer {
  transform: translateY(6px);
  box-shadow: 0 2px 0 rgba(0,0,0,0.35), 0 4px 8px rgba(7,11,51,0.15);
}

.key-inner {
  background: var(--white);
  border-radius: 9px;
  padding: 40px 36px 36px;
  min-height: 200px;
  display: flex; flex-direction: column;
  justify-content: space-between;
}

.key-number {
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--navy-20);
  margin-bottom: 24px;
}

.key-label {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 8px;
}

.key-tagline {
  font-size: 12px; font-weight: 400;
  font-style: italic;
  color: var(--navy-60);
  margin-bottom: 0;
}

/* Expanded content */
.key-expanded {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
  opacity: 0;
  border-top: 0px solid var(--navy-10);
}

.pillar-key.active .key-expanded {
  max-height: 300px;
  opacity: 1;
  padding-top: 24px;
  border-top: 1px solid var(--navy-10);
  margin-top: 24px;
}

.key-description {
  font-size: 13px; line-height: 1.8;
  color: var(--navy-60);
  margin-bottom: 20px;
}

.key-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
}

.key-tag {
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--navy);
  border: 1px solid var(--navy-20);
  padding: 5px 10px;
  border-radius: 3px;
}

/* ── WHO WE WORK WITH ── */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  margin-top: 64px;
  border: 1px solid var(--navy-10);
  border-radius: 8px;
  overflow: hidden;
}

.industry-item {
  padding: 40px 44px;
  border: 1px solid var(--navy-10);
  display: flex; flex-direction: column;
  gap: 12px;
  transition: background 0.2s;
  cursor: default;
}
.industry-item:hover { background: var(--off-white); }

.industry-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 4px;
  color: var(--navy);
  opacity: 0.7;
  flex-shrink: 0;
}
.industry-icon svg {
  width: 32px;
  height: 32px;
  display: block;
}

.industry-name {
  font-size: 18px; font-weight: 700;
  letter-spacing: -0.01em;
}

.industry-desc {
  font-size: 12px; line-height: 1.7;
  color: var(--navy-60);
}

.industry-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 4px;
}

.industry-tag {
  font-size: 9px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--navy-60);
  border: 1px solid var(--navy-20);
  padding: 4px 8px; border-radius: 2px;
}

/* ── HOW WE WORK ── */
.process-section { background: var(--off-white); }
.process-section .section-headline { color: var(--navy); }
/* keyboard keys reuse the pillar styles; the .pillars-grid inside carries spacing */
.process-section .pillars-grid { margin-top: 72px; }

/* ── BEFORE / AFTER ── */
.ba-section { background: var(--off-white); }

.ba-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 64px;
}

.ba-card {
  padding: 48px;
  border-radius: 8px;
  border: 1px solid transparent;
}

.ba-card.before {
  background: var(--white);
  border-color: var(--navy-10);
}

.ba-card.after {
  background: var(--navy);
}

.ba-label {
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  margin-bottom: 24px;
}
.before .ba-label { color: var(--navy-60); }
.after .ba-label { color: rgba(255,255,255,0.4); }

.ba-headline {
  font-size: 26px; font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2; margin-bottom: 32px;
}
.before .ba-headline { color: var(--navy); }
.after .ba-headline { color: var(--white); }

.ba-items { display: flex; flex-direction: column; gap: 14px; }

.ba-item {
  font-size: 13px; line-height: 1.5;
  display: flex; align-items: flex-start; gap: 12px;
}
.before .ba-item { color: var(--navy-60); }
.after .ba-item { color: rgba(255,255,255,0.6); }

.ba-icon {
  font-size: 12px; flex-shrink: 0; margin-top: 1px;
}

/* Industry featured */
.industry-featured {
  border-left: 3px solid var(--navy);
  background: var(--off-white);
}
.industry-featured .industry-name { color: var(--navy); }

/* Industry CTA card */
.industry-cta-card {
  margin-top: 24px;
  border: 1px solid var(--navy-10);
  border-radius: 8px;
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: var(--white);
  flex-wrap: wrap;
}

.industry-cta-text {
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 500;
  line-height: 1.4;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.industry-cta-text em {
  font-style: italic;
  font-weight: 700;
  color: var(--navy);
}

/* ── RESPONSIVE (homepage) ── */
@media (max-width: 900px) {
  .hero { padding: 120px 24px 60px; }
  .pillars-grid { grid-template-columns: 1fr; }
  .industries-grid { grid-template-columns: 1fr; }
  .ba-grid { grid-template-columns: 1fr; }
  .clients-strip { padding: 24px; }
}
