/* src/styles/hexona.css */
/* ==========================================================================
   HEXONA SYSTEMS - Obsidienne global stylesheet
   Target: Instatic CMS. Every class is prefixed hx-.
   Colour comes only from the CMS custom properties:
   --obsidian --abyss --slate --line --ice --fog --fog-dim
   --electric --mint --amber
   Raw hex appears nowhere. rgba() is used only for scrims derived from
   obsidian (11,15,20). Tints use color-mix() on the tokens.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Local layout variables (no colour here, tokens only live in the CMS)
   -------------------------------------------------------------------------- */
:root {
  --hx-container: 1200px;
  --hx-gutter: 24px;
  --hx-radius: 14px;
  --hx-radius-lg: 22px;
  --hx-pill: 999px;
  --hx-font-display: "Clash Display", "Space Grotesk", system-ui, sans-serif;
  --hx-font-body: "Satoshi", "Inter", system-ui, sans-serif;
  --hx-font-mono: "Space Mono", ui-monospace, "SFMono-Regular", monospace;
  --hx-ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --hx-nav-h: 64px;
}

/* --------------------------------------------------------------------------
   2. Reset touches
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--obsidian);
  color: var(--fog);
  font-family: var(--hx-font-body);
  font-weight: 400;
  font-size: clamp(17px, 0.95rem + 0.2vw, 19px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; background: none; border: 0; }

h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

/* One visible focus treatment for the whole site. */
:focus-visible {
  outline: 2px solid var(--electric);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   3. Type scale. Clash Display 400 for headings, Satoshi for body,
      Space Mono for real figures only.
   -------------------------------------------------------------------------- */
.hx-h1,
.hx-h2,
.hx-h3 {
  font-family: var(--hx-font-display);
  color: var(--ice);
  letter-spacing: -0.01em;
  font-weight: 400;
  text-wrap: balance;
}

.hx-h1 { font-size: clamp(40px, 5.4vw, 72px); line-height: 1.05; }
.hx-h2 { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.05; }
.hx-h3 { font-size: clamp(22px, 1.6vw, 26px); line-height: 1.2; font-weight: 500; }

.hx-lead {
  font-size: clamp(17px, 0.95rem + 0.3vw, 20px);
  line-height: 1.6;
  color: var(--fog);
  max-width: 70ch;
}

.hx-measure { max-width: 70ch; }

.hx-muted { color: var(--fog-dim); font-size: 14px; line-height: 1.6; }

.hx-figure {
  font-family: var(--hx-font-mono);
  font-variant-numeric: tabular-nums;
}

/* Section kicker. Sentence case, no tracking, mint. */
.hx-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5em;
  font-family: var(--hx-font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--mint);
  margin-bottom: 14px;
}

.hx-kicker__note { color: var(--fog-dim); font-weight: 400; }
.hx-kicker__note::before { content: "\00b7"; margin-right: 0.5em; color: var(--line); }

/* Small outlined pill, used for the hero badge. */
.hx-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: var(--hx-pill);
  color: var(--electric);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  background: color-mix(in srgb, var(--electric) 7%, transparent);
}

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */
.hx-container {
  width: 100%;
  max-width: var(--hx-container);
  margin-inline: auto;
  padding-inline: var(--hx-gutter);
}

.hx-section { padding-block: 72px; background: var(--obsidian); }
.hx-section--alt { background: var(--abyss); }
.hx-section--tight { padding-block: 48px; }
.hx-section--flush-top { padding-top: 0; }

.hx-section__head { max-width: 70ch; margin-bottom: 40px; }
.hx-section__head .hx-lead { margin-top: 16px; }

.hx-main { display: block; }

.hx-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
/* Grid and flex children need this or long words stop them shrinking. */
.hx-grid > *, .hx-footer__col, .hx-metric { min-width: 0; }

.hx-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 12px 18px;
  background: var(--slate);
  color: var(--ice);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
}
.hx-skip:focus { left: 16px; top: 16px; }

