/* =====================================================================
   HGN — Section compositions (hero, intro, products, why, CTA,
   inner-page heroes, shared section heads, split layouts)
   ===================================================================== */

/* ===== Shared section head ===== */
.section-head { max-width: 40ch; margin-bottom: clamp(2.4rem, 1.6rem + 3vw, 4rem); }
.section-head .eyebrow { margin-bottom: 1rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--wide { max-width: 56ch; }

/* ===== HERO ===== */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--teal-900);
  padding-top: clamp(8.5rem, 7rem + 6vw, 12rem);
  padding-bottom: clamp(2rem, 1rem + 3vw, 3.5rem);
  min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: center; flex: 1;
}
.hero__copy { max-width: 36ch; }
.hero__title {
  font-size: calc(var(--step-7) * 0.75); line-height: 0.98; letter-spacing: var(--tracking-tighter);
  margin: 1.2rem 0 1.4rem;
}
.hero__title em { font-style: italic; font-weight: 380; color: var(--teal-300); }
.hero__sub { max-width: 46ch; color: var(--on-dark-soft); }
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }

/* hero visual cluster */
.hero__visual { position: relative; display: grid; gap: 1.2rem; justify-items: end; }
.hero-card {
  width: min(100%, 23rem); border-radius: var(--radius-lg); padding: 1.3rem 1.4rem;
  background: color-mix(in srgb, var(--teal-850) 80%, transparent);
  border: 1px solid var(--line-dark); backdrop-filter: blur(8px);
  box-shadow: var(--shadow-lg); will-change: transform;
}
.hero-card--of { transform: translateX(-2.5rem); }
.hero-card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.1rem; }
.hero-card__meta { font-family: var(--font-mono); font-size: var(--step--2); color: var(--on-dark-mute); }
.hero-card__cap { font-size: var(--step--2); color: var(--on-dark-mute); margin-top: 1rem; }
.hero-card .wave { height: 44px; }
.hero-card .wave span { width: 5px; }

.hero-flow { display: grid; gap: .75rem; }
.hero-flow li { display: flex; align-items: center; gap: .7rem; font-size: var(--step--1); color: var(--on-dark-soft); }
.hero-flow .d { width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--on-dark-mute); flex: none; }
.hero-flow .is-done { color: var(--on-dark); }
.hero-flow .is-done .d { background: var(--azure); border-color: var(--azure); }
.hero-flow .is-active .d { border-color: var(--azure); box-shadow: 0 0 0 4px color-mix(in srgb,var(--azure) 28%,transparent); animation: pulse-dot 1.8s infinite; }

/* hero foot */
.hero__foot { position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-top: clamp(2.5rem, 2rem + 3vw, 4.5rem); flex-wrap: wrap; }
.hero__metrics { display: flex; gap: clamp(1.6rem, 1rem + 3vw, 3.5rem); align-items: flex-end; flex-wrap: wrap; }
.metric { display: flex; flex-direction: column; }
.metric .stat__num { color: var(--on-dark); }
.metric--text { max-width: 16ch; border-left: 1px solid var(--line-dark); padding-left: 1.2rem; }
.metric--text .stat__label { font-size: var(--step--1); color: var(--on-dark-soft); }
.hero__metrics .stat__label { color: var(--on-dark-mute); }

.hero__scroll { display: inline-flex; flex-direction: column; align-items: center; gap: .7rem; font-family: var(--font-mono); font-size: var(--step--2); letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-mute); }
.hero__scroll-line { width: 1px; height: 42px; background: linear-gradient(var(--on-dark-mute), transparent); position: relative; overflow: hidden; }
.hero__scroll-line::after { content: ""; position: absolute; top: -50%; left: 0; width: 1px; height: 50%; background: var(--lime); animation: scroll-cue 2s var(--ease-in-out) infinite; }
@keyframes scroll-cue { 0% { top: -50%; } 60%,100% { top: 100%; } }

