/* hvl-pages.css — page-specific layouts and section styles */

/* ===== INDEX HERO ===== */
.hvl-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  position: relative;
  overflow: hidden;
}
.hvl-hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  width: 100%;
  padding: clamp(4rem, 8vw, 7rem) 0;
}
.hvl-hero__content {}
.hvl-hero__label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-amber);
  margin-bottom: 1.25rem;
}
.hvl-hero__label span {
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--accent-amber);
}
.hvl-hero__hl {
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 900;
  color: var(--text-h-dark);
  line-height: 1.1;
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}
.hvl-hero__sub {
  font-size: 1.125rem;
  color: var(--text-b-dark);
  line-height: 1.65;
  margin-bottom: 2rem;
  max-width: 520px;
}
.hvl-hero__ctas {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.hvl-hero__badges {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.hvl-hero__badge-item {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.hvl-hero__badge-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--accent-amber);
  line-height: 1;
}
.hvl-hero__badge-desc {
  font-size: 0.75rem;
  color: var(--text-m-dark);
  line-height: 1.4;
  max-width: 120px;
}
.hvl-hero__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hvl-hero__img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  display: block;
}

/* ===== SUB-PAGE HERO ===== */
.hvl-subhero {
  padding: calc(var(--nav-h) + clamp(3rem, 6vw, 5rem)) 0 clamp(3rem, 5vw, 4.5rem);
}
.hvl-subhero--dark { background: var(--bg-dark); }
.hvl-subhero--light { background: var(--bg-light); }

.hvl-subhero__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}
.hvl-subhero__content {}

.hvl-subhero--dark .hvl-subhero__label { color: var(--accent-amber); }
.hvl-subhero--light .hvl-subhero__label { color: var(--accent-amber-hover); }

.hvl-subhero__label {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.hvl-subhero__label::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background: currentColor;
}
.hvl-subhero--dark .hvl-subhero__hl {
  color: var(--text-h-dark);
}
.hvl-subhero--light .hvl-subhero__hl {
  color: var(--text-h-light);
}
.hvl-subhero__hl {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
  max-width: 700px;
}
.hvl-subhero--dark .hvl-subhero__sub {
  color: var(--text-b-dark);
}
.hvl-subhero--light .hvl-subhero__sub {
  color: var(--text-b-light);
}
.hvl-subhero__sub {
  font-size: 1.0625rem;
  line-height: 1.65;
  max-width: 620px;
}
.hvl-subhero__accent-line {
  margin-top: 1.5rem;
  width: 60px;
  height: 3px;
  background: var(--accent-amber);
  border-radius: 2px;
}

/* Visual weight ornament for sub-page heroes */
.hvl-subhero__ornament {
  flex-shrink: 0;
  opacity: 0.4;
}

/* ===== INDEX PROBLEM STRIP ===== */
.hvl-problem-strip {}

/* ===== INDEX HOW CORE ===== */
.hvl-how-core__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}
.hvl-how-core__heading {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  color: var(--text-h-light);
  margin-bottom: 1.25rem;
}
.hvl-how-core__steps { margin-top: 1.5rem; }
.hvl-how-core__content {}
.hvl-pipeline-steps {}
.hvl-how-core__cta { margin-top: 2rem; }

/* SVG diagram */
.hvl-flow-diagram { width: 100%; }

/* ===== INDEX USE CASE CARDS ===== */
.hvl-section-title-group {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.hvl-section-title-group .hvl-badge { margin-bottom: 0.75rem; }
.hvl-section-title-group h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  color: var(--text-h-light);
  margin-bottom: 0.75rem;
}
.hvl-section-title-group--dark h2 { color: var(--text-h-dark); }
.hvl-section-title-group p {
  font-size: 1.0625rem;
  color: var(--text-b-light);
  max-width: 600px;
  margin: 0 auto;
}
.hvl-section-title-group--dark p { color: var(--text-b-dark); }

.hvl-card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.hvl-card-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.hvl-card-grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

/* ===== FORECAST CHART SECTION ===== */
.hvl-forecast-section__intro {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
}
.hvl-forecast-section__intro h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--text-h-dark);
  margin-bottom: 0.75rem;
}
.hvl-forecast-section__intro p {
  font-size: 1rem;
  color: var(--text-b-dark);
  line-height: 1.65;
}

.hvl-chart-wrap {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem 1.5rem;
  overflow-x: auto;
}

/* ===== CUSTOMER STRIP ===== */
.hvl-quotes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* ===== INDEX CTA ===== */
.hvl-cta-section {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}
.hvl-cta-section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--text-h-dark);
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
}
.hvl-cta-section p {
  font-size: 1.0625rem;
  color: var(--text-b-dark);
  line-height: 1.65;
  margin-bottom: 2rem;
}
.hvl-cta-section__buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ===== HOW-IT-WORKS PIPELINE ===== */
.hvl-pipeline-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}
.hvl-pipeline-diagram { position: sticky; top: calc(var(--nav-h) + 2rem); }

