/* HEI Business Consultancy: industrial look over the services-site editorial layout */

/* Blueprint grid behind the hero, very faint */
.hero {
  background-image:
    linear-gradient(rgba(44, 92, 152, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(44, 92, 152, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: -1px -1px;
}

/* Brushed steel under the dark closing band */
.cta-panel {
  background-image:
    linear-gradient(rgba(15, 39, 71, 0.9), rgba(15, 39, 71, 0.94)),
    url("custom/steel-texture.webp");
  background-size: cover;
  background-position: center;
}

/* Page-hero bands on inner pages get the same grid */
.page-hero {
  background-image:
    linear-gradient(rgba(44, 92, 152, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(44, 92, 152, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: -1px -1px;
}

/* Engineering feel on photos: a fine outer rule and a deep soft shadow */
.hero-media,
.cta-media,
.wide-img,
.about-photo {
  box-shadow: 0 0 0 1px rgba(19, 32, 46, 0.12), 0 18px 40px -22px rgba(15, 39, 71, 0.55);
}

/* Review portraits keep their 4:5 shape instead of stretching tall */
.review-photo {
  align-self: flex-start;
}

/* Long industrial words must never push a phone screen sideways */
.svc-row { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.svc-row-body, .svc-row h2, .svc-grid h3, .cases h3 { min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
.row-actions .btn { max-width: 100%; white-space: normal; text-align: center; }
@media (max-width: 860px) {
  .svc-row { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .svc-row h2 { font-size: clamp(22px, 7vw, 28px); }
}

/* Quotes carry no star ratings: the firm publishes no review score */
.review .stars { display: none; }

/* Trust row reads like a plant register */
.trust {
  letter-spacing: 0.02em;
}

/* Small uppercase line above the hero headline (her site's "RETHINK GROWTH THE THIRD WAY") */
.eyebrow-line {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

/* Editorial hero pins its parts to fixed grid rows; the eyebrow takes row 1, so every row moves down one */
[data-layout="editorial"] .hero .eyebrow-line { grid-column: 1 / -1; grid-row: 1; }
[data-layout="editorial"] .hero h1 { grid-row: 2; }
[data-layout="editorial"] .hero .lede { grid-column: 1; grid-row: 3; }
[data-layout="editorial"] .hero-actions { grid-row: 3; }
[data-layout="editorial"] .hero .guarantee { grid-row: 4; }
[data-layout="editorial"] .hero-proof { grid-row: 5; }

/* About page: the Third Way story sits where the timeline was */
[data-r="third-way"] p { margin: 0 0 1rem; line-height: 1.65; color: var(--muted); }

/* Logo colours variant: the brand mark wears the logo yellow with the dark letter, like the HEI wordmark */
.mark, [data-layout="editorial"] .mark { background: var(--accent-2); color: var(--accent-2-ink); }
[data-layout="editorial"] .brand-light .mark { background: var(--accent-2); color: var(--accent-2-ink); }

/* Her real logo in the header and footer */
.brand-logo { display: block; height: 58px; width: auto; background: transparent; }
.brand-light .brand-logo { height: 64px; background: #fff; padding: 10px 14px; border-radius: var(--r-sm); box-sizing: content-box; }
@media (max-width: 720px) { .brand-logo { height: 46px; } }


/* ---------- v3 (2026-11-09 call) ---------- */
/* Finder: a one-line intro under the question, and a "right for you if" line above each route */
.finder-intro { margin: -8px 0 20px; color: var(--muted); font-size: 16px; }
.finder-fit { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px 14px; border-radius: var(--r-sm); background: var(--wash-2); color: var(--ink); font-weight: 500; }
.finder-fit .ico-sm { flex: none; margin-top: 3px; color: var(--accent); }

/* Services: investor support reads as an add-on to decarbonisation */
.svc-tag { display: inline-block; margin-bottom: 6px; font: 600 12px/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; font-style: normal; color: var(--accent-text); }
.svc-line.svc-addon .svc-tag { background: var(--accent-2); color: var(--accent-2-ink); padding: 5px 8px; border-radius: 6px; }
.svc-row.svc-addon .stage { background: var(--accent-2); color: var(--accent-2-ink); }

/* Free guide: home teaser and Insights page */
.guide-teaser { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: center; }
.guide-cover { aspect-ratio: 3 / 4; max-width: 340px; width: 100%; justify-self: center; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-2); padding: 32px 28px; display: grid; align-content: space-between; }
.guide-cover img { width: 70%; height: auto; background: transparent; }
.guide-cover p { margin: 0; font: 700 clamp(1.25rem, 1.8vw, 1.6rem)/1.2 var(--f-head); color: var(--deep); letter-spacing: -0.01em; }
.guide-copy .btn .ico-sm, .optin-card .btn .ico-sm { margin-right: 8px; }
.guide-block { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: start; }
.optin-card h3 { margin: 0 0 18px; font-size: 1.35rem; }
.optin-card .form { display: grid; gap: 16px; }
.pub-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.pub { padding: 24px; border: 1.5px solid var(--line); border-radius: var(--r-md); }
.pub-meta { margin: 0 0 6px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-text); font-weight: 600; }
.pub h3 { margin: 0 0 6px; font-size: 1.3rem; }
.pub h3 a { color: inherit; }
.pub-empty { margin-top: 16px; padding: 24px; border: 1.5px dashed var(--line-strong); border-radius: var(--r-md); color: var(--muted); }
@media (max-width: 900px) { .guide-teaser, .guide-block { grid-template-columns: 1fr; gap: 32px; } .guide-cover { max-width: 260px; } }

.optin-card .check { display: flex; gap: 10px; align-items: flex-start; }
.optin-card .check input { margin-top: 4px; flex: none; }

/* ---------- Live hero: the photo pans like a slow drone shot and the plant lights glow and flicker softly ----------
   .hl-stage keeps the photo's own 3:2 shape and covers the frame, so every layer lines up in photo percentages. */
.hero-visual .hero-media.hero-live { position: relative; overflow: hidden; border-radius: var(--r-lg); height: clamp(360px, 40vw, 560px); container-type: size; isolation: isolate; background: #1c2633; }
.hl-stage { position: absolute; left: 50%; top: 50%; width: max(100cqw, 150cqh); aspect-ratio: 3 / 2; transform: translate(-50%, -58%) scale(1.16); transform-origin: 58% 62%; animation: hl-pan 22s ease-in-out infinite alternate; will-change: transform; }
@keyframes hl-pan {
  from { transform: translate(-50%, -58%) scale(1.15) translate(5%, 1.2%); }
  to   { transform: translate(-50%, -58%) scale(1.22) translate(-5%, -1.6%); }
}
.hero-visual .hero-media.hero-live img { position: absolute; display: block; max-width: none; border-radius: 0; background: transparent; animation: none; object-fit: fill; }
.hero-visual .hero-media.hero-live .hl-base { inset: 0; width: 100%; height: 100%; }
.hl-lights { position: absolute; inset: 0; pointer-events: none; }
.hl-lights span { position: absolute; width: var(--sz); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 240, 205, .95) 0, rgba(255, 196, 100, .6) 22%, rgba(255, 165, 60, .24) 46%, rgba(255, 160, 50, 0) 70%);
  mix-blend-mode: screen; opacity: .6; animation: hl-glow var(--d) ease-in-out var(--dl) infinite alternate; }
/* plant lights: every lamp pulses; about 1 in 4 flickers with smooth (not stepped) dips */
@keyframes hl-glow { from { opacity: var(--lo); } to { opacity: var(--hi); } }
.hl-lights span.f { animation: hl-dip var(--d) ease-in-out var(--dl) infinite; }
@keyframes hl-dip { 0%, 100% { opacity: .95; } 40% { opacity: .9; } 46% { opacity: .2; } 50% { opacity: .85; } 55% { opacity: .35; } 62% { opacity: .95; } 80% { opacity: .6; } }
@media (max-width: 980px) { .hero-visual .hero-media.hero-live { height: 460px; } }
@media (max-width: 640px) { .hero-visual .hero-media.hero-live { height: auto; aspect-ratio: 1 / 1; } }
@media (prefers-reduced-motion: reduce) {
  .hl-stage { animation: none; transform: translate(-50%, -58%) scale(1.1); }
  .hl-lights span { animation: none; opacity: .4; }
}

/* ---------- Borders: a full border or none, never one side (David, 2026-11-09) ----------
   Lines that only divided things are gone (spacing does that job now). Items that read as separate blocks get a full card border. */
.site-header, .site-header.scrolled, .mega-all, .drawer, .drawer > a:not(.btn), .drawer summary, .hero-proof, .finder-ask, .finder-foot,
.svc-list, .ticks li, .case-out, .area-list a, .page-hero, .result-note, .visit-list li, .foot-base, .book-head, .book-foot, .callbar {
  border-top: 0; border-right: 0; border-bottom: 0; border-left: 0;
}
.callbar { box-shadow: 0 -8px 24px color-mix(in srgb, var(--ink) 10%, transparent); }
.ticks li { padding: 8px 0; }
.case-out { padding: 6px 0; }
.svc-list { display: grid; gap: 12px; }
.svc-line { border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 22px 24px; }
.steps li { border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 22px; background: var(--surface); }
.faq, .faq:first-child { border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 0 22px; margin-bottom: 12px; background: var(--surface); }
.offer, .value { border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 20px 22px; margin-bottom: 12px; }
@media (max-width: 860px) { .svc-line { padding: 18px; } }

/* One person in Leadership: a wide card, photo/initials left, text right */
.team:has(> .person:only-of-type) { grid-template-columns: minmax(0, 760px); }
.person:only-of-type { display: grid; grid-template-columns: 72px 1fr; column-gap: 24px; align-items: start; }
.person:only-of-type .avatar { grid-row: 1 / span 3; }
.person:only-of-type > :not(.avatar) { grid-column: 2; }