.hx-vh {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.hx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: var(--hx-pill);
  font-family: var(--hx-font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s var(--hx-ease);
}

.hx-btn svg { width: 17px; height: 17px; flex: none; }

.hx-btn--primary { background: var(--electric); color: var(--obsidian); border: 1px solid var(--electric); }
.hx-btn--primary:hover { background: color-mix(in srgb, var(--electric) 86%, var(--ice)); transform: translateY(-1px); }

.hx-btn--ghost { border: 1px solid var(--line); color: var(--ice); background: transparent; }
.hx-btn--ghost:hover { border-color: var(--electric); color: var(--electric); }

.hx-btn--mint { background: var(--mint); color: var(--obsidian); border: 1px solid var(--mint); }
.hx-btn--mint:hover { background: color-mix(in srgb, var(--mint) 86%, var(--ice)); transform: translateY(-1px); }

.hx-btn--sm { padding: 10px 18px; font-size: 14px; }
.hx-btn--block { width: 100%; }

/* Inline text link with a nudging arrow. */
.hx-linkarrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--electric);
  font-size: 14px;
  font-weight: 500;
}
.hx-arrow { transition: transform 0.2s var(--hx-ease); }
.hx-linkarrow:hover .hx-arrow { transform: translateX(4px); }

/* Button that has to read as a footer link. */
.hx-linkbtn { cursor: pointer; color: inherit; padding: 0; }
.hx-linkbtn:hover { color: var(--electric); }

/* --------------------------------------------------------------------------
   6. Header, nav, dropdowns, mobile menu
   -------------------------------------------------------------------------- */
.hx-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--obsidian) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

/* Utility strip */
.hx-nav__utility { border-bottom: 1px solid var(--line); background: var(--abyss); }
.hx-nav__utility .hx-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 34px;
}
.hx-nav__utility-group { display: flex; align-items: center; gap: 18px; }

.hx-nav__util {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--fog-dim);
  transition: color 0.2s ease;
}
.hx-nav__util svg { width: 13px; height: 13px; flex: none; }
.hx-nav__util:hover { color: var(--electric); }
.hx-nav__util--mail { display: none; }
.hx-nav__util--wa:hover { color: var(--mint); }
.hx-nav__util--phone span { font-family: var(--hx-font-mono); font-size: 12px; }

/* Main bar */
.hx-nav__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: var(--hx-nav-h);
  transition: height 0.25s var(--hx-ease);
}
.hx-nav.is-scrolled .hx-nav__bar { height: 56px; }

.hx-logo { display: inline-flex; align-items: center; flex: none; }
.hx-logo { gap: 10px; text-decoration: none; }
.hx-logo__word { display: flex; flex-direction: column; line-height: 1; }
.hx-logo__name { font-family: var(--hx-font-display); font-weight: 500; font-size: 20px; letter-spacing: 0.02em; color: var(--ice); }
.hx-logo__sub { font-family: var(--hx-font-body); font-weight: 500; font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--mint); margin-top: 3px; }
.hx-logo img { height: 40px; width: auto; transition: height 0.25s var(--hx-ease); }
.hx-nav.is-scrolled .hx-logo img { height: 34px; }

.hx-nav__links { display: none; align-items: center; gap: 26px; }

.hx-nav__link {
  font-size: 15px;
  font-weight: 500;
  color: var(--fog);
  transition: color 0.2s ease;
}
.hx-nav__link:hover { color: var(--electric); }

.hx-nav__item { position: relative; }

.hx-nav__trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
  color: var(--fog);
  cursor: pointer;
  transition: color 0.2s ease;
}
.hx-nav__trigger:hover { color: var(--electric); }
.hx-nav__chevron { width: 15px; height: 15px; transition: transform 0.22s var(--hx-ease); }
.hx-nav__item.is-open .hx-nav__chevron { transform: rotate(180deg); }
.hx-nav__item.is-open .hx-nav__trigger { color: var(--electric); }

/* Dropdown panel. The 10px top padding bridges the gap so hover survives. */
.hx-drop {
  position: absolute;
  left: 0;
  top: 100%;
  padding-top: 12px;
  min-width: 320px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s var(--hx-ease), visibility 0.18s;
}
.hx-nav__item.is-open .hx-drop { opacity: 1; visibility: visible; transform: none; }

.hx-drop__inner {
  background: var(--slate);
  border: 1px solid var(--line);
  border-radius: var(--hx-radius);
  padding: 8px;
  box-shadow: 0 18px 40px rgba(11, 15, 20, 0.55);
}

