/* Published from Horyzon design kit — edit sources in horyzon-design-kit/, then sync. */

/* --- tokens/foundations.css --- */

/* Horyzon design kit — foundations.
   Raw brand samples from the approved ship visual language. Do not restyle. */
:root {
  /* Chromatic decorative palette */
  --horyzon-royal: #223a6a;
  --horyzon-cobalt: #6c96ec;
  --horyzon-violet: #9fa1e9;
  --horyzon-peach: #fcbf98;
  --horyzon-rose: #c67d9b;

  /* Neutrals used by the clone layout engine */
  --hz-neutral-light: #f3f3f3;
  --hz-neutral-dark: #212121;
  --hz-neutral-black: #000000;
  --hz-neutral-white: #ffffff;
  --hz-obsidian: #090b11;

  /* Type */
  --hz-font-sans: 'Satoshi', Arial, sans-serif;

  /* Spacing rhythm aliases (match Webflow clone tokens when present) */
  --hz-section-padding: 12em;
  --hz-section-padding-half: 6em;
  --hz-gap: 1.5em;
  --hz-container-ideal: 1440px;
  --hz-nav-bar-height: 7.5em;
}

/* --- tokens/semantics.css --- */

/* Horyzon design kit — semantic roles.
   Alias clean --hz-* names for OS / other apps. Clone skin keeps
   --horyzon-* and Webflow --color-* wiring unchanged below. */
:root {
  --hz-canvas: var(--hz-neutral-light);
  --hz-surface: var(--hz-neutral-white);
  --hz-text: var(--hz-neutral-dark);
  --hz-text-inverse: var(--hz-neutral-white);
  --hz-action: var(--hz-neutral-black);
  --hz-on-action: var(--hz-neutral-white);
  --hz-focus: var(--hz-neutral-dark);
  --hz-decorative-1: var(--horyzon-royal);
  --hz-decorative-2: var(--horyzon-cobalt);
  --hz-decorative-3: var(--horyzon-violet);
  --hz-decorative-4: var(--horyzon-peach);
  --hz-decorative-5: var(--horyzon-rose);
}

/* Clone Webflow primary → monochrome action (exact current behavior). */
:root:root {
  --color-ignore-primary: var(--color-black);
  --color-ignore-primary-dark: var(--color-black);
  --color-ignore-primary-light: var(--color-black);
  --color-ignore-rgb-primary: var(--color-rgb-black);
  --color-primary: var(--color-black);
  --color-primary-dark: var(--color-black);
  --color-primary-light: var(--color-black);
  --color-rgb-primary: var(--color-rgb-black);
}

[data-theme="dark"] {
  --hz-canvas: var(--hz-neutral-dark);
  --hz-surface: var(--hz-obsidian);
  --hz-text: var(--hz-neutral-light);
  --hz-text-inverse: var(--hz-neutral-black);
  --hz-action: var(--hz-neutral-white);
  --hz-on-action: var(--hz-neutral-black);
  --hz-focus: var(--hz-neutral-light);
}

/* --- components/pixel-grid.css --- */

/* Decorative pixel blocks — brand chromatic only. */
html .pixel-grid-pixel {
  background-color: var(--horyzon-royal);
  background-image:
    url('/brand/pixel-grain.svg'),
    linear-gradient(rgba(var(--color-rgb-light), .12), rgba(var(--color-rgb-light), .12));
  background-size: 96px 96px, auto;
  background-repeat: repeat, no-repeat;
  background-blend-mode: soft-light, normal;
}
html .pixel-grid-pixel:nth-child(5n + 2) { background-color: var(--horyzon-cobalt); }
html .pixel-grid-pixel:nth-child(5n + 3) { background-color: var(--horyzon-violet); }
html .pixel-grid-pixel:nth-child(5n + 4) { background-color: var(--horyzon-peach); }
html .pixel-grid-pixel:nth-child(5n) { background-color: var(--horyzon-rose); }

/* Homepage hero — color cluster above the heading (clear of the text) */
html .pixel-group__wrap.is--home-header {
  top: 0;
  left: 0;
  transform: translate(-10%, -110%);
  z-index: 0;
  pointer-events: none;
}

