/* Home institucional — IDPE */

.home {
  font-family: var(--font-sans);
  color: var(--fg);
  background: var(--bg);
}

/* Header */
.h-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 64px;
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 5;
}
.h-header__logo { height: 36px; }
.h-nav {
  display: flex;
  gap: 32px;
  align-items: center;
}
.h-nav a {
  font-size: var(--fs-body-sm);
  color: var(--fg);
  text-decoration: none;
  font-weight: 500;
}
.h-nav a:hover { color: var(--primary); }

/* Hero */
.h-hero {
  padding: 96px 64px 64px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.h-hero__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 64px;
  align-items: end;
  position: relative;
  z-index: 1;
}
.h-hero__eyebrow {
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--tr-eyebrow);
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}
.h-hero__eyebrow::before { content: ""; width: 32px; height: 1px; background: var(--accent); }
.h-hero__title {
  font-size: var(--fs-display-xl);
  font-weight: 700;
  letter-spacing: var(--tr-tight);
  line-height: var(--lh-display);
  margin: 0 0 32px;
}
.h-hero__title em { font-style: normal; color: var(--primary); }
.h-hero__lead {
  font-size: var(--fs-body-lg);
  font-weight: 300;
  line-height: var(--lh-relaxed);
  color: var(--fg-muted);
  max-width: 50ch;
  margin: 0 0 40px;
}
.h-hero__ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.h-hero__meta {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-left: 1px solid var(--rule);
  padding-left: 32px;
}
.h-hero__meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.h-hero__meta-label {
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--tr-eyebrow);
  text-transform: uppercase;
  color: var(--fg-muted);
}
.h-hero__meta-val {
  font-size: var(--fs-h3);
  font-weight: 600;
  letter-spacing: var(--tr-snug);
}
.h-hero__hex {
  position: absolute;
  top: -200px;
  right: -200px;
  width: 700px;
  height: 700px;
  opacity: 0.05;
  z-index: 0;
}

/* Numbers strip */
.h-numbers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--idpe-cobalt-950);
  color: #fff;
}
.h-numbers__cell {
  padding: 48px 32px;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.h-numbers__cell:last-child { border-right: 0; }
.h-numbers__num {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: var(--tr-tight);
  line-height: 1;
  color: #fff;
}
.h-numbers__num span { color: var(--accent); }
.h-numbers__label {
  margin-top: 12px;
  font-size: var(--fs-body-sm);
  color: var(--idpe-cobalt-200);
}

/* Sections */
.h-section { padding: 96px 64px; }
.h-section--paper { background: var(--bg-subtle); }
.h-section__head {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 48px;
  margin-bottom: 64px;
  align-items: end;
}
.h-section__eyebrow {
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--tr-eyebrow);
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.h-section__title {
  font-size: var(--fs-h1);
  font-weight: 600;
  letter-spacing: var(--tr-tight);
  line-height: var(--lh-tight);
  margin: 16px 0 0;
}
.h-section__intro {
  font-size: var(--fs-body-lg);
  font-weight: 300;
  line-height: var(--lh-relaxed);
  color: var(--fg-muted);
  margin: 0;
}

/* Services */
.h-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.h-service {
  background: var(--bg);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 320px;
  transition: background var(--dur-base) var(--ease-out);
}
.h-service:hover { background: var(--idpe-cobalt-50); }
.h-service__num {
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--tr-wide);
  color: var(--accent);
  font-weight: 600;
}
.h-service__icon {
  width: 32px;
  height: 32px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-top: 8px;
}
.h-service__title {
  font-size: var(--fs-h4);
  font-weight: 600;
  letter-spacing: var(--tr-snug);
  margin: 8px 0 0;
}
.h-service__desc {
  font-size: var(--fs-body-sm);
  color: var(--fg-muted);
  line-height: var(--lh-relaxed);
  margin: 0;
}
.h-service__more {
  margin-top: auto;
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--tr-eyebrow);
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

