/* EngLogics homepage. Shared section, value, and outlook blocks come from enterprise.css. */
.home-page { background: var(--surface); }

/* ---------- Hero ---------- */
.home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: clamp(4.5rem, 10vw, 8.5rem);
  background: var(--navy-900);
  color: #FFFFFF;
}
.home-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 30%;
  background: url("../images/contours.svg") right center / cover no-repeat;
  content: "";
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 50%);
  mask-image: linear-gradient(90deg, transparent, #000 50%);
}
.home-hero-copy { max-width: 60rem; }
.home-hero-eyebrow { margin: 0 0 1.5rem; color: var(--accent-on-dark); font-size: .875rem; font-weight: 600; animation: home-fade .8s ease both; }
.home-page .home-hero-title {
  margin: 0 0 1.75rem;
  color: #FFFFFF;
  font-size: clamp(2.75rem, 6.4vw, 5.75rem);
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: .98;
  animation: home-rise .9s .08s var(--ease) both;
}
.home-page .home-hero-lede {
  max-width: 42rem;
  margin: 0 0 2.5rem;
  color: var(--slate-300);
  font-size: clamp(1.0625rem, 1.35vw, 1.25rem);
  line-height: 1.65;
  animation: home-rise .9s .18s var(--ease) both;
}
.home-hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; animation: home-rise .9s .28s var(--ease) both; }
.home-page .home-hero .button { min-height: 3.25rem; padding-inline: 1.6rem; font-size: 1rem; }
.home-button-outline.button { border: 1px solid rgba(255, 255, 255, .55); background: transparent; color: #FFFFFF; }
.home-button-outline.button:hover { border-color: #FFFFFF; background: #FFFFFF; color: var(--ink); }

.home-hero-capabilities {
  display: grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  margin-top: clamp(4rem, 9vw, 7rem);
  border-top: 1px solid var(--navy-700);
  animation: home-fade 1s .5s ease both;
}
.home-hero-capability {
  position: relative;
  display: grid;
  align-content: start;
  gap: .6rem;
  padding: 1.75rem 3rem 2.25rem 0;
  color: #FFFFFF;
  text-decoration: none;
  transition: background-color 200ms ease;
}
.home-hero-capability + .home-hero-capability { padding-left: 1.75rem; border-left: 1px solid var(--navy-700); }
.home-hero-capability::before { position: absolute; top: -1px; left: 0; width: 0; height: 2px; background: var(--accent-on-dark); content: ""; transition: width 300ms var(--ease); }
.home-hero-capability:hover::before { width: 100%; }
.home-hero-capability::after { position: absolute; top: 1.75rem; right: 1.25rem; color: var(--accent-on-dark); content: "→"; transition: translate 200ms var(--ease); }
.home-hero-capability:hover::after { translate: 4px 0; }
.home-capability-label { color: var(--slate-300); font-size: .8125rem; font-weight: 500; }
.home-hero-capability strong { max-width: 22rem; font-size: 1.0625rem; font-weight: 500; line-height: 1.4; }

@keyframes home-rise { from { opacity: 0; translate: 0 18px; } }
@keyframes home-fade { from { opacity: 0; } }

/* ---------- Industries strip ---------- */
.home-industries { border-bottom: 1px solid var(--line); }
.home-industries .container { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 3rem; min-height: 5.5rem; padding-block: 1rem; }
.home-page .home-industries h2 { margin: 0; color: var(--slate-500); font-size: .875rem; font-weight: 500; letter-spacing: 0; }
.home-industry-links { display: flex; flex: 1; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }
.home-industry-links a { display: inline-flex; min-height: 2.75rem; align-items: center; color: var(--ink); font-size: 1rem; font-weight: 600; text-decoration: none; text-underline-offset: .35em; }
.home-industry-links a:hover { text-decoration: underline; text-decoration-color: var(--accent); }

/* ---------- Before and after ---------- */
.home-shift { border-top: 0; }
.home-shift-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.home-shift-table th { padding: 0 2rem 1rem 0; border-bottom: 1px solid var(--ink); color: var(--slate-500); font-size: .875rem; font-weight: 600; text-align: left; }
.home-shift-table th + th { padding-left: 2rem; color: var(--accent); }
.home-shift-table td { padding: 1.4rem 2rem 1.4rem 0; border-bottom: 1px solid var(--line); color: var(--slate-500); font-size: 1.0625rem; line-height: 1.55; vertical-align: top; }
.home-shift-table td + td { position: relative; padding-left: 2rem; color: var(--ink); font-weight: 500; }
.home-shift-table td + td::before { position: absolute; top: 1.35rem; left: -.6rem; color: var(--accent); content: "→"; }
.home-outcomes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: clamp(3rem, 6vw, 4.5rem) 0 0; padding: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); list-style: none; }
.home-outcomes li { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1.75rem; background: var(--surface-2); }
.home-page .home-outcomes h3 { margin: 0 0 .6rem; font-size: 1.125rem; }
.home-outcomes p { margin: 0; color: var(--slate-700); font-size: .9375rem; line-height: 1.65; }