@media (max-width: 767px) {
  html .pixel-group__wrap.is--home-header {
    transform: translate(0%, -95%);
  }
}

/* --- components/skin.css --- */

/* Horyzon design kit — clone skin accents.
   Monochrome UI; decorative pixels live in pixel-grid.css. Tokens in foundations/semantics. */
/* Monochrome UI accents; only decorative pixels retain brand colors. */
html .arrow,
html .arrow-2,
html .arrow-3,
html .hamburger,
html .scaling-bg.is--primary,
html .arrow-inside.is--primary,
html .result-list__icon,
html .demand-circle__circle-single-tile,
html .compare__icon,
html .vimeo-player__btn,
html .vimeo-lightbox__btn,
html .single-tag,
html .single-tag-2,
html .floating-bar__icon,
html .timeline-year__square,
html .play-button,
html .filter-btn[data-filter-status="active"] .scaling-bg,
html [data-accordion-status] .scaling-bg,
html .plus .scaling-bg {
  background-image: none;
  background-color: var(--color-black);
  color: var(--color-white);
}
/* Burger bars used --color-ignore-dark (#212121) on a black shell — nearly invisible.
   Follow the shell’s text color so light = white bars, dark = black bars. */
html .hamburger__bar {
  background-color: currentColor;
}
/* Primary CTA shell/inset/hover live in button.css.
   Secondary + lightgray keep a light inset without the accent image. */
html .btn[data-btn-theme="lightgray"] .arrow {
  background-image: none;
  background-color: var(--color-light-tint);
}
html .btn-wrap.is--secondary .btn[data-btn-theme="primary"] .btn__bg {
  background-image: none;
  background-color: var(--color-light);
}
html .form-required { color: var(--color-dark); }
html .eyebrow__svg path,
html .eyebrow__svg-2 path,
html .eyebrow__svg-3 path,
html .timeline__leaf-svg path,
html .article-header__author-leaf-svg path,
html .job-info__leaf-svg path { fill: var(--color-dark); }

/* Rich-text list bullets: same brandmark as page-label eyebrows; theme-aware. */
html .rich ul li::before {
  width: 1.05em;
  height: 0.55em;
  top: 0.45em;
  background: none;
  background-color: var(--color-dark);
  -webkit-mask: url('/brand/horyzon-brandmark-mask.svg') center / contain no-repeat;
  mask: url('/brand/horyzon-brandmark-mask.svg') center / contain no-repeat;
}
html .arrow .arrow__box,
html .arrow-2 .arrow__box,
html .arrow-3 .arrow__box {
  color: var(--color-white);
}
html .arrow .arrow__box svg [stroke="currentColor"] { stroke: currentColor; }
/* lightgray inset icons (primary icons come from button.css) */
html .btn[data-btn-theme="lightgray"] .arrow .arrow__box {
  color: var(--color-dark);
}
html .speaker__cover-image.border-green {
  border-color: var(--color-dark);
  border-image: none;
}
.vimeo-player, .vimeo-lightbox {
  --timeline-dot-color: var(--color-black);
  --progress-fill-bg: var(--color-black);
}
::selection { background-color: var(--color-dark); color: var(--color-light); }
::-moz-selection { background-color: var(--color-dark); color: var(--color-light); }
html .btn-wrap.is--secondary .btn[data-btn-theme="primary"] .btn__text {
  color: var(--color-dark);
}

/* Dark surfaces: invert primary CTAs for contrast.
   Theme tokens (not raw #fff/#000) so dark mode reverses with --color-*.
   Covers contact/modals/newsletters/dark tiles, careers cta-quote, and any
   block that uses a direct .scaling-bg.is--dark backdrop. */