/* ===== OUTPUTS SECTION ===== */
.hvl-outputs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.hvl-outputs-col__title {
  font-family: 'Epilogue', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-h-light);
  margin-bottom: 1rem;
}
.hvl-outputs-col__desc {
  font-size: 0.9375rem;
  color: var(--text-b-light);
  line-height: 1.65;
  margin-bottom: 1rem;
}
.hvl-outputs-col__sub-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-m-light);
  margin: 1.25rem 0 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

/* ===== ABOUT HERO ===== */
.hvl-about-hero__grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}
.hvl-about-hero__portrait {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 3px solid var(--border-dark);
  flex-shrink: 0;
}
.hvl-about-hero__name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-h-dark);
  margin-top: 0.5rem;
  text-align: center;
}
.hvl-about-hero__title {
  font-size: 0.875rem;
  color: var(--accent-amber);
  text-align: center;
}
.hvl-about-hero__portrait-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ===== ABOUT STORY ===== */
.hvl-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}
.hvl-story__heading {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--text-h-light);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}
.hvl-story__body {
  font-size: 1rem;
  color: var(--text-b-light);
  line-height: 1.75;
}
.hvl-story__body p + p { margin-top: 1rem; }
.hvl-story__img {
  width: 100%;
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* ===== CONTACT PAGE ===== */
.hvl-contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}
.hvl-contact-form-wrap {}
.hvl-contact-form-title {
  font-family: 'Epilogue', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-h-light);
  margin-bottom: 1.5rem;
}
.hvl-contact-form { display: flex; flex-direction: column; gap: 1rem; }
.hvl-contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.hvl-contact-info-card {
  background: var(--bg-cream);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.hvl-contact-info-card__title {
  font-family: 'Epilogue', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-h-light);
  margin-bottom: 0.25rem;
}
.hvl-contact-info-card__role {
  font-size: 0.875rem;
  color: var(--link-light);
  margin-bottom: 1.5rem;
}
.hvl-contact-info-card__line {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: var(--text-b-light);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}
.hvl-contact-info-card__line i {
  font-size: 0.9rem;
  color: var(--accent-amber-hover);
  margin-top: 1px;
  flex-shrink: 0;
}
.hvl-contact-info-card__line a { color: var(--link-light); }
.hvl-contact-info-card__line a:hover { text-decoration: underline; }
.hvl-contact-pilot-info {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}
.hvl-contact-pilot-info__title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-h-light);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.hvl-contact-pilot-info ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.hvl-contact-pilot-info li {
  font-size: 0.875rem;
  color: var(--text-b-light);
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}
.hvl-contact-pilot-info li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-amber);
  flex-shrink: 0;
  margin-top: 7px;
}

/* ===== BLOG ARTICLE PAGE ===== */
.hvl-article-hero {
  padding: calc(var(--nav-h) + 2.5rem) 0 2.5rem;
  background: var(--bg-light);
}
.hvl-article-hero__inner { max-width: 860px; margin: 0 auto; padding: 0 var(--gutter); }
.hvl-article-hero__cat {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-amber-hover);
  margin-bottom: 0.75rem;
}
.hvl-article-hero__title {
  font-family: 'Epilogue', sans-serif;
  font-size: clamp(1.75rem, 3.5vw, 2.8rem);
  font-weight: 900;
  color: var(--text-h-light);
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
}
.hvl-article-hero__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--text-m-light);
  flex-wrap: wrap;
}
.hvl-article-hero__meta span + span::before {
  content: '·';
  margin-right: 1rem;
}
.hvl-article-cover {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin-top: 1.75rem;
}

.hvl-article-body {
  background: var(--bg-white);
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}
.hvl-article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.hvl-blog-article__body {
  max-width: 700px;
}
.hvl-blog-article__body h2 {
  font-family: 'Epilogue', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-h-light);
  margin: 2rem 0 0.75rem;
}
.hvl-blog-article__body h3 {
  font-family: 'Epilogue', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-h-light);
  margin: 1.5rem 0 0.5rem;
}
.hvl-blog-article__body p {
  font-size: 1rem;
  color: var(--text-b-light);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}
.hvl-blog-article__body ul, .hvl-blog-article__body ol {
  padding-left: 1.75rem;
  margin-bottom: 1.25rem;
  list-style: disc;
}
.hvl-blog-article__body li {
  font-size: 1rem;
  color: var(--text-b-light);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}
.hvl-blog-article__body blockquote {
  border-left: 3px solid var(--accent-amber);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--bg-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.hvl-blog-article__body blockquote p {
  color: var(--text-h-light);
  font-style: italic;
  margin: 0;
}
.hvl-blog-article__body a {
  color: var(--link-light);
  text-decoration: underline;
}
.hvl-blog-article__body code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  background: var(--bg-light);
  border-radius: 4px;
  padding: 0.15rem 0.4rem;
  color: var(--text-h-light);
}
.hvl-blog-article__body img {
  max-width: 100%;
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
}

.hvl-article-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}
.hvl-sidebar-toc {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}
.hvl-sidebar-toc__title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-m-light);
  margin-bottom: 0.75rem;
}
.hvl-sidebar-toc__list { list-style: none; }
.hvl-sidebar-toc__list li { margin-bottom: 0.35rem; }
.hvl-sidebar-toc__list a {
  font-size: 0.875rem;
  color: var(--text-b-light);
  text-decoration: none;
  transition: color 0.15s;
}
.hvl-sidebar-toc__list a:hover { color: var(--link-light); }
.hvl-sidebar-cta-card {
  background: var(--bg-dark);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}