/* Featured case */
.h-case {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--rule);
  background: var(--bg);
  min-height: 480px;
}
.h-case__visual {
  background: var(--primary);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 48px;
  color: #fff;
}
.h-case__visual::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: var(--idpe-cobalt-900);
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  opacity: 0.5;
}
.h-case__visual::after {
  content: "";
  position: absolute;
  top: 200px;
  right: 100px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(255,255,255,0.2);
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
}
.h-case__visual-content {
  position: relative;
  z-index: 1;
}
.h-case__visual-eyebrow {
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--tr-eyebrow);
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 16px;
}
.h-case__visual-title {
  font-size: var(--fs-h1);
  font-weight: 700;
  letter-spacing: var(--tr-tight);
  line-height: var(--lh-tight);
  margin: 0 0 24px;
  color: #fff;
}
.h-case__visual-meta {
  display: flex;
  gap: 32px;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 20px;
}
.h-case__visual-meta-item { font-size: var(--fs-body-sm); }
.h-case__visual-meta-item strong {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.h-case__visual-meta-item span { color: var(--idpe-cobalt-200); font-size: var(--fs-eyebrow); letter-spacing: var(--tr-eyebrow); text-transform: uppercase; }
.h-case__body {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.h-case__body-eyebrow {
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--tr-eyebrow);
  text-transform: uppercase;
  color: var(--fg-muted);
  font-weight: 600;
  margin-bottom: 16px;
}
.h-case__body-quote {
  font-size: var(--fs-h3);
  font-weight: 400;
  line-height: var(--lh-snug);
  letter-spacing: var(--tr-snug);
  margin: 0 0 32px;
  color: var(--fg);
}
.h-case__body-quote::before { content: "“"; color: var(--accent); font-size: 1.5em; line-height: 0; vertical-align: -0.3em; margin-right: 4px; }
.h-case__body-quote::after { content: "”"; color: var(--accent); }
.h-case__body-author {
  border-top: 1px solid var(--rule);
  padding-top: 20px;
  font-size: var(--fs-body-sm);
}
.h-case__body-author strong { display: block; font-weight: 600; }
.h-case__body-author span { color: var(--fg-muted); }

/* Approach (process) */
.h-approach {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.h-step {
  position: relative;
}
.h-step__num {
  font-family: var(--font-sans);
  font-size: 80px;
  font-weight: 200;
  color: var(--idpe-cobalt-300);
  line-height: 0.9;
  letter-spacing: var(--tr-tight);
}
.h-step__rule {
  height: 2px;
  background: var(--accent);
  width: 32px;
  margin: 16px 0;
}
.h-step__title {
  font-size: var(--fs-h4);
  font-weight: 600;
  letter-spacing: var(--tr-snug);
  margin: 0 0 12px;
}
.h-step__desc {
  font-size: var(--fs-body-sm);
  color: var(--fg-muted);
  line-height: var(--lh-relaxed);
  margin: 0;
}

/* CTA banner */
.h-cta {
  background: var(--idpe-cobalt-950);
  color: #fff;
  padding: 96px 64px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.h-cta__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
}
.h-cta__title {
  font-size: var(--fs-display-lg);
  font-weight: 700;
  letter-spacing: var(--tr-tight);
  line-height: var(--lh-display);
  margin: 0 0 24px;
  color: #fff;
}
.h-cta__lead { color: var(--idpe-cobalt-200); font-size: var(--fs-body-lg); font-weight: 300; line-height: var(--lh-relaxed); margin: 0 0 32px; max-width: 50ch; }
.h-cta__form {
  background: var(--idpe-cobalt-900);
  padding: 40px;
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  z-index: 1;
}
.h-cta__form .field__label { color: var(--idpe-cobalt-200); }
.h-cta__form .field__input {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  border-radius: 0;
  color: #fff;
  padding: 12px 0;
}
.h-cta__form .field__input::placeholder { color: rgba(255,255,255,0.4); }
.h-cta__form .field__input:focus { border-bottom-color: var(--accent); box-shadow: none; }
.h-cta__form .btn--primary { background: var(--accent); color: var(--idpe-ink-950); border-color: var(--accent); }
.h-cta__form .btn--primary:hover { background: var(--idpe-accent-400); border-color: var(--idpe-accent-400); }

/* Footer */
.h-footer {
  background: var(--bg);
  border-top: 1px solid var(--rule);
  padding: 64px 64px 32px;
}
.h-footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--rule);
}
.h-footer__brand img { height: 40px; }
.h-footer__brand p { color: var(--fg-muted); font-size: var(--fs-body-sm); line-height: var(--lh-relaxed); margin: 16px 0 0; max-width: 38ch; }
.h-footer__col h4 { font-size: var(--fs-eyebrow); letter-spacing: var(--tr-eyebrow); text-transform: uppercase; color: var(--fg-muted); font-weight: 600; margin: 0 0 16px; }
.h-footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.h-footer__col a { color: var(--fg); text-decoration: none; font-size: var(--fs-body-sm); }
.h-footer__col a:hover { color: var(--primary); }
.h-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  font-size: var(--fs-caption);
  color: var(--fg-muted);
}

@media (max-width: 980px) {
  .h-hero, .h-section, .h-cta, .h-footer { padding-left: 24px; padding-right: 24px; }
  .h-header { padding-left: 24px; padding-right: 24px; }
  .h-hero__inner, .h-section__head, .h-services, .h-case, .h-approach, .h-cta, .h-footer__top, .h-numbers { grid-template-columns: 1fr; }
  .h-hero__meta { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 24px; }
}