.hx-drop__link {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  transition: background-color 0.18s ease;
}
.hx-drop__link:hover { background: color-mix(in srgb, var(--electric) 9%, transparent); }

.hx-drop__title { display: block; font-size: 14.5px; font-weight: 500; color: var(--ice); }
.hx-drop__desc { display: block; margin-top: 3px; font-size: 13px; line-height: 1.45; color: var(--fog-dim); }

.hx-drop__all { border-bottom: 1px solid var(--line); border-radius: 10px 10px 0 0; margin-bottom: 6px; }
.hx-drop__all .hx-drop__title { color: var(--electric); }

.hx-nav__actions { display: flex; align-items: center; gap: 10px; flex: none; }
.hx-nav__cta { display: none; }

.hx-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: var(--hx-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--ice);
  cursor: pointer;
}
.hx-menu-btn svg { width: 16px; height: 16px; }
.hx-menu-btn:hover { border-color: var(--electric); color: var(--electric); }

/* Mobile panel */
.hx-mobile {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--abyss);
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}
.hx-mobile.is-open { display: block; }
.hx-mobile__inner { display: flex; flex-direction: column; padding-block: 12px; }

.hx-mobile__link {
  padding: 13px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--ice);
  border-bottom: 1px solid var(--line);
}
.hx-mobile__link:hover { color: var(--electric); }

.hx-mobile__group { border-bottom: 1px solid var(--line); }
.hx-mobile__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--ice);
  cursor: pointer;
  list-style: none;
}
.hx-mobile__summary::-webkit-details-marker { display: none; }
.hx-mobile__summary svg { width: 16px; height: 16px; transition: transform 0.22s var(--hx-ease); }
.hx-mobile__group[open] .hx-mobile__summary svg { transform: rotate(180deg); }

.hx-mobile__sub { display: flex; flex-direction: column; padding: 0 0 12px 14px; gap: 2px; }
.hx-mobile__sublink { padding: 9px 0; font-size: 15px; color: var(--fog); }
.hx-mobile__sublink:hover { color: var(--electric); }

.hx-mobile__cta { margin-top: 16px; }

/* --------------------------------------------------------------------------
   7. Le Substrat containers (WebGL field) and the hero
   -------------------------------------------------------------------------- */
.hx-substrat {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.hx-substrat canvas { width: 100%; height: 100%; display: block; }
.hx-substrat--band { opacity: 0.6; }

.hx-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(560px, 82vh, 780px);
  padding-block: 64px;
  background: var(--obsidian);
  overflow: hidden;
}

.hx-hero__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
/* The poster holds the hero until the field is mounted, then steps aside.
   substrat-3d.js stamps data-substrat-ready="1" on the canvas host. */
.hx-hero__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  transition: opacity 0.8s ease;
}
.hx-hero__bg:has([data-substrat-ready="1"]) .hx-hero__poster { opacity: 0.12; }

/* Left scrim so the copy stays readable over any frame of the field. */
.hx-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(11, 15, 20, 0.92) 0%, rgba(11, 15, 20, 0.7) 45%, rgba(11, 15, 20, 0.55) 100%);
}

.hx-hero__inner { position: relative; z-index: 2; width: 100%; }
.hx-hero__content { max-width: 680px; }
.hx-hero .hx-h1 { margin-top: 18px; }
.hx-hero__lead { margin-top: 20px; }
.hx-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hx-hero__note { margin-top: 18px; font-size: 14px; color: var(--fog-dim); max-width: 60ch; }
.hx-hero__partners { margin-top: 22px; font-size: 13px; color: var(--fog-dim); }

/* --------------------------------------------------------------------------
   8. Leaf page header band
   -------------------------------------------------------------------------- */
.hx-pagehead {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--obsidian);
  padding-block: 56px 48px;
  border-bottom: 1px solid var(--line);
}
.hx-pagehead__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(11, 15, 20, 0.86) 0%, rgba(11, 15, 20, 0.94) 100%);
}
.hx-pagehead__inner { position: relative; z-index: 2; max-width: 70ch; }
.hx-pagehead .hx-h1 { margin-top: 14px; }
.hx-pagehead__lead { margin-top: 18px; }

.hx-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--fog-dim); }
.hx-crumbs a:hover { color: var(--electric); }
.hx-crumbs__sep { color: var(--line); }
.hx-crumbs__current { color: var(--fog); }

