/* Rislix 08e: Home. Loaded after styles.css. Blocks the old site's Home copy needs that 8c had no
   pattern for, built from 8c's own tokens. Classes are prefixed hx-. */

/* ---------- R-Trax dropdown in the header (until the shared shell is stamped) ---------- */
.nav .nav-dd { position: relative; }
.nav .nav-dd > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 2px 0 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.nav .nav-sub {
  position: absolute; top: calc(100% + 12px); left: -14px; min-width: 210px;
  flex-direction: column; align-items: stretch; gap: 0; padding: 8px; border-radius: 12px;
  background: var(--night); color: var(--ink-l);
  box-shadow: 0 0 0 1px var(--line-l), 0 24px 48px -24px rgba(0, 0, 0, .6);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .2s, transform .25s var(--ease-out), visibility 0s .25s;
}
.nav .nav-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.nav .nav-dd:hover > .nav-sub, .nav .nav-dd:focus-within > .nav-sub { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .25s var(--ease-out); }
.nav .nav-sub a:not(.btn) { display: block; padding: 9px 12px; border-radius: 8px; background: none; white-space: nowrap; }
.nav .nav-sub a:not(.btn):hover { background: rgba(255, 255, 255, .08); }
.site-head[data-tone="day"] .nav .nav-sub { background: var(--day); color: var(--ink-d); box-shadow: 0 0 0 1px var(--line-d), 0 24px 48px -24px rgba(16, 32, 48, .45); }
.site-head[data-tone="day"] .nav .nav-sub a:not(.btn):hover { background: rgba(16, 32, 48, .06); }
@media (min-width: 1120.02px) { .nav #nav-list { gap: clamp(10px, 1.25vw, 22px); } .nav a:not(.btn) { white-space: nowrap; font-size: .9375rem; } .nav .btn { white-space: nowrap; } }
@media (max-width: 1120px) {
  .nav #nav-list { max-height: calc(100vh - var(--head-h)); overflow-y: auto; }
  .nav .nav-dd > a::after { display: none; }
  .nav .nav-sub, .site-head[data-tone="day"] .nav .nav-sub {
    position: static; min-width: 0; padding: 0 0 0 16px; border-radius: 0;
    background: none; color: inherit; box-shadow: none;
    opacity: 1; visibility: visible; transform: none; transition: none;
  }
  .nav .nav-sub::before { content: none; }
  .nav .nav-sub a:not(.btn) { padding: 12px 0; border-radius: 0; font-size: 1rem; border-bottom: 1px solid var(--line-l); }
  .nav .nav-sub a:not(.btn):hover { background: none; }
}

/* ---------- shared bits ---------- */
.hx-hl { font-style: normal; color: var(--verd-d); }
[data-tone="night"] .hx-hl { color: var(--lantern); }
.hx-eyebrow, .sec-head .hx-eyebrow, .rt-head .hx-eyebrow { margin: 0 0 12px; font-size: .9375rem; font-weight: 600; color: var(--verd-d); }
[data-tone="night"] .hx-eyebrow { color: var(--lantern); }
.hx-h2 { font-family: var(--display); font-weight: 500; font-size: clamp(1.6rem, 2.8vw, 2.4rem); line-height: 1.1; letter-spacing: -.02em; max-width: 22ch; }
.hx-p { margin-top: 16px; max-width: 54ch; color: var(--ink-d-soft); }
[data-tone="night"] .hx-p { color: var(--ink-l-soft); }
.hx-more { display: inline-block; margin-top: 6px; font-weight: 600; color: var(--verd-d); text-underline-offset: 4px; text-decoration-thickness: 1px; }
.hx-more:hover { color: var(--ink-d); }
.hx-center-cta { margin-top: clamp(36px, 5vw, 56px); text-align: center; }
.hx-js .hx-rv { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.hx-js .hx-rv.in { opacity: 1; transform: none; }

/* ---------- hero: the disciplines under the buttons ---------- */
.hx-disc { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 6px 0; max-width: 46ch; font-size: .9375rem; color: var(--ink-l-soft); }
.hx-disc li:not(:last-child)::after { content: ""; display: inline-block; width: 4px; height: 4px; margin: 0 12px; border-radius: 50%; background: var(--lantern); vertical-align: middle; }

/* ---------- industries: the scene title links ---------- */
.hx-scene-a { text-decoration: none; }
.hx-scene-a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* ---------- services: the long name under each short one ---------- */
.role dt small { display: block; margin-top: 6px; font-family: var(--sans); font-size: .9375rem; font-weight: 500; letter-spacing: 0; line-height: 1.4; color: var(--ink-d-soft); }
.role dd .hx-more { display: block; }

/* ---------- about (night) ---------- */
.hx-about {
  position: relative; overflow: hidden; color: var(--ink-l); padding: clamp(80px, 10vw, 140px) 0;
  background: radial-gradient(120% 90% at 85% 0%, #1B3A58 0%, var(--night) 60%);
}
.hx-about-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hx-feats { margin-top: 32px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; padding-top: 24px; border-top: 1px solid var(--line-l); }
.hx-feats h3 { font-family: var(--display); font-weight: 600; font-size: 1.2rem; line-height: 1.15; }
.hx-feats p { margin-top: 8px; color: var(--ink-l-soft); font-size: .9375rem; }
.hx-about-cta { margin-top: 32px; }
.hx-why {
  padding: clamp(24px, 3vw, 36px); border: 1px solid var(--line-l); border-radius: 18px;
  background: linear-gradient(160deg, rgba(45, 76, 102, .45), rgba(15, 29, 46, .25));
}
.hx-why h3 { font-family: var(--display); font-weight: 600; font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.1; }
.hx-ticks { margin-top: 18px; display: grid; gap: 12px; }
.hx-ticks li { position: relative; padding-left: 30px; }
.hx-ticks li::before { content: ""; position: absolute; left: 3px; top: .42em; width: 14px; height: 8px; border-left: 2px solid var(--lantern); border-bottom: 2px solid var(--lantern); transform: rotate(-45deg); }
.hx-stats { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line-l); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hx-stats div { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.hx-stats dd { font-family: var(--display); font-weight: 600; font-size: clamp(1.9rem, 3vw, 2.5rem); line-height: 1; color: var(--lantern); font-variant-numeric: tabular-nums; }
.hx-stats dt { margin-top: 8px; font-size: .875rem; line-height: 1.35; color: var(--ink-l-soft); }
@media (max-width: 900px) {
  .hx-about-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .hx-feats { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- differentiators: sentences on the 8c hub ---------- */
.hx-diff h3 { font-family: var(--display); font-size: 1.05rem; font-weight: 600; color: var(--ink-d); }
.hx-diff li {
  max-width: 34ch; padding: 14px 16px; border-radius: 14px; text-align: left;
  font-family: var(--sans); font-weight: 400; font-size: .9375rem; line-height: 1.5; color: var(--ink-d-soft);
}
.hx-diff li:hover { color: var(--ink-d); }
.hx-core-logo { width: 118px; height: auto; margin-inline: auto; }

/* ---------- engagement: a 30-minute clock for the first step ---------- */
.hx-clock {
  position: relative; width: min(100%, 300px); padding: 26px; border-radius: 12px;
  background: var(--paper); color: var(--ink-d); box-shadow: 0 30px 60px -22px rgba(0, 0, 0, .6);
}
.hx-clock svg { width: 100%; height: auto; }
.hx-c-face { fill: #fff; stroke: var(--line-d); stroke-width: 1.5; }
.hx-c-ticks { stroke: var(--ink-d-soft); stroke-width: 1.6; stroke-linecap: round; }
.hx-c-arc { fill: none; stroke: var(--lantern); stroke-width: 7; stroke-linecap: round; opacity: .85; }
.hx-c-hand { stroke: var(--ink-d); stroke-width: 3; stroke-linecap: round; }
.hx-c-min { stroke-width: 2; }
.hx-c-pin { fill: var(--lantern-d); }
.track.js .hx-c-arc { stroke-dasharray: 1; stroke-dashoffset: 1; }
.track.js .stage.is-on .hx-c-arc { stroke-dashoffset: 0; transition: stroke-dashoffset 2.2s var(--ease) .3s; }
.track.js .hx-c-min { transform-origin: 60px 60px; transform: rotate(-180deg); }
.track.js .stage.is-on .hx-c-min { transform: none; transition: transform 2.2s var(--ease) .3s; }
.track-rail ol { line-height: 1.3; }
.track .hx-eyebrow { margin-bottom: 10px; }

/* ---------- still confused: contact form ---------- */
.hx-ct { padding: clamp(80px, 10vw, 140px) 0; background: var(--paper); }
.hx-ct-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hx-ct-mail { margin-top: 22px; }
.hx-ct-mail a { font-family: var(--display); font-weight: 600; font-size: clamp(1.15rem, 1.8vw, 1.4rem); text-decoration-thickness: 1px; text-underline-offset: 5px; }
.hx-form-card {
  border-radius: 16px; background: #fff; padding: clamp(22px, 3vw, 36px);
  box-shadow: 0 0 0 1px rgba(16, 32, 48, .08), 0 40px 80px -40px rgba(16, 32, 48, .45);
}
.hx-form { display: grid; gap: 22px; }
.hx-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 20px; }
.hx-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hx-field label { font-weight: 600; line-height: 1.35; }
.hx-req { color: #9E2F28; }
.hx-field input, .hx-field textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid rgba(16, 32, 48, .32); border-radius: 10px;
  background: #fff; color: var(--ink-d); font: inherit; transition: border-color .2s, box-shadow .2s;
}
.hx-field textarea { resize: vertical; min-height: 128px; line-height: 1.5; }
.hx-field input:hover, .hx-field textarea:hover { border-color: var(--ink-d-soft); }
.hx-field input:focus-visible, .hx-field textarea:focus-visible { outline: 3px solid var(--verd-d); outline-offset: 1px; }
@media (max-width: 900px) { .hx-ct-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .hx-row { grid-template-columns: minmax(0, 1fr); } }

/* ---------- threat landscape (night) ---------- */
.hx-threat { position: relative; overflow: hidden; padding: clamp(80px, 10vw, 140px) 0; background: var(--night); color: var(--ink-l); }
.hx-threat::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line-l) 1px, transparent 1px), linear-gradient(90deg, var(--line-l) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 50%, #000 15%, transparent 70%);
  mask-image: radial-gradient(ellipse at 70% 50%, #000 15%, transparent 70%);
}
.hx-threat-grid { position: relative; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.hx-tl { display: grid; gap: 14px; }
.hx-tl li {
  padding: 22px 24px; border: 1px solid var(--line-l); border-radius: 18px;
  background: linear-gradient(160deg, rgba(45, 76, 102, .45), rgba(15, 29, 46, .25));
}
.hx-tl-n { font-family: var(--display); font-weight: 600; font-size: clamp(2.2rem, 3.6vw, 3rem); line-height: 1; color: var(--lantern); font-variant-numeric: tabular-nums; }
.hx-tl li > p:last-child { margin-top: 10px; color: var(--ink-l-soft); font-size: .9375rem; }
.hx-meter { display: block; margin-top: 14px; height: 6px; border-radius: 6px; overflow: hidden; background: var(--line-l); }
.hx-meter i { display: block; height: 100%; width: calc(var(--v) * 100%); border-radius: inherit; background: var(--lantern); transform-origin: left; }
.hx-js .hx-rv .hx-meter i { transform: scaleX(0); }
.hx-js .hx-rv.in .hx-meter i { transform: none; transition: transform 1.4s var(--ease) .2s; }
@media (max-width: 900px) { .hx-threat-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- testimonials ---------- */
.hx-quotes { padding: clamp(80px, 10vw, 140px) 0; background: var(--day); }
.hx-q-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.hx-q {
  height: 100%; margin: 0; display: flex; flex-direction: column; gap: 20px; padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line-d); border-radius: 18px; background: #fff;
  box-shadow: 0 1px 3px rgba(16, 32, 48, .06);
}
.hx-q blockquote { margin: 0; flex: 1; }
.hx-q blockquote p { font-family: var(--display); font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.45; }
.hx-q blockquote p::before { content: "\201C"; display: block; height: .55em; margin-bottom: 8px; font-size: 3rem; line-height: 1; color: var(--lantern); }
.hx-q figcaption { padding-top: 16px; border-top: 1px solid var(--line-d); font-size: .9375rem; color: var(--ink-d-soft); }
.hx-q figcaption b { color: var(--ink-d); font-weight: 650; }
@media (max-width: 760px) { .hx-q-list { grid-template-columns: minmax(0, 1fr); } }

/* ---------- FAQ ---------- */
.hx-faq { padding: clamp(80px, 10vw, 140px) 0; background: var(--paper); }
.hx-faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 6vw, 100px); align-items: start; }
.hx-faq-list { border-top: 1px solid var(--ink-d); }
.hx-faq-list details { border-bottom: 1px solid var(--line-d); }
.hx-faq-list summary {
  position: relative; list-style: none; cursor: pointer; padding: 20px 44px 20px 0;
  font-family: var(--display); font-weight: 500; font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.25; transition: color .3s;
}
.hx-faq-list summary::-webkit-details-marker { display: none; }
.hx-faq-list summary::before, .hx-faq-list summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 16px; height: 2px; margin-top: -1px; border-radius: 2px;
  background: currentColor; transition: transform .3s var(--ease);
}
.hx-faq-list summary::after { transform: rotate(90deg); }
.hx-faq-list details[open] summary::after { transform: rotate(0deg); }
.hx-faq-list summary:hover { color: var(--verd-d); }
.hx-faq-list details p { padding: 0 44px 22px 0; max-width: 62ch; color: var(--ink-d-soft); }
.hx-faq-more { margin-top: 24px; color: var(--ink-d-soft); }
.hx-faq-more a { color: var(--verd-d); font-weight: 600; text-underline-offset: 4px; text-decoration-thickness: 1px; }
@media (max-width: 900px) { .hx-faq-grid { grid-template-columns: minmax(0, 1fr); } .hx-faq .sec-head { margin-bottom: 8px; } }

/* ---------- latest insights (on the 8c R-Trax band) ---------- */
.hx-ins .rt-head h2 { max-width: none; }
.hx-ins-list li { align-content: start; padding-bottom: 4px; }
.hx-ins-list b { line-height: 1.25; font-size: 1.1rem; }
.hx-ins-meta { font-size: .8125rem; color: var(--ink-d-soft); }
.hx-ins-meta span { margin-right: 8px; padding: 2px 9px; border-radius: 999px; font-weight: 600; color: var(--verd-d); background: #E2F2EC; }
.hx-ins-list .hx-more { justify-self: start; margin-top: 8px; font-size: .9375rem; }
@media (max-width: 560px) {
  .hx-ins-list { grid-template-columns: minmax(0, 1fr); }
  .hx-ins-list li, .hx-ins-list li + li { padding: 20px 0 0; border-left: 0; }
}

/* ---------- finale link ---------- */
.finale-in > p a { font-weight: 600; text-underline-offset: 4px; text-decoration-thickness: 1px; }

@media (prefers-reduced-motion: reduce) {
  .hx-js .hx-rv { opacity: 1; transform: none; }
}