/* ===== INTRO ===== */
.intro__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: end; margin-top: 1.5rem; }
.intro__lead { font-size: calc(var(--step-4) * 0.75); line-height: 1.08; letter-spacing: var(--tracking-tight); max-width: 18ch; }
.intro__body { align-self: end; }

/* ===== PRODUCTS ===== */
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); }
.product-card__visual { display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 7%, var(--paper)); border: 1px solid color-mix(in srgb,var(--accent) 14%,transparent); }
.product-card__visual--sv .wave { height: 80px; color: var(--ember); }
.product-card__visual--sv .wave span { width: 6px; }
.of-flow { display: flex; align-items: center; gap: 0; width: 100%; padding: 0 clamp(1rem,3vw,2.4rem); justify-content: space-between; }
.of-flow li { display: flex; flex-direction: column; align-items: center; gap: .6rem; font-size: var(--step--2); color: var(--text-mute); position: relative; flex: 1; }
.of-flow li:not(:last-child)::after { content: ""; position: absolute; top: 7px; left: 50%; width: 100%; height: 2px; background: var(--hairline); z-index: 0; }
.of-flow li.is-done:not(:last-child)::after { background: var(--azure); }
.of-flow .d { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--hairline); background: var(--paper); position: relative; z-index: 1; }
.of-flow .is-done { color: var(--text); }
.of-flow .is-done .d { background: var(--azure); border-color: var(--azure); }
.of-flow .is-active .d { border-color: var(--azure); box-shadow: 0 0 0 4px color-mix(in srgb,var(--azure) 25%,transparent); }

/* ===== WHY ===== */
.why { position: relative; overflow: hidden; }   /* clip the decorative .mesh (inset -20%) */
.why__head { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: end; margin-bottom: clamp(2.5rem, 2rem + 3vw, 4rem); }
.why__head h2 { max-width: 14ch; }
.why__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--gutter); }
.why-item { padding: 2rem; border-radius: var(--radius-lg); border: 1px solid var(--line-dark); background: color-mix(in srgb, var(--teal-850) 50%, transparent); transition: transform .5s var(--ease-out), border-color .4s, background .4s; }
.why-item:hover { transform: translateY(-6px); border-color: color-mix(in srgb,var(--teal-300) 40%,transparent); background: color-mix(in srgb, var(--teal-850) 80%, transparent); }
.why-item__ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; color: var(--lime); background: color-mix(in srgb,var(--lime) 12%,transparent); margin-bottom: 1.4rem; }
.why-item__ic svg { width: 26px; height: 26px; }
.why-item h3 { font-size: var(--step-1); margin-bottom: .6rem; }
.why-item p { color: var(--on-dark-soft); font-size: var(--step--1); }

/* ===== CTA band ===== */
.cta-band { text-align: center; background: var(--teal-900); }
.cta-band__content { max-width: 44ch; margin-inline: auto; }
.cta-band .eyebrow { margin-bottom: 1.1rem; }
.cta-band__title { font-size: calc(var(--step-4) * 0.75); margin: 0 0 1.3rem; }
.cta-band__content > p { color: var(--on-dark-soft); font-size: var(--step-0); line-height: 1.55; max-width: 50ch; margin-inline: auto; }
.cta-band__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: clamp(2rem, 1.4rem + 1.2vw, 2.8rem); }

/* ===== Inner page hero (shared by products/sonivera/orflo/about/work/contact) ===== */
.page-hero { background: var(--teal-900); color: var(--on-dark); position: relative; overflow: hidden; isolation: isolate; padding-bottom: clamp(4rem, 3rem + 4vw, 7rem); }
.page-hero .breadcrumb { color: var(--on-dark-mute); margin-bottom: 2rem; }
.page-hero .breadcrumb a { color: var(--on-dark-soft); }
.page-hero__inner { position: relative; z-index: 1; max-width: 62rem; }
.page-hero h1 { font-size: calc(var(--step-5) * 0.75); line-height: 1.04; margin: 1.5rem 0 1.8rem; }
.page-hero__sub { font-size: var(--step-1); line-height: 1.5; color: var(--on-dark-soft); max-width: 56ch; }
.page-hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: clamp(2.4rem, 1.8rem + 1.5vw, 3.4rem); }