html .contact-form .btn[data-btn-theme="primary"] .btn__bg,
html .modal__scroll .btn[data-btn-theme="primary"] .btn__bg,
html .newsletter-form__tile .btn[data-btn-theme="primary"] .btn__bg,
html .blog-newsletter__tile .btn[data-btn-theme="primary"] .btn__bg,
html .service-info-blocks__tile.is--dark .btn[data-btn-theme="primary"] .btn__bg,
html .sticky-video__tile.is--dark .btn[data-btn-theme="primary"] .btn__bg,
html .cta-quote__cta .btn[data-btn-theme="primary"] .btn__bg,
html .footer-info__tile .btn[data-btn-theme="primary"] .btn__bg,
html .program-slider__content .btn[data-btn-theme="primary"] .btn__bg,
html :has(> .scaling-bg.is--dark) .btn[data-btn-theme="primary"] .btn__bg {
  background-color: var(--color-white);
  background-image: none;
}

html .contact-form .btn[data-btn-theme="primary"] .btn__text,
html .modal__scroll .btn[data-btn-theme="primary"] .btn__text,
html .newsletter-form__tile .btn[data-btn-theme="primary"] .btn__text,
html .blog-newsletter__tile .btn[data-btn-theme="primary"] .btn__text,
html .service-info-blocks__tile.is--dark .btn[data-btn-theme="primary"] .btn__text,
html .sticky-video__tile.is--dark .btn[data-btn-theme="primary"] .btn__text,
html .cta-quote__cta .btn[data-btn-theme="primary"] .btn__text,
html .footer-info__tile .btn[data-btn-theme="primary"] .btn__text,
html .program-slider__content .btn[data-btn-theme="primary"] .btn__text,
html :has(> .scaling-bg.is--dark) .btn[data-btn-theme="primary"] .btn__text {
  color: var(--color-black);
}

/* On dark tiles: invert shell vs page primary, but keep stable inset hover (button.css contract). */
html .contact-form .btn[data-btn-theme="primary"],
html .modal__scroll .btn[data-btn-theme="primary"],
html .newsletter-form__tile .btn[data-btn-theme="primary"],
html .blog-newsletter__tile .btn[data-btn-theme="primary"],
html .service-info-blocks__tile.is--dark .btn[data-btn-theme="primary"],
html .sticky-video__tile.is--dark .btn[data-btn-theme="primary"],
html .cta-quote__cta .btn[data-btn-theme="primary"],
html .footer-info__tile .btn[data-btn-theme="primary"],
html .program-slider__content .btn[data-btn-theme="primary"],
html :has(> .scaling-bg.is--dark) .btn[data-btn-theme="primary"] {
  --hz-btn-shell: var(--color-white);
  --hz-btn-on-shell: var(--color-black);
  --hz-btn-inset: var(--color-black);
  --hz-btn-on-inset: var(--color-white);
}

/* Cookie dialog is always a true dark panel — keep absolute contrast. */
html .horyzon-consent .btn[data-btn-theme="primary"] .btn__bg {
  background-color: #fff;
  background-image: none;
}
html .horyzon-consent .btn[data-btn-theme="primary"] .btn__text {
  color: #000;
}
html .horyzon-consent .btn[data-btn-theme="primary"] .arrow {
  background-color: #000;
  background-image: none;
}
html .horyzon-consent .btn[data-btn-theme="primary"] .arrow .arrow__box,
html .horyzon-consent .btn[data-btn-theme="primary"] .arrow .arrow__box.is--duplicate {
  color: #fff;
}

/* Pair foregrounds with their surfaces. These tokens invert together in dark
   mode; fixed dark text from the reference styles must not override them. */
html .filter-btn[data-filter-status="active"] {
  color: var(--color-white);
}

/* Category pills keep the same white/black pair in both page themes. */
html .single-tag,
html .single-tag-2 {
  background-color: #fff;
  color: #000;
}

html .single-tag .single-tag__text,
html .single-tag-2 .single-tag__text {
  color: #000;
}

html .btn[data-btn-theme="lightgray"] .arrow .arrow__box.is--duplicate,
html .btn.is--toc .arrow .arrow__box.is--duplicate {
  color: var(--color-light);
}

html [data-accordion-status] .faq__bar,
html .plus .plus__bar,
html .plus .plus__bar-copy,
html .plus-static:has(.scaling-bg.is--primary) .plus-static__bar {
  background-color: var(--color-white);
}

