/* ========================================================================
   CONSIL — Home page specific
   ======================================================================== */

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: 180px 0 120px;
  overflow: hidden;
  isolation: isolate;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 64px;
  align-items: end;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-500);
  text-transform: uppercase;
}
.hero-meta .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyan-500);
  box-shadow: 0 0 0 0 rgba(79, 179, 201, .6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(79, 179, 201, .55); }
  70% { box-shadow: 0 0 0 14px rgba(79, 179, 201, 0); }
  100% { box-shadow: 0 0 0 0 rgba(79, 179, 201, 0); }
}

.hero h1.display {
  font-size: clamp(40px, 7.2vw, 132px);
  letter-spacing: -0.05em;
  margin-bottom: 0;
  line-height: 0.92;
}
.hero h1 .em {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--navy-700);
}
.hero h1 .stroke {
  -webkit-text-stroke: 1.5px var(--navy-800);
  color: transparent;
}

.hero-side {
  padding-bottom: 12px;
  display: flex; flex-direction: column; gap: 28px;
}
.hero-side .lead { font-size: clamp(16px, 1.3vw, 19px); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-bottom {
  margin-top: clamp(56px, 7vw, 96px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  gap: 32px;
}
.hero-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy-700);
}
.hero-scroll {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-500);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.hero-scroll .line {
  width: 1px; height: 32px;
  background: linear-gradient(to bottom, var(--navy-800), transparent);
  display: block;
  animation: scrollLine 2.4s ease-in-out infinite;
}
@keyframes scrollLine {
  0%, 100% { transform: scaleY(.6); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
}

/* hero decorative graphic */
.hero-graphic {
  position: absolute;
  right: -120px;
  top: 100px;
  width: 720px;
  height: 720px;
  pointer-events: none;
  z-index: -1;
  opacity: .7;
}
.hero-graphic svg { width: 100%; height: 100%; }

@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero h1.display { font-size: clamp(40px, 11vw, 96px); }
  .hero-bottom { grid-template-columns: 1fr; gap: 16px; }
  .hero-graphic { opacity: .35; right: -200px; }
}
@media (max-width: 760px) {
  .hero { padding: 130px 0 80px; }
  .hero h1.display { font-size: clamp(36px, 12vw, 72px); }
  .hero-graphic { display: none; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .hero-meta { flex-wrap: wrap; gap: 8px; font-size: 10px; }
}

/* ---------- TICKER ---------- */
.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  overflow: hidden;
  background: var(--cream-50);
}
.marquee {
  display: flex;
  overflow: hidden;
  white-space: nowrap;
  -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-inner {
  display: inline-flex;
  align-items: center;
  gap: 56px;
  animation: marquee 38s linear infinite;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy-700);
}
.marquee-inner .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan-500); flex: none; }
.marquee-inner span { display: inline-flex; align-items: center; gap: 56px; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- INTRO / HÁTTÉR ---------- */
.intro-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.intro-grid .lead-side { position: sticky; top: 110px; }
.intro-text {
  font-size: clamp(20px, 2vw, 30px);
  line-height: 1.42;
  letter-spacing: -0.018em;
  color: var(--navy-900);
  max-width: 70ch;
}
.intro-text strong {
  font-weight: 500;
  background: linear-gradient(180deg, transparent 60%, rgba(79,179,201,.28) 60%);
  padding: 0 .08em;
}

@media (max-width: 880px) {
  .intro-grid { grid-template-columns: 1fr; }
  .intro-grid .lead-side { position: static; }
}

/* ---------- STATS ---------- */
.stats {
  background: var(--navy-900);
  color: var(--cream-50);
  padding: clamp(80px, 9vw, 132px) 0;
  position: relative;
  overflow: hidden;
}
.stats::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(700px 300px at 80% 20%, rgba(79,179,201,.16), transparent 70%),
    radial-gradient(500px 280px at 10% 80%, rgba(79,179,201,.08), transparent 70%);
}
.stats .wrap { position: relative; }
.stats-head {
  display: flex; justify-content: space-between; align-items: end;
  gap: 24px;
  margin-bottom: 64px;
}
.stats-head h2 { color: var(--cream-50); max-width: 16ch; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  border-top: 1px solid rgba(255,255,255,.14);
}
.stat {
  padding: 40px 32px 32px;
  border-right: 1px solid rgba(255,255,255,.14);
  position: relative;
}
.stat:last-child { border-right: none; }
.stat .num {
  font-size: clamp(56px, 8vw, 128px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--cream-50);
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.stat .num .suffix { color: var(--cyan-400); font-size: .55em; font-weight: 400; }
.stat .label {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan-300);
}
.stat .desc {
  margin-top: 8px;
  font-size: 14px;
  color: rgba(245,241,232,.7);
  max-width: 24ch;
}
@media (max-width: 760px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,.14); }
  .stat:last-child { border-bottom: none; }
}