/* ===== Generic two-column split ===== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.split--text { grid-template-columns: 0.85fr 1.15fr; align-items: start; }
.split__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }

/* problem / what statement block */
.statement { max-width: 30ch; }
.statement-body { font-size: var(--step-1); line-height: 1.5; color: var(--text-soft); max-width: 56ch; }

/* feature grid (cards) */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: var(--gutter); }
/* work-with-us "what you get": fixed 3-up (3x2) that collapses on smaller screens */
.feature-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1000px) { .feature-grid--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px)  { .feature-grid--3 { grid-template-columns: 1fr; } }

/* two even columns that collapse on mobile (OrFlo key features) */
.feature-cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); }
@media (max-width: 760px) { .feature-cols { grid-template-columns: 1fr; } }

/* feature group (sonivera key features) */
.feature-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gutter); }
.feature-group { padding: clamp(1.4rem, 1rem + 1.5vw, 2.2rem); border-radius: var(--radius-lg); border: 1px solid var(--hairline); background: var(--surface); }
.feature-group__head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.feature-group__head .ic-tile { margin-bottom: 0; } /* inline icon: keep right gap, drop bottom so it stays centered with the heading */
.feature-group h3 { font-size: var(--step-1); }
.feature-group ul { display: grid; gap: .9rem; }
.feature-group li { color: var(--text-soft); font-size: var(--step--1); padding-left: 1.6rem; position: relative; }
.feature-group li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* audience grid */
.audience { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem,1fr)); gap: 1rem; }
.audience li { display: flex; align-items: center; gap: .9rem; padding: 1.2rem 1.3rem; border-radius: var(--radius); border: 1px solid var(--hairline); background: var(--surface); font-weight: 500; transition: transform .4s var(--ease-out), border-color .3s; }
.audience li:hover { transform: translateY(-4px); border-color: color-mix(in srgb,var(--accent) 40%,var(--hairline)); }
.audience li .ic-tile { width: 40px; height: 40px; border-radius: 11px; margin-bottom: 0; }
.audience li .ic-tile svg { width: 20px; height: 20px; }

/* big quote / stat row for inner pages */
.statline { font-family: var(--font-display); font-size: var(--step-3); line-height: 1.2; letter-spacing: var(--tracking-tight); max-width: 22ch; }

/* team grid */
.team-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--gutter); }

/* remote-professional experiences */
.exp-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: var(--gutter); }

/* contact layout */
.contact-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: start; }
.contact-aside { display: grid; gap: 1rem; align-content: start; }
.contact-aside .card { padding: 1.3rem 1.4rem; }
.aside-card { display: flex; gap: 1rem; align-items: flex-start; }
.aside-card .ic-tile { width: 42px; height: 42px; flex: none; }

/* ===== Responsive ===== */
@media (max-width: 1000px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { justify-items: start; margin-top: 1rem; max-width: 30rem; }
  .hero-card--of { transform: none; }
  .why__grid { grid-template-columns: 1fr; }
  .why__head { grid-template-columns: 1fr; }
  .feature-groups { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .hero { min-height: auto; padding-bottom: 3rem; }
  .intro__grid { grid-template-columns: 1fr; align-items: start; }
  .product-grid { grid-template-columns: 1fr; }
  .split, .split--text { grid-template-columns: 1fr; }
  .hero__foot { flex-direction: column; align-items: flex-start; gap: 2rem; }
  .hero__scroll { display: none; }
  .team-grid { grid-template-columns: 1fr; }
  .exp-grid { grid-template-columns: 1fr; }
  .page-hero h1 { font-size: calc(var(--step-4) * 0.75); }
  .contact-grid { grid-template-columns: 1fr; }
}