/* --------------------------------------------------------------------------
   9. Cards and tilt
   -------------------------------------------------------------------------- */
.hx-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 26px 24px;
  background: var(--slate);
  border: 1px solid var(--line);
  border-radius: var(--hx-radius);
  transition: border-color 0.25s ease;
}
.hx-card:hover { border-color: color-mix(in srgb, var(--electric) 40%, var(--line)); }

.hx-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  color: var(--electric);
  background: color-mix(in srgb, var(--electric) 8%, transparent);
}
.hx-card__icon svg { width: 22px; height: 22px; }

.hx-card__title { margin-top: 18px; }
.hx-card__text { margin-top: 10px; font-size: 15px; line-height: 1.6; color: var(--fog); flex: 1; }
.hx-card__link { margin-top: 18px; }

.hx-tilt { display: flex; perspective: 900px; }
.hx-tilt__inner {
  flex: 1;
  transform-style: preserve-3d;
  transition: transform 0.45s var(--hx-ease);
  will-change: transform;
}
.hx-tilt.is-tilting .hx-tilt__inner { transition: transform 0.08s linear; }

/* --------------------------------------------------------------------------
   10. Method steps (a real sequence, so the numbers are legitimate)
   -------------------------------------------------------------------------- */
.hx-steps { display: grid; gap: 32px; grid-template-columns: 1fr; counter-reset: hx-step; }
.hx-step { padding-top: 20px; border-top: 1px solid var(--line); }
.hx-step__num {
  display: block;
  font-family: var(--hx-font-mono);
  font-size: 13px;
  color: var(--electric);
  margin-bottom: 12px;
}
.hx-step__title { margin-bottom: 8px; }
.hx-step__text { font-size: 15px; line-height: 1.6; color: var(--fog); max-width: 46ch; }

/* --------------------------------------------------------------------------
   11. Metrics and testimonial
   -------------------------------------------------------------------------- */
.hx-proof { display: grid; gap: 40px; grid-template-columns: 1fr; align-items: center; }

.hx-metrics { display: grid; gap: 28px 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hx-metric__value {
  display: block;
  font-family: var(--hx-font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1;
  color: var(--electric);
  white-space: nowrap;
}
.hx-metric__label { display: block; margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--fog); }

.hx-quote {
  padding: 28px 26px;
  background: var(--slate);
  border: 1px solid var(--line);
  border-radius: var(--hx-radius);
}
.hx-quote__stars { color: var(--mint); font-size: 16px; letter-spacing: 5px; }
.hx-quote__text { margin-top: 16px; font-size: 16px; line-height: 1.65; color: var(--ice); }
.hx-quote__source { margin-top: 16px; font-size: 13px; color: var(--fog-dim); }
.hx-quote__source a { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line); }
.hx-quote__source a:hover { color: var(--electric); text-decoration-color: var(--electric); }

/* --------------------------------------------------------------------------
   12. FAQ accordion, built on <details>
   -------------------------------------------------------------------------- */
.hx-faq { display: flex; flex-direction: column; gap: 12px; max-width: 80ch; }

.hx-faq__item {
  background: var(--slate);
  border: 1px solid var(--line);
  border-radius: var(--hx-radius);
  overflow: hidden;
}
.hx-faq__item--alert { border-color: color-mix(in srgb, var(--amber) 50%, var(--line)); border-left: 3px solid var(--amber); }

.hx-faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ice);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.hx-faq__q::-webkit-details-marker { display: none; }
.hx-faq__q:hover { color: var(--electric); }

.hx-faq__icon { width: 20px; height: 20px; flex: none; color: var(--fog-dim); transition: transform 0.22s var(--hx-ease); }
.hx-faq__item[open] .hx-faq__icon { transform: rotate(180deg); color: var(--electric); }

.hx-faq__a { padding: 0 22px 20px; font-size: 15px; line-height: 1.65; color: var(--fog); max-width: 70ch; }

/* --------------------------------------------------------------------------
   13. CTA banner
   -------------------------------------------------------------------------- */
.hx-ctabanner { padding-block: 72px; background: var(--obsidian); }

.hx-ctabanner__inner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--hx-radius-lg);
  padding: 44px 26px;
  text-align: center;
  background: linear-gradient(135deg, var(--obsidian) 0%, var(--abyss) 55%, var(--slate) 100%);
}