/* Plus tiles switch to a neutral surface on hover in the original motion. */
html [data-hover]:hover .plus .plus__bar,
html [data-hover]:hover .plus .plus__bar-copy {
  background-color: var(--color-dark);
}

html .accordion-css__item-p {
  color: var(--color-dark);
}

html .btn:focus-visible,
html .filter-btn:focus-visible {
  outline: 2px solid var(--color-dark);
  outline-offset: 4px;
}

/* Subtle page grain; brand artwork retains its own texture strength. */
html .floating-elements-main > .noise,
html .footer-tile > .noise {
  opacity: .28;
}

/* Results card arrows keep contrast against their theme-aware primary tile. */
html .card-results .arrow-inside.is--primary .arrow-pixel {
  color: var(--color-white);
}

/* Keep the copyright together beside the legal links. */
html .footer-info__p.is--copyright {
  flex-shrink: 0;
  white-space: nowrap;
}
html .footer-info__col-copyright {
  width: auto;
  flex: 1 1 auto;
}

/* Footer brand mark: light on the dark footer tile, dark when the theme flips. */
html .footer-info__logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
html .footer-info__logo {
  display: block;
  width: min(16em, 100%);
  height: auto;
  filter: brightness(0) invert(1);
}
html body[data-theme="dark"] .footer-info__logo {
  filter: none;
}

/* Align the approach heading with the top of its supporting-copy row. */
html .home-results .home-results__col-title {
  align-self: flex-start;
}

/* Existing button components, grouped for the hero audience choice. */
.horyzon-hero-choices {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  width: max-content;
  max-width: min(760px, 90vw);
}
html .horyzon-hero-choices .btn-wrap { margin: 0; }
@media (max-width: 767px) {
  .horyzon-hero-choices { width: 100%; max-width: 100%; align-items: flex-start; flex-direction: column; }
}

/* Native button elements must not paint a second surface behind the component. */
html .horyzon-hero-choices button.btn {
  background: transparent;
  border: 0;
  box-shadow: none;
}

/* Keep the animated arrow layers inside one clean rounded square. */
html .horyzon-hero-choices .arrow,
html .horyzon-hero-choices .arrow__bg,
html .horyzon-hero-choices .arrow__box {
  border: 0;
  box-shadow: none;
}
html .horyzon-hero-choices .arrow {
  clip-path: inset(0 round .25em);
  background-clip: padding-box;
}

/* Hero choices inherit the shared primary button contract from button.css. */

/* --- components/home-hero.css --- */

/* Homepage hero — keep original structure (space-between + element placement).
   Only: smaller headline, wider headline measure, even outer inset. */

html body:not(.password-gate-page) .home-header__content {
  /* Original layout stays: space-between, same gaps — just more even outer padding */
  padding-top: calc(var(--header-padding, 12em) + 1.25em);
  padding-bottom: calc(var(--gap-l, 3em) + 1.25em);
  padding-inline: clamp(1.5rem, 4.5vw, 3.5rem);
  box-sizing: border-box;
}

/* Noticeably larger than the prior ~66px hero scale */
html body:not(.password-gate-page) .home-header .h1 {
  font-size: clamp(3.75rem, 7.5vw, 6.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: none;
}

html body:not(.password-gate-page) .home-header__row-title {
  max-width: 88em; /* original */
}

@media (max-width: 991px) {
  html body:not(.password-gate-page) .home-header .h1 {
    font-size: clamp(3.1rem, 8vw, 5rem);
  }
}

@media (max-width: 767px) {
  html body:not(.password-gate-page) .home-header__content {
    padding-top: calc(var(--header-padding, 8em) + 0.5em);
    padding-bottom: calc(var(--gap-l, 2em) + 0.75em);
    padding-inline: 1.25rem;
  }

  html body:not(.password-gate-page) .home-header .h1 {
    font-size: clamp(2.6rem, 10.5vw, 3.6rem);
  }
}

/* Hide legacy Webflow brand badge if the runtime tries to inject it */
.w-webflow-badge {
  display: none !important;
}