.hvl-sidebar-cta-card__title {
  font-family: 'Epilogue', sans-serif;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-h-dark);
  margin-bottom: 0.65rem;
}
.hvl-sidebar-cta-card__text {
  font-size: 0.875rem;
  color: var(--text-b-dark);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.hvl-sidebar-cta-card .hvl-btn { width: 100%; justify-content: center; }

/* ===== DATA SECTION ===== */
.hvl-data-grid-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

/* ===== ACCURACY SECTION ===== */
.hvl-accuracy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.hvl-accuracy-body {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  margin-top: 1.5rem;
}
.hvl-accuracy-body p {
  font-size: 0.9375rem;
  color: var(--text-b-dark);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

/* ===== INTEGRATION SECTION ===== */
.hvl-integration-text {
  max-width: 600px;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
  text-align: center;
}
.hvl-integration-text h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--text-h-light);
  margin-bottom: 0.75rem;
}
.hvl-integration-text p {
  font-size: 1rem;
  color: var(--text-b-light);
  line-height: 1.65;
}
.hvl-bms-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.875rem;
  margin-bottom: 1.5rem;
}
.hvl-integration-note {
  font-size: 0.875rem;
  color: var(--text-m-light);
  text-align: center;
  margin-bottom: 2rem;
}
.hvl-integration-cta { text-align: center; }

/* ===== CUSTOMERS CTA ===== */
.hvl-customers-cta-wrap {
  text-align: center;
  max-width: 580px;
  margin: 0 auto;
}
.hvl-customers-cta-wrap h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 900;
  color: var(--text-h-dark);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.hvl-customers-cta-wrap p {
  font-size: 1rem;
  color: var(--text-b-dark);
  line-height: 1.65;
  margin-bottom: 2rem;
}

/* ===== ABOUT CTA ===== */
.hvl-about-cta-wrap {
  text-align: center;
  max-width: 580px;
  margin: 0 auto;
}
.hvl-about-cta-wrap h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 900;
  color: var(--text-h-dark);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.hvl-about-cta-wrap p {
  font-size: 1rem;
  color: var(--text-b-dark);
  line-height: 1.65;
  margin-bottom: 2rem;
}

/* ===== BLOG INDEX ===== */
.hvl-blog-hero {
  padding: calc(var(--nav-h) + 2.5rem) 0 3rem;
  background: var(--bg-light);
}
.hvl-blog-hero__inner {
  max-width: 680px;
}
.hvl-blog-hero__label { margin-bottom: 0.75rem; }
.hvl-blog-hero__title {
  font-family: 'Epilogue', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--text-h-light);
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
}
.hvl-blog-hero__sub {
  font-size: 1.0625rem;
  color: var(--text-b-light);
  line-height: 1.65;
}
.hvl-blog-grid-section {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: var(--bg-white);
}
.hvl-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

/* ===== RESPONSIVE PAGES ===== */
@media (max-width: 1024px) {
  .hvl-hero__inner { grid-template-columns: 1fr; }
  .hvl-hero { min-height: auto; }
  .hvl-hero__img { max-height: 360px; object-fit: cover; }

  .hvl-pipeline-grid { grid-template-columns: 1fr; }
  .hvl-pipeline-diagram { position: static; }

  .hvl-outputs-grid { grid-template-columns: 1fr; }
  .hvl-story-grid { grid-template-columns: 1fr; }
  .hvl-about-hero__grid { grid-template-columns: 1fr; }
  .hvl-how-core__grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .hvl-card-grid-3,
  .hvl-card-grid-4 { grid-template-columns: 1fr 1fr; }
  .hvl-card-grid-2 { grid-template-columns: 1fr; }
  .hvl-quotes-grid { grid-template-columns: 1fr; }
  .hvl-data-grid-6 { grid-template-columns: repeat(2, 1fr); }
  .hvl-accuracy-grid { grid-template-columns: 1fr; }
  .hvl-bms-grid { grid-template-columns: repeat(2, 1fr); }
  .hvl-contact-grid { grid-template-columns: 1fr; }
  .hvl-article-layout { grid-template-columns: 1fr; }
  .hvl-article-sidebar { position: static; }
  .hvl-blog-grid { grid-template-columns: repeat(2, 1fr); }
  .hvl-subhero__inner { grid-template-columns: 1fr; }
  .hvl-subhero__ornament { display: none; }
}

@media (max-width: 640px) {
  .hvl-card-grid-3,
  .hvl-card-grid-4 { grid-template-columns: 1fr; }
  .hvl-bms-grid { grid-template-columns: repeat(2, 1fr); }
  .hvl-data-grid-6 { grid-template-columns: 1fr; }
  .hvl-blog-grid { grid-template-columns: 1fr; }
  .hvl-contact-form-row { grid-template-columns: 1fr; }
  .hvl-hero__badges { flex-direction: column; }
}