.hx-ctabanner__glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
  background:
    radial-gradient(45% 60% at 18% 28%, color-mix(in srgb, var(--mint) 32%, transparent) 0%, transparent 62%),
    radial-gradient(45% 60% at 82% 72%, color-mix(in srgb, var(--electric) 36%, transparent) 0%, transparent 62%);
}

.hx-ctabanner__mesh {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
}

.hx-ctabanner__content { position: relative; z-index: 1; }
.hx-ctabanner__accent { color: var(--mint); }
.hx-ctabanner__text { margin: 16px auto 0; max-width: 46ch; font-size: 16px; color: var(--fog); }
.hx-ctabanner .hx-btn { margin-top: 28px; }
.hx-ctabanner__links {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 18px;
  font-size: 14px;
  color: var(--fog-dim);
}
.hx-ctabanner__links a { text-decoration: underline; text-underline-offset: 3px; }
.hx-ctabanner__links a:hover { color: var(--ice); }

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */
.hx-footer { border-top: 1px solid var(--line); background: var(--abyss); padding-block: 56px 32px; }

.hx-footer__top { max-width: 46ch; margin-bottom: 44px; }
.hx-footer__lockup { display: inline-flex; flex-direction: column; line-height: 1; }
.hx-footer__wordmark { font-family: var(--hx-font-display); font-size: 20px; font-weight: 500; color: var(--ice); letter-spacing: 0.02em; }
.hx-footer__sub { margin-top: 4px; font-size: 13px; font-weight: 500; color: var(--fog-dim); letter-spacing: 0.12em; }
.hx-footer__tagline { margin-top: 14px; font-size: 15px; color: var(--fog); }

.hx-footer__cols { display: grid; gap: 34px; grid-template-columns: 1fr; margin-bottom: 40px; }
.hx-footer__heading { font-size: 13.5px; font-weight: 500; color: var(--ice); margin-bottom: 14px; }
.hx-footer__heading a:hover { color: var(--electric); }
.hx-footer__list { display: flex; flex-direction: column; gap: 9px; font-size: 14px; color: var(--fog); }
.hx-footer__list a { transition: color 0.18s ease; }
.hx-footer__list a:hover { color: var(--electric); }

.hx-footer__contact { display: inline-flex; align-items: center; gap: 9px; }
.hx-footer__contact svg { width: 14px; height: 14px; flex: none; }
.hx-footer__contact--phone span { font-family: var(--hx-font-mono); font-size: 13px; }
.hx-footer__contact--wa:hover { color: var(--mint); }

.hx-footer__address {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.6;
  color: var(--fog-dim);
}
.hx-footer__oncall { color: var(--electric); font-weight: 500; }

.hx-footer__legal {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--fog-dim);
}
.hx-footer__legal-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.hx-footer__legal-links a:hover { color: var(--electric); }
.hx-footer__sep { color: var(--line); }

/* --------------------------------------------------------------------------
   15. Cookie bar
   -------------------------------------------------------------------------- */
.hx-cookie {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--abyss) 96%, transparent);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.hx-cookie[hidden] { display: none; }
.hx-cookie__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding-block: 16px;
}
.hx-cookie__text { font-size: 14px; line-height: 1.6; color: var(--fog); max-width: 80ch; }
.hx-cookie__text a { color: var(--electric); text-decoration: underline; text-underline-offset: 3px; }
.hx-cookie__actions { display: flex; gap: 10px; flex: none; }

/* --------------------------------------------------------------------------
   16. Prose block for legal and editorial pages
   -------------------------------------------------------------------------- */
.hx-prose { max-width: 70ch; color: var(--fog); font-size: 17px; line-height: 1.7; }
.hx-prose h2 {
  font-family: var(--hx-font-display);
  font-weight: 400;
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ice);
  margin-top: 48px;
  margin-bottom: 14px;
}
.hx-prose h3 {
  font-family: var(--hx-font-display);
  font-weight: 500;
  font-size: clamp(20px, 1.6vw, 23px);
  line-height: 1.25;
  color: var(--ice);
  margin-top: 32px;
  margin-bottom: 10px;
}
.hx-prose > :first-child { margin-top: 0; }
.hx-prose p { margin-bottom: 18px; }
.hx-prose ul, .hx-prose ol { margin: 0 0 18px; padding-left: 22px; }
.hx-prose ul { list-style: disc; }
.hx-prose ol { list-style: decimal; }
.hx-prose li { margin-bottom: 8px; }
.hx-prose li::marker { color: var(--fog-dim); }
.hx-prose a { color: var(--electric); text-decoration: underline; text-underline-offset: 3px; }
.hx-prose strong { color: var(--ice); font-weight: 500; }