/* ---------- Practices ---------- */
.home-page .ent-section-head .text-link { margin-top: 1rem; }
.home-page .ent-section-head > p .text-link { display: flex; width: fit-content; }
.home-practices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.home-practice { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(2rem, 3.5vw, 3rem); background: var(--surface); }
.home-page .home-practice h3 { margin: 0 0 .75rem; font-size: clamp(1.5rem, 2.2vw, 1.9rem); }
.home-practice > p { max-width: 32rem; margin: 0 0 2rem; color: var(--slate-700); font-size: 1rem; line-height: 1.65; }
.home-practice ul { margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.home-practice li { border-bottom: 1px solid var(--line); }
.home-practice a { display: flex; min-height: 3.25rem; align-items: center; justify-content: space-between; gap: 1rem; color: var(--ink); font-size: 1rem; font-weight: 500; text-decoration: none; transition: padding 200ms var(--ease), color 160ms ease; }
.home-practice a::after { color: var(--accent); content: "→"; transition: translate 200ms var(--ease); }
.home-practice a:hover { padding-left: .5rem; }
.home-practice a:hover::after { translate: 4px 0; }

/* ---------- Outlook and why ---------- */
.home-future-link { margin: 2.5rem 0 0; }
.home-page .ent-dark .text-link { color: #FFFFFF; text-decoration-color: var(--accent-on-dark); }
.home-page .ent-dark .text-link span { color: var(--accent-on-dark); }
.home-why-link { margin-top: 1.5rem !important; }

/* ---------- Technology summary ---------- */
.home-tech { margin: 0; border-top: 1px solid var(--ink); }
.home-tech > div { display: grid; grid-template-columns: minmax(0, .5fr) minmax(0, 1.5fr); gap: .5rem 2rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line-strong); }
.home-tech dt { color: var(--slate-500); font-size: .9375rem; font-weight: 600; }
.home-tech dd { margin: 0; color: var(--ink); font-size: 1.0625rem; font-weight: 500; line-height: 1.6; }

/* ---------- Our work ---------- */
.home-practices-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home-work { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.home-work-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color 200ms ease, box-shadow 200ms ease; }
.home-work-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-lg); }
.home-work-art { display: block; height: 17rem; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.home-work-art img { width: 100%; height: 100%; object-fit: contain; padding: 2rem; }
.home-work-copy { display: grid; gap: .5rem; padding: 1.75rem 2rem 2rem; }
.home-work-copy .ent-card-kicker { margin: 0; }
.home-work-copy strong { font-size: clamp(1.3rem, 1.8vw, 1.6rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.home-work-copy > span:last-child { color: var(--slate-700); line-height: 1.65; }
.home-work-copy strong::after { margin-left: .5rem; color: var(--accent); content: "→"; transition: margin 200ms var(--ease); }
.home-work-card:hover strong::after { margin-left: .8rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .home-hero-capabilities { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; }
  .home-hero-capability, .home-hero-capability + .home-hero-capability { padding-left: 0; border-left: 0; border-bottom: 1px solid var(--navy-700); }
  .home-outcomes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .home-hero::before { inset: 0; opacity: .4; }
  .home-practices, .home-practices-3, .home-work { grid-template-columns: 1fr; }
  .home-tech > div { grid-template-columns: 1fr; }
  .home-industry-links { justify-content: flex-start; }
}
@media (max-width: 600px) {
  .home-hero-capabilities { grid-template-columns: 1fr; }
  .home-hero-capability, .home-hero-capability + .home-hero-capability { padding-left: 0; border-left: 0; }
  .home-hero-actions .button { flex: 1 1 100%; }
  .home-outcomes { grid-template-columns: 1fr; }
  .home-shift-table, .home-shift-table tbody, .home-shift-table tr, .home-shift-table td { display: block; }
  .home-shift-table thead { display: none; }
  .home-shift-table tr { padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
  .home-shift-table td { padding: 0; border: 0; }
  .home-shift-table td + td { margin-top: .6rem; padding-left: 1.5rem; }
  .home-shift-table td + td::before { top: 0; left: 0; }
  .home-work-art { height: 13rem; }
  .home-industries .container { flex-direction: column; align-items: flex-start; gap: .25rem; padding-block: 1.5rem; }
  .home-industry-links { display: grid; width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .home-hero *, .home-hero *::before { animation: none !important; transition: none !important; }
}
@media (forced-colors: active) {
  .home-hero::before { display: none; }
}