/* ---------- SERVICES ---------- */
.services-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 72px;
}
.services-head h2 { max-width: 14ch; }
.services-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line-strong);
}
.service {
  border-bottom: 1px solid var(--line-strong);
  padding: 36px 0;
  display: grid;
  grid-template-columns: 80px 1fr 60px;
  gap: 32px;
  align-items: start;
  cursor: pointer;
  transition: padding .35s var(--ease);
}
.service:hover { padding-left: 12px; }
.service .index {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--ink-500);
  padding-top: 14px;
}
.service h3 {
  font-size: clamp(28px, 3.4vw, 48px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.05;
  transition: color .3s var(--ease);
}
.service:hover h3 { color: var(--navy-700); }
.service .preview {
  font-size: 15px;
  color: var(--ink-500);
  margin-top: 8px;
  max-width: 64ch;
}
.service .toggle {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  margin-top: 6px;
  transition: background .3s var(--ease), color .3s var(--ease), transform .35s var(--ease);
  color: var(--navy-800);
  background: transparent;
}
.service:hover .toggle { background: var(--navy-800); color: var(--cream-100); }
.service .toggle svg { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.service.open .toggle { background: var(--cyan-500); color: var(--navy-900); transform: rotate(45deg); }

.service .body {
  grid-column: 2 / 3;
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .5s var(--ease);
}
.service .body-inner { overflow: hidden; }
.service.open .body { grid-template-rows: 1fr; }
.service .detail {
  padding: 24px 0 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-700);
}
.service .detail h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy-700);
  margin-bottom: 12px;
  font-weight: 500;
}
.service .detail ul { padding-left: 18px; margin: 0; display: flex; flex-direction: column; gap: 6px; }

@media (max-width: 760px) {
  .services-head { grid-template-columns: 1fr; }
  .service { grid-template-columns: 48px 1fr 44px; gap: 16px; }
  .service .detail { grid-template-columns: 1fr; gap: 16px; }
}

/* ---------- TEAM ---------- */
.team {
  background: var(--cream-50);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.team-head {
  display: flex; justify-content: space-between; align-items: end;
  gap: 24px; margin-bottom: 64px;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.team-card {
  background: var(--cream-50);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 360px;
  transition: background .3s var(--ease);
  position: relative;
  overflow: hidden;
}
.team-card:hover { background: var(--cream-100); }
.team-card .avatar {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: var(--navy-800);
  color: var(--cream-100);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 22px;
  letter-spacing: 0.06em;
  font-weight: 500;
  position: relative;
}
.team-card .avatar::after {
  content: "";
  position: absolute;
  inset: -6px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}
.team-card .role {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy-700);
}
.team-card .name {
  font-size: 24px;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-weight: 500;
  color: var(--navy-900);
}
.team-card .focus {
  margin-top: auto;
  font-size: 14px;
  color: var(--ink-500);
  line-height: 1.5;
}
.team-card.featured {
  background: var(--navy-900);
  color: var(--cream-50);
}
.team-card.featured .name { color: var(--cream-50); }
.team-card.featured .role { color: var(--cyan-300); }
.team-card.featured .focus { color: rgba(245,241,232,.7); }
.team-card.featured .avatar {
  background: var(--cyan-500); color: var(--navy-900);
}
.team-card.featured:hover { background: var(--navy-800); }

@media (max-width: 880px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .team-grid { grid-template-columns: 1fr; }
}

/* ---------- NETWORK / MAP ---------- */
.network { background: var(--navy-900); color: var(--cream-50); position: relative; overflow: hidden; }
.network::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(900px 500px at 70% 40%, rgba(79,179,201,.14), transparent 70%);
  pointer-events: none;
}
.network .wrap { position: relative; }
.network h2 { color: var(--cream-50); }
.network .lead { color: rgba(245,241,232,.78); }
.network-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
  margin-top: 64px;
}
.network-types {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 32px;
}
.net-chip {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 20px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  background: rgba(255,255,255,.02);
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.net-chip:hover { background: rgba(79,179,201,.06); border-color: rgba(79,179,201,.4); }
.net-chip .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--cyan-500); flex: none; }
.net-chip .label { font-size: 15px; color: var(--cream-50); }
.net-card {
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  padding: 32px;
  background: rgba(0,0,0,.18);
}
.net-card h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan-300);
  margin-bottom: 24px;
  font-weight: 500;
}
.geo-list { display: flex; flex-wrap: wrap; gap: 8px; }
.geo {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  font-size: 14px;
  color: var(--cream-50);
}
.net-card .footer-text {
  margin-top: 24px;
  font-size: 14px;
  color: rgba(245,241,232,.65);
  line-height: 1.55;
}