/* --------------------------------------------------------------------------
   17. Contact layout
   -------------------------------------------------------------------------- */
.hx-contact { display: grid; gap: 40px; grid-template-columns: 1fr; align-items: start; }
.hx-contact__cards { display: grid; gap: 16px; grid-template-columns: 1fr; }

.hx-infocard {
  padding: 22px;
  background: var(--slate);
  border: 1px solid var(--line);
  border-radius: var(--hx-radius);
}
.hx-infocard__label { font-size: 13px; color: var(--mint); font-weight: 500; }
.hx-infocard__value { display: inline-flex; align-items: center; gap: 9px; margin-top: 8px; font-size: 17px; color: var(--ice); }
.hx-infocard__value svg { width: 17px; height: 17px; flex: none; color: var(--electric); }
.hx-infocard__value--figure { font-family: var(--hx-font-mono); font-size: 16px; }
.hx-infocard a.hx-infocard__value:hover { color: var(--electric); }
.hx-infocard__note { margin-top: 8px; font-size: 13.5px; line-height: 1.6; color: var(--fog-dim); }

.hx-aside {
  padding: 24px;
  background: var(--abyss);
  border: 1px solid var(--line);
  border-radius: var(--hx-radius);
}
.hx-aside__title { margin-bottom: 12px; }
.hx-aside p { font-size: 15px; color: var(--fog); margin-bottom: 12px; }

.hx-map {
  aspect-ratio: 4 / 3;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--hx-radius);
  overflow: hidden;
  background: var(--slate);
}
.hx-map img, .hx-map iframe { width: 100%; height: 100%; border: 0; object-fit: cover; }

/* --------------------------------------------------------------------------
   18. Motion. One orchestrated hero sequence, one reveal per heading.
        Hidden states only apply once the script has flagged the document,
        so a JS failure leaves everything visible.
   -------------------------------------------------------------------------- */
@keyframes hx-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hx-rise { animation: hx-rise 0.5s var(--hx-ease) both; animation-delay: calc(var(--i, 0) * 90ms + 60ms); }

.hx-js .hx-reveal { transform: translateY(14px); transition: transform 0.6s var(--hx-ease); }
.hx-js .hx-reveal.is-in { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hx-rise { animation: none; }
  .hx-js .hx-reveal { opacity: 1; transform: none; transition: none; }
  .hx-tilt__inner { transform: none !important; transition: none; }
  .hx-btn:hover { transform: none; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
}

/* --------------------------------------------------------------------------
   19. Breakpoints
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
  :root { --hx-gutter: 40px; }

  .hx-section { padding-block: 104px; }
  .hx-section--tight { padding-block: 64px; }
  .hx-ctabanner { padding-block: 104px; }

  .hx-grid { gap: 22px; }
  .hx-grid--2 { grid-template-columns: repeat(2, 1fr); }
  .hx-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .hx-grid--4 { grid-template-columns: repeat(2, 1fr); }

  .hx-steps { grid-template-columns: repeat(3, 1fr); gap: 28px; }

  .hx-nav__util--mail { display: inline-flex; }

  .hx-hero { padding-block: 80px; }
  .hx-hero__scrim {
    background: linear-gradient(90deg, rgba(11, 15, 20, 0.94) 0%, rgba(11, 15, 20, 0.78) 38%, rgba(11, 15, 20, 0.2) 70%, rgba(11, 15, 20, 0) 100%);
  }

  .hx-pagehead { padding-block: 72px 60px; }

  .hx-ctabanner__inner { padding: 64px 48px; }

  .hx-footer { padding-block: 72px 32px; }
  .hx-footer__cols { grid-template-columns: repeat(2, 1fr); gap: 36px 32px; }
  .hx-footer__legal { flex-direction: row; align-items: center; justify-content: space-between; gap: 20px; }

  .hx-cookie__inner { flex-direction: row; align-items: center; gap: 24px; }
  .hx-cookie__text { flex: 1; }

  .hx-contact { grid-template-columns: 1.15fr 0.85fr; gap: 48px; }
  .hx-contact__cards { grid-template-columns: repeat(2, 1fr); }

  .hx-proof { grid-template-columns: 1.1fr 0.9fr; gap: 56px; }
}

@media (min-width: 960px) {
  .hx-section { padding-block: 120px; }
  .hx-ctabanner { padding-block: 120px; }

  .hx-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .hx-grid--4 { grid-template-columns: repeat(4, 1fr); }

  .hx-nav__links { display: flex; }
  .hx-nav__cta { display: inline-flex; }
  .hx-menu-btn { display: none; }
  .hx-mobile { display: none !important; }

  .hx-footer__cols { grid-template-columns: repeat(4, 1fr); gap: 40px 28px; }
}

/* ---- page components added by the page authors (IA) ---- */
/* ==========================================================================
   HEXONA SYSTEMS - additions for the accelerators, why-us and case-study
   pages. Everything hexona.css already covers stays in hexona.css. Only the
   components that stylesheet has no class for live here.
   Same contract: hx- prefix, flat selectors, CMS tokens only, mobile first.
   ========================================================================== */

/* Eyebrow inside the leaf page header, between the breadcrumb and the h1.
   The h1 brings its own 14px top margin, so this only opens the gap above. */
.hx-pagehead__kicker { margin-top: 20px; margin-bottom: 0; }

/* The single reassurance line under the leaf lead. Body font, never mono:
   it is a sentence, not a figure. */
.hx-proofline {
  margin-top: 20px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  max-width: 62ch;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--electric);
}
.hx-proofline svg { width: 16px; height: 16px; flex: none; margin-top: 3px; }