.map-card {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(180deg, rgba(20,23,58,.6), rgba(14,17,48,.85));
  padding: 24px;
  position: relative;
}
.map-card svg { width: 100%; height: auto; }

.locations { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.location {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(79,179,201,.08);
  border: 1px solid rgba(79,179,201,.24);
  color: var(--cream-50);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}
.location .pin { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan-400); }

@media (max-width: 920px) { .network-grid { grid-template-columns: 1fr; } }

/* ---------- VISION (proactive + future) ---------- */
.vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 6vw, 96px);
}
.vision-card .eyebrow { margin-bottom: 24px; }
.vision-card h3 {
  font-size: clamp(28px, 3vw, 44px);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.vision-card p { color: var(--ink-700); font-size: 16px; line-height: 1.65; }
.vision-card p + p { margin-top: 16px; }
.vision-card.dark {
  background: var(--navy-900);
  color: var(--cream-50);
  padding: 48px;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}
.vision-card.dark::after {
  content: "";
  position: absolute; right: -120px; bottom: -120px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79,179,201,.22), transparent 70%);
}
.vision-card.dark h3 { color: var(--cream-50); }
.vision-card.dark p { color: rgba(245,241,232,.78); }
.vision-card.dark .eyebrow { color: var(--cyan-300); }

@media (max-width: 880px) { .vision-grid { grid-template-columns: 1fr; } }

/* ---------- CONTACT ---------- */
.contact { background: var(--cream-50); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(48px, 7vw, 112px);
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 32px; }
.contact h2 { font-size: clamp(40px, 5vw, 80px); letter-spacing: -0.035em; line-height: 1; }
.contact h2 em { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400; color: var(--navy-700); }
.contact-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  background: var(--cream-100);
}
.contact-card h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy-700);
  margin-bottom: 12px;
  font-weight: 500;
}
.contact-card .name { font-size: 22px; letter-spacing: -0.018em; color: var(--navy-900); margin-bottom: 4px; }
.contact-card .role { font-family: var(--font-mono); font-size: 12px; color: var(--ink-500); letter-spacing: 0.04em; }
.contact-card .addr { font-size: 16px; color: var(--ink-700); line-height: 1.6; }

.contact-form {
  background: var(--navy-900);
  color: var(--cream-50);
  border-radius: 24px;
  padding: clamp(32px, 4vw, 56px);
  position: relative;
  overflow: hidden;
}
.contact-form::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 100% 0%, rgba(79,179,201,.18), transparent 70%);
  pointer-events: none;
}
.contact-form .inner { position: relative; }
.contact-form h3 {
  color: var(--cream-50);
  font-size: clamp(28px, 3vw, 40px);
  margin-bottom: 32px;
  letter-spacing: -0.02em;
}
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan-300);
}
.field input, .field textarea {
  font-family: inherit;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,.18);
  padding: 12px 0;
  color: var(--cream-50);
  font-size: 17px;
  outline: none;
  transition: border-color .25s var(--ease);
  resize: vertical;
}
.field input:focus, .field textarea:focus { border-color: var(--cyan-400); }
.field textarea { min-height: 100px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }

@media (max-width: 920px) { .contact-grid { grid-template-columns: 1fr; } }