/* A reading column for a single wide card that would otherwise run the whole
   1200px container. Left aligned so it lines up with the section head. */
.hx-narrow { max-width: 860px; }

/* A .hx-prose block nested inside a card needs the top margin the card's own
   text class would have given it. */
.hx-prosebox { margin-top: 16px; }

/* Closing note inside a card, separated by a hairline. */
.hx-cardnote {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ice);
}

/* Wrapped row of short items: partner names, a project stack. Pair it with
   .hx-pill on each child. */
.hx-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

/* Founder portrait. Capped so a tall crop cannot dominate the two column row. */
.hx-founder__photo {
  width: 100%;
  max-width: 280px;
  height: auto;
  border-radius: 12px;
}

.hx-founder__role {
  margin-top: 8px;
}

/* Column labels in the two column comparison. */
.hx-compare__label {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ice);
}
.hx-compare__label--us { color: var(--mint); }

/* ---- (IT) ---- */
/* ==========================================================================
   HEXONA SYSTEMS - additions for the Services IT hub and its five leaves.
   Everything hexona.css already covers stays in hexona.css. Only the
   components that stylesheet has no class for live here.
   Same contract: hx- prefix, flat selectors, CMS tokens only, mobile first.

   NOTE: both rules below are also declared, byte for byte, in extra-ia.css
   (the accelerators pages need the same two components). Keep one copy at
   merge time; they are identical, so load order does not matter.
   ========================================================================== */

/* Eyebrow inside the leaf page header, between the breadcrumb and the h1.
   The h1 brings its own 14px top margin, so this only opens the gap above. */
/* The single reassurance line under the leaf lead. Body font, never mono:
   it is a sentence, not a figure. */

/* ---- (contact / insights / legal) ---- */
/* --------------------------------------------------------------------------
   extra-misc.css
   Components hexona.css does not carry yet. Tokens only, flat selectors,
   mobile first. Load after hexona.css.
   -------------------------------------------------------------------------- */

/* Centred, dashed card for an empty or coming soon state.
   Used by /fr/insights/ while the journal has no published article. */
.hx-emptycard {
  max-width: 640px;
  margin-inline: auto;
  align-items: center;
  text-align: center;
  border-style: dashed;
}

/* The one infocard that carries the primary action. Spans the card grid so
   the booking path reads before the written channels. */
.hx-infocard--lead {
  grid-column: 1 / -1;
}

/* Button sitting at the foot of an infocard. */
.hx-infocard__action {
  margin-top: 16px;
}
