/* Home redesign (feat/home-redesign), the same language as the csecurity.com.br home (CSITE-20): a type-only first
   screen on the deep field, colour fields instead of rules and outlined boxes, the brand circuit as the one graphic
   motif, square corners, one ink and one accent. Loaded after the page's inline styles and overrides them; the
   cards, the dashboard and the subjects the scripts build keep their classes. */
:root {
  --hx-deep: #1b2a4a;
  --hx-cream: #fff8f2;
  --hx-coral: #ff6b4a;
  --hx-mist: #aeb9ce;
  --hx-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --hx-space: clamp(96px, 11vw, 180px);
  --hx-h2: clamp(32px, 3.6vw, 54px);
}
:root:not([data-theme='light']) {
  --hx-deep: #131e36;
}

main#top > section {
  padding-block: var(--hx-space);
}
.sec-head h2,
.hx-feat__head h2,
.hx-ticket__body h2,
.hx-closing__head h2 {
  font-size: var(--hx-h2);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.sec-head p {
  font-size: 17px;
  color: var(--ink);
}
.mono,
.btn__tick {
  font-family: var(--font);
  letter-spacing: 0;
  text-transform: none;
}

/* Controls */
.hx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 0;
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--hx-ease), background-color 0.2s ease;
}
.hx-btn:hover {
  transform: translateY(-2px);
}
.hx-btn:active {
  transform: scale(0.98);
}
.hx-btn--accent {
  background: var(--hx-coral);
  color: var(--hx-deep);
}
.hx-btn--accent:hover {
  background: #ff8466;
}
.hx-btn--ink {
  background: #1b2a4a;
  color: var(--hx-cream);
}
.hx-btn--ghost {
  background: transparent;
  color: inherit;
  outline: 2px solid currentColor;
  outline-offset: -2px;
}
.hx-link {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  transition: color 0.2s ease, text-underline-offset 0.25s var(--hx-ease);
}
.hx-link:hover {
  color: var(--hx-coral);
  text-underline-offset: 9px;
}
.hx-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}

/* The brand circuit (csec-brand: coral for circuit and nodes), quiet, behind content */
.hx-circuit {
  position: absolute;
  pointer-events: none;
}
.hx-circuit path {
  fill: none;
  stroke-width: 2;
  stroke-linejoin: round;
}
.hx-circuit circle {
  stroke-width: 2;
}

/* 1. Hero */
.hx-hero {
  position: relative;
  overflow: hidden;
  background: #1b2a4a;
  color: var(--hx-cream);
}
main#top > .hx-hero {
  padding-block: 0;
}
/* Less vertical space in the journey and the waitlist, so the page asks for less scroll */
main#top > #journey {
  padding-block: calc(var(--hx-space) * 0.8);
}
main#top > #waitlist {
  padding-block: calc(var(--hx-space) * 0.85);
}
.hx-hero__in {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 56px;
  min-height: calc((100svh - 72px) * 0.9);
  padding-block: calc(clamp(56px, 12vh, 120px) * 0.9) calc(clamp(28px, 5vh, 52px) * 0.9);
}
/* Sized from the width so the longer line (about 10.6 em, in either language) always fits on one line. */
.hx-hero__title {
  margin: 0;
  font-size: clamp(30px, calc((100vw - 160px) / 12), 108px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.05em;
  white-space: nowrap;
}
.hx-mask {
  display: block;
  overflow: hidden;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}
.hx-line {
  display: block;
}
.hx-line--2 {
  color: var(--hx-mist);
}
.hx-hero__foot {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  align-items: end;
}
.hx-hero__side {
  grid-column: 8 / 13;
  display: grid;
  gap: 28px;
}
.hx-hero__lede {
  margin: 0;
  font-size: clamp(16.2px, 1.35vw, 19.8px);
  line-height: 1.45;
}
.hx-link--light {
  color: var(--hx-cream);
}
.hx-hero :focus-visible {
  outline-color: var(--hx-coral);
}
.hx-circuit--hero {
  right: 0;
  top: 14%;
  width: 52%;
  height: 180px;
  transform: scaleX(-1);
}
.hx-circuit--hero path,
.hx-circuit--hero circle {
  stroke: rgba(174, 185, 206, 0.22);
}
.hx-circuit--hero circle {
  fill: #1b2a4a;
}
.hx-circuit--hero circle.hot {
  fill: var(--hx-coral);
  stroke: var(--hx-coral);
}

/* 2. The learning path: years set large, a filled bar instead of rules */
.path {
  gap: 32px 24px;
}
.stop {
  border-top: 0;
  padding-top: 26px;
}
.stop::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 6px;
  border: 0;
  border-radius: 0;
  background: var(--rule-strong);
  transform: none;
}
.stop--now::before {
  background: var(--hx-coral);
}
.stop__when {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font);
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: none;
  color: var(--ink);
}
.stop--now .stop__when {
  color: var(--signal);
}
.stop p {
  font-size: 15px;
  color: var(--ink);
}

/* 3. Catalogue cards built by the scripts: no rules, readable labels */
.card {
  border: 0;
  border-radius: 0;
}
.card__meta {
  border-top: 0;
}
.card .thumb {
  border: 0;
  border-radius: 0;
}
.card__code,
.card__meta,
.card__progress {
  font-family: var(--font);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
}
.card__enroll {
  border-radius: 0;
}

/* 4. How it works as a staircase of lines */
.hx-stairs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 24px;
  row-gap: 56px;
}
.hx-stair {
  grid-column: span 6;
}
.hx-stair--1 {
  grid-column: 1 / span 6;
}
.hx-stair--2 {
  grid-column: 4 / span 6;
}
.hx-stair--3 {
  grid-column: 7 / span 6;
}
.hx-stair h3 {
  margin: 0;
  font-size: var(--hx-h2);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.hx-stair--3 h3 {
  color: var(--signal);
}
.hx-stair p {
  margin: 12px 0 0;
  max-width: 40ch;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
}
.hx-stair .hx-btn {
  margin-top: 24px;
}

/* 5. Why it holds up: the statement beside a list, on the deep field */
.hx-feat {
  background: #1b2a4a;
  color: var(--hx-cream);
}
.hx-feat__in {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  align-items: start;
}
.hx-feat__head {
  grid-column: 1 / 6;
}
.hx-feat__list {
  grid-column: 7 / 13;
  display: grid;
  gap: 8px;
}
.hx-feat__list .callout {
  padding: 24px 28px;
  border-radius: 0;
  background: rgba(255, 248, 242, 0.06);
  transition: background-color 0.25s ease, transform 0.35s var(--hx-ease);
}
.hx-feat__list .callout:hover {
  background: rgba(255, 248, 242, 0.1);
  transform: translateX(6px);
}
.hx-feat__list .callout h3 {
  color: var(--hx-cream);
  font-size: 20px;
}
.hx-feat__list .callout p {
  color: var(--hx-mist);
  font-size: 16px;
}

/* 6. Pricing as a ticket: the figure on the coral stub, the offer beside it */
.hx-ticket {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  background: var(--blueprint);
}
.hx-ticket__fig {
  padding: clamp(28px, 4vw, 48px);
  background: var(--hx-coral);
  color: #1b2a4a;
  display: grid;
  gap: 8px;
  align-content: start;
}
.hx-ticket__fig h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
}
.hx-ticket__fig p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}
.hx-ticket__amount b {
  font-size: clamp(64px, 7vw, 104px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}
.hx-ticket__amount span {
  font-size: 16px;
  font-weight: 600;
}
.hx-ticket__soon {
  margin-top: 12px !important;
  font-weight: 700;
}
.hx-ticket__body {
  padding: clamp(28px, 4vw, 56px);
  display: grid;
  gap: 20px;
  align-content: center;
  border-left: 5px dotted var(--blueprint-deep);
}
.hx-ticket__body p {
  margin: 0;
  max-width: 52ch;
  font-size: 17px;
  color: var(--ink);
}

/* Subjects: the heading beside the list, rows as filled steps instead of rules */
#topics > .sheet {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  align-items: start;
}
#topics .sec-head {
  grid-column: 1 / 6;
  margin: 0;
}
#topics .subjects {
  grid-column: 7 / 13;
  columns: auto;
  display: grid;
  gap: 8px;
}
.subjects li {
  border-bottom: 0;
}
.subjects a {
  padding: 18px 22px;
  background: var(--blueprint-deep);
  font-size: 18px;
  font-weight: 700;
}
.subjects a::after {
  font-family: var(--font);
  font-size: 16px;
}

/* 7. The note, set as a statement on a quiet field: the heading beside the text */
.hx-note {
  background: var(--blueprint-deep);
}
.hx-note__in {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}
.hx-note__in > * {
  grid-column: 7 / 13;
}
.hx-note__in h2 {
  grid-column: 1 / 6;
  grid-row: 1 / span 4;
  font-size: var(--hx-h2);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0;
}
.hx-note__in p {
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.5;
  color: var(--ink);
}
.hx-note__in p + p {
  margin-top: 16px;
}
.hx-note__in .note__sig {
  margin-top: 28px;
  font-size: 15px;
  font-weight: 700;
  color: var(--signal);
}

/* 8. Closing: the waitlist and sign-up on the coral field, so the page always ends on a way in */
.hx-closing {
  position: relative;
  overflow: hidden;
  background: var(--hx-coral);
  color: #1b2a4a;
}
.hx-closing__in {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  align-items: end;
}
.hx-closing__head {
  grid-column: 1 / 7;
  display: grid;
  gap: 20px;
  justify-items: start;
}
.hx-closing__head p {
  margin: 0;
  max-width: 44ch;
  font-size: 14.5px;
}
#waitlist .hx-closing__head h2 {
  font-size: calc(var(--hx-h2) * 0.85);
}
.hx-closing .waitlist-form {
  grid-column: 8 / 13;
}
.hx-closing .waitlist-form__input {
  border: 0;
  border-radius: 0;
  min-height: 44px;
  background: var(--hx-cream);
  color: #1b2a4a;
}
.hx-closing .waitlist-form .btn {
  border-radius: 0;
  min-height: 44px;
  background: #1b2a4a;
  color: var(--hx-cream);
  border: 0;
}
.hx-closing .waitlist-form__consent,
.hx-closing .waitlist-form__consent a {
  color: #1b2a4a;
}
.hx-closing .waitlist-form__status {
  grid-column: 8 / 13;
  color: #1b2a4a;
}
.hx-closing :focus-visible {
  outline-color: #1b2a4a;
}
.hx-circuit--closing {
  left: 0;
  bottom: 0;
  width: 100%;
  height: 160px;
}
.hx-circuit--closing path,
.hx-circuit--closing circle {
  stroke: rgba(27, 42, 74, 0.12);
}
.hx-circuit--closing circle {
  fill: var(--hx-coral);
}

/* Back to top, floating once the hero is gone */
.hx-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: var(--hx-coral);
  color: #1b2a4a;
  box-shadow: 0 10px 28px rgba(27, 42, 74, 0.28); /* taste-skill-ignore: it floats over the page */
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s var(--hx-ease);
}
.hx-top.is-on {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.hx-top svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Motion: the statement rises line by line; nothing hidden without it */
@keyframes hx-rise {
  from {
    transform: translateY(105%);
  }
  to {
    transform: none;
  }
}
@keyframes hx-fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .hx-line {
    animation: hx-rise 0.9s var(--hx-ease) 0.1s both;
  }
  .hx-line--2 {
    animation-delay: 0.21s;
  }
  .hx-hero__foot {
    animation: hx-fade-up 0.8s var(--hx-ease) 0.6s both;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hx-btn,
  .hx-top,
  .hx-feat__list .callout {
    transition: none;
  }
}

/* Tablet */
@media (max-width: 1000px) {
  .hx-hero__side,
  .hx-feat__head,
  .hx-feat__list,
  .hx-closing__head,
  .hx-closing .waitlist-form,
  .hx-closing .waitlist-form__status {
    grid-column: 1 / 13;
  }
  .hx-stair--1 {
    grid-column: 1 / span 10;
  }
  .hx-stair--2 {
    grid-column: 2 / span 10;
  }
  .hx-stair--3 {
    grid-column: 3 / span 10;
  }
  .hx-ticket {
    grid-template-columns: 1fr;
  }
  .hx-ticket__fig {
    order: 2;
  }
  #topics .sec-head,
  #topics .subjects,
  .hx-note__in > *,
  .hx-note__in h2 {
    grid-column: 1 / 13;
    grid-row: auto;
  }
  .hx-ticket__body {
    border-left: 0;
    border-top: 5px dotted var(--blueprint-deep);
  }
}

/* Phone */
@media (max-width: 600px) {
  .hx-hero__in {
    min-height: 0;
    gap: 40px;
    padding-block: 14vh 36px;
  }
  .hx-hero__title {
    font-size: calc((100vw - 48px) / 12.4);
  }
  .hx-circuit--hero {
    display: none;
  }
  .hx-stair--2,
  .hx-stair--3 {
    grid-column: 1 / -1;
  }
  .hx-stair--2 {
    padding-left: 6vw;
  }
  .hx-stair--3 {
    padding-left: 12vw;
  }
  .hx-cta .hx-btn {
    width: 100%;
  }
  .hx-top {
    right: 14px;
    bottom: 14px;
  }
}

/* Leftovers on the cards the scripts build: no ring, no gradient, the text face everywhere */
.card,
.card--wide {
  box-shadow: none; /* taste-skill-ignore: removes the old ring */
}
.card .thumb--empty {
  background: var(--blueprint-deep);
}
.card__enroll {
  font-family: var(--font);
  letter-spacing: 0;
  text-transform: none;
  font-size: 14px;
}
@media (max-width: 600px) {
  :root {
    --hx-h2: 28px;
  }
}

/* ---- Round 2 (29/10): clouds instead of the circuit, pictures in the timeline, plans, the instructor ---- */
.hx-defs {
  position: absolute;
  width: 0;
  height: 0;
}
.hx-clouds {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hx-clouds--hero use {
  fill: rgba(255, 248, 242, 0.045);
}
.hx-clouds--closing use {
  fill: rgba(255, 248, 242, 0.14);
}
@media (prefers-reduced-motion: no-preference) {
  .hx-clouds use {
    animation: hx-drift 26s ease-in-out infinite alternate;
  }
  .hx-clouds use:nth-of-type(2) {
    animation-duration: 34s;
  }
  .hx-clouds use:nth-of-type(3) {
    animation-duration: 30s;
    animation-direction: alternate-reverse;
  }
}
@keyframes hx-drift {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-28px);
  }
}
.hx-assure {
  margin: -12px 0 0;
  font-size: 14px;
  color: var(--hx-mist);
}
.hx-hero__side .hx-cta .hx-btn {
  min-height: 56px;
  padding: 0 32px;
  font-size: 17px;
}

/* Timeline pictures: one frame per stop, same crop and treatment */
.stop__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin-bottom: 18px;
  background: var(--blueprint-deep);
  filter: saturate(0.85) contrast(1.05);
  transition: filter 0.4s ease, transform 0.6s var(--hx-ease);
}
.stop:hover .stop__img {
  filter: none;
  transform: translateY(-4px);
}
.stop__img--drawn {
  padding: 18% 10%;
  background: #1b2a4a;
  fill: rgba(255, 248, 242, 0.12);
  filter: none;
}
.stop__img--drawn .hx-lock,
.stop__img--drawn use {
  color: var(--hx-coral);
}
.path__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}
.hx-credits {
  margin-top: 28px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-2);
}
.hx-credits a {
  color: inherit;
}

/* Plans: free on the quiet ground, Plus on the coral field with the annual stamp */
.hx-plans {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 8px;
  align-items: stretch;
}
.hx-plan {
  position: relative;
  display: grid;
  gap: 14px;
  align-content: start;
  padding: clamp(28px, 3.6vw, 48px);
}
.hx-plan h3 {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.hx-plan--free {
  background: var(--blueprint-deep);
  color: var(--ink);
}
.hx-plan--plus {
  background: var(--hx-coral);
  color: #1b2a4a;
}
.hx-plan__lead,
.hx-plan__note {
  margin: 0;
  font-size: 15px;
}
.hx-plan__list {
  list-style: none;
  margin: 8px 0 12px;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: 17px;
  font-weight: 600;
}
.hx-plan__list li {
  display: flex;
  gap: 12px;
  align-items: center;
}
.hx-plan__list li::before {
  content: '';
  flex: none;
  width: 10px;
  height: 10px;
  background: currentColor;
}
.hx-plan--free .hx-plan__list li::before {
  background: var(--hx-coral);
}
.hx-plan .hx-btn {
  justify-self: start;
}
.hx-plan__stamp {
  justify-self: start;
  margin: 0;
  padding: 8px 14px;
  background: #1b2a4a;
  color: var(--hx-cream);
  font-size: 14px;
  font-weight: 800;
}

/* The instructor: the photo framed with an offset block, the record in numbers */
.hx-teacher {
  background: var(--blueprint);
}
.hx-teacher__in {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  align-items: center;
}
.hx-teacher__photo {
  grid-column: 1 / 5;
  position: relative;
  width: 80%;
  margin: 0 11px 11px 0;
}
.hx-teacher__photo::before {
  content: '';
  position: absolute;
  inset: 0;
  transform: translate(11px, 11px);
  background: var(--hx-coral);
}
.hx-teacher__photo picture,
.hx-teacher__photo img {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 30%;
}
.hx-teacher__copy {
  grid-column: 6 / 13;
  display: grid;
  gap: 18px;
  justify-items: start;
}
.hx-teacher__copy h2 {
  margin: 0;
  font-size: var(--hx-h2);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.hx-teacher__copy > p {
  margin: 0;
  max-width: 52ch;
  font-size: 17px;
  color: var(--ink);
}
.hx-teacher__name b {
  display: block;
  font-size: 22px;
}
.hx-teacher__name span {
  color: var(--ink-2);
  font-size: 15px;
}
.hx-stats {
  margin: 8px 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
}
.hx-stats div {
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
  padding-top: 16px;
  position: relative;
}
.hx-stats div::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 4px;
  background: var(--hx-coral);
}
.hx-stats dd {
  margin: 0;
  font-size: clamp(40px, 4vw, 60px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.9;
}
.hx-stats dt {
  font-size: 14px;
  color: var(--ink-2);
}

/* Closing: the start-free call first, the waitlist second */
.hx-closing__head h3 {
  margin: 28px 0 0;
  font-size: 18.7px;
  font-weight: 800;
}
.hx-btn--big {
  min-height: 51px;
  padding: 0 31px;
  font-size: 15.3px;
}

@media (max-width: 1000px) {
  .hx-plans {
    grid-template-columns: 1fr;
  }
  .hx-teacher__photo {
    grid-column: 1 / 8;
  }
  .hx-teacher__copy {
    grid-column: 1 / 13;
  }
}
@media (max-width: 600px) {
  .hx-stats {
    grid-template-columns: 1fr 1fr;
  }
  .hx-plan .hx-btn,
  .hx-btn--big {
    width: 100%;
  }
}

/* ---- Round 3 (29/10): a minimal track instead of photos, perks as figures, the team below the instructor ---- */
.hx-track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0 24px;
  position: relative;
}
/* One continuous bar through every era, the last stretch in coral */
.hx-track::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 51px;
  height: 4px;
  background: linear-gradient(90deg, var(--rule-strong) 83%, var(--hx-coral) 83%); /* taste-skill-ignore: a two-colour bar with a hard stop, not a fade */
}
.hx-era {
  position: relative;
  padding-top: 74px;
}
.hx-era::before {
  content: '';
  position: absolute;
  left: 0;
  top: 56px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--blueprint);
  box-shadow: inset 0 0 0 4px var(--ink); /* taste-skill-ignore: a ring marker on the track */
  transition: transform 0.3s var(--hx-ease), background-color 0.2s ease;
}
.hx-era:hover::before {
  transform: scale(1.25);
  background: var(--ink);
}
.hx-era--now::before {
  background: var(--hx-coral);
  box-shadow: 0 0 0 8px rgba(255, 107, 74, 0.22); /* taste-skill-ignore: the "you are here" halo */
}
.hx-era__when {
  position: absolute;
  left: 0;
  top: 0;
  font-size: clamp(17.6px, 1.76vw, 27.2px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  white-space: nowrap;
  color: var(--ink);
}
.hx-era--now .hx-era__when {
  color: var(--signal);
}
.hx-era h3 {
  margin: 0 0 6px;
  font-size: 14.4px;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.hx-era p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink-2);
}
/* The journey's heading and intro scale with its track */
#journey .sec-head h2 {
  font-size: calc(var(--hx-h2) * 0.8);
}
#journey .sec-head p {
  font-size: 13.6px;
}

/* Perks: four figures on the deep field */
.hx-feat__head {
  margin-bottom: clamp(40px, 5vw, 72px);
}
.hx-feat__head p {
  margin: 16px 0 0;
  font-size: 18px;
  color: var(--hx-mist);
}
.hx-perks {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.hx-perk {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 28px;
  background: rgba(255, 248, 242, 0.06);
  transition: background-color 0.25s ease, transform 0.35s var(--hx-ease);
}
.hx-perk:hover {
  background: rgba(255, 248, 242, 0.1);
  transform: translateY(-4px);
}
.hx-perk dd {
  order: -1;
  margin: 0 0 6px;
  font-size: clamp(56px, 6vw, 88px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.9;
  color: var(--hx-coral);
}
.hx-perk dt {
  font-size: 18px;
  font-weight: 800;
  color: var(--hx-cream);
}
.hx-perk p {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  color: var(--hx-mist);
}

/* Instructor numbers aligned at the top; the rest of the team below */
.hx-stats div {
  flex-direction: column;
  justify-content: flex-start;
}
.hx-stats dd {
  order: -1;
}
/* Erich's card, which opens into a profile. Closed: a small card on the light field, the photo with a coral "+".
   Open: the card widens onto the deep field, the photo grows into the brand's offset frame (as Christiano's), the
   "+" turns to a cross and the bio and the four areas rise one after another. All CSS transitions between two
   states, so a click mid-way reverses from where the card is. */
.hx-mate {
  width: min(100%, 440px);
  margin-top: 16px;
  background: var(--blueprint-deep);
  color: var(--ink);
  overflow: hidden;
  transition: width 0.6s var(--hx-ease), background-color 0.45s ease, color 0.45s ease;
}
.hx-mate.is-open {
  width: 100%;
  background: #1b2a4a;
  color: var(--hx-cream);
}
.hx-mate__toggle {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 16px 24px 16px 16px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: padding 0.6s var(--hx-ease), gap 0.6s var(--hx-ease);
}
.hx-mate.is-open .hx-mate__toggle {
  align-items: flex-end;
  gap: 32px;
  padding: 28px 28px 0;
}
.hx-mate__toggle:focus-visible {
  outline: 3px solid var(--hx-coral);
  outline-offset: -3px;
}
.hx-mate__photo {
  position: relative;
  flex: none;
  width: 72px;
  height: 72px;
  transition: width 0.6s var(--hx-ease), height 0.6s var(--hx-ease), margin 0.6s var(--hx-ease);
}
.hx-mate.is-open .hx-mate__photo {
  width: 176px;
  height: 220px;
  margin: 0 14px 14px 0;
}
.hx-mate__photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hx-coral);
  transition: transform 0.5s var(--hx-ease);
}
.hx-mate__toggle:hover .hx-mate__photo::before {
  transform: translate(5px, 5px);
}
.hx-mate.is-open .hx-mate__photo::before {
  transform: translate(14px, 14px);
  transition-delay: 0.18s;
}
.hx-mate__photo picture {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.hx-mate__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  transition: transform 0.8s var(--hx-ease);
}
.hx-mate__toggle:hover .hx-mate__photo img {
  transform: scale(1.06);
}
/* The "+" badge on the photo's corner; open, it climbs to the top corner and its bars turn into a cross on cream. */
.hx-mate__plus {
  position: absolute;
  right: -9px;
  top: calc(100% - 19px);
  width: 28px;
  height: 28px;
  background: var(--hx-coral);
  transition: top 0.6s var(--hx-ease), transform 0.5s var(--hx-ease), background-color 0.3s ease;
}
.hx-mate__plus::before,
.hx-mate__plus::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 2.5px;
  margin: -1.25px 0 0 -7px;
  background: #1b2a4a;
  transition: transform 0.5s var(--hx-ease) 0.1s;
}
.hx-mate__plus::after {
  transform: rotate(90deg);
}
.hx-mate__toggle:hover .hx-mate__plus {
  transform: rotate(90deg);
}
.hx-mate.is-open .hx-mate__plus {
  top: -9px;
  background: var(--hx-cream);
}
.hx-mate.is-open .hx-mate__plus::before {
  transform: rotate(45deg);
}
.hx-mate.is-open .hx-mate__plus::after {
  transform: rotate(135deg);
}
.hx-mate__id {
  display: grid;
  gap: 2px;
  font-size: 14px;
  color: var(--ink-2);
  transition: padding 0.6s var(--hx-ease);
}
.hx-mate.is-open .hx-mate__id {
  padding-bottom: 18px;
  color: var(--hx-mist);
}
.hx-mate__id b {
  font-size: 18px;
  line-height: 1.15;
  color: var(--ink);
  transition: font-size 0.6s var(--hx-ease), color 0.45s ease;
}
.hx-mate.is-open .hx-mate__id b {
  font-size: 30px;
  letter-spacing: -0.02em;
  color: var(--hx-cream);
}
/* The cue under the role; both labels are in the page so the translation covers them, one shows at a time. */
.hx-mate__cue {
  display: grid;
  justify-items: start;
  margin-top: 8px;
  font-weight: 700;
  color: var(--ink);
}
.hx-mate__cue span {
  grid-area: 1 / 1;
  text-decoration: underline;
  text-decoration-color: var(--hx-coral);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: opacity 0.3s ease;
}
.hx-mate__cue-close {
  opacity: 0;
}
.hx-mate.is-open .hx-mate__cue {
  color: var(--hx-cream);
}
.hx-mate.is-open .hx-mate__cue-open {
  opacity: 0;
}
.hx-mate.is-open .hx-mate__cue-close {
  opacity: 1;
}
/* The profile below: the row opens from 0fr to 1fr, then its parts rise in turn. Closing, they leave at once. */
.hx-mate__more {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.6s var(--hx-ease);
}
.hx-mate.is-open .hx-mate__more {
  grid-template-rows: 1fr;
}
.hx-mate__inner {
  min-height: 0;
  overflow: hidden;
  visibility: hidden;
  transition: visibility 0s linear 0.6s;
}
.hx-mate.is-open .hx-mate__inner {
  visibility: visible;
  transition-delay: 0s;
}
.hx-mate__bio {
  margin: 28px 28px 0;
  max-width: 60ch;
  font-size: 17px;
  line-height: 1.55;
  color: var(--hx-cream);
}
.hx-mate__specs {
  list-style: none;
  margin: 24px 0 0;
  padding: 0 28px 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.hx-mate__specs li {
  position: relative;
  display: grid;
  gap: 4px;
  align-content: start;
  padding: 18px 18px 16px;
  background: rgba(255, 248, 242, 0.06);
}
.hx-mate__specs li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: var(--hx-coral);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.5s var(--hx-ease);
}
.hx-mate__specs b {
  font-size: 18px;
  color: var(--hx-cream);
}
.hx-mate__specs span:last-child {
  font-size: 14px;
  color: var(--hx-mist);
}
.hx-mate__bio,
.hx-mate__specs li {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.hx-mate.is-open .hx-mate__bio,
.hx-mate.is-open .hx-mate__specs li {
  opacity: 1;
  transform: none;
  transition: opacity 0.45s ease 0.22s, transform 0.6s var(--hx-ease) 0.22s;
}
.hx-mate.is-open .hx-mate__specs li::before {
  transform: scaleX(1);
  transition-delay: 0.5s;
}
.hx-mate.is-open .hx-mate__specs li:nth-child(1) {
  transition-delay: 0.3s;
}
.hx-mate.is-open .hx-mate__specs li:nth-child(2),
.hx-mate.is-open .hx-mate__specs li:nth-child(1)::before {
  transition-delay: 0.38s;
}
.hx-mate.is-open .hx-mate__specs li:nth-child(3),
.hx-mate.is-open .hx-mate__specs li:nth-child(2)::before {
  transition-delay: 0.46s;
}
.hx-mate.is-open .hx-mate__specs li:nth-child(4),
.hx-mate.is-open .hx-mate__specs li:nth-child(3)::before {
  transition-delay: 0.54s;
}
.hx-mate.is-open .hx-mate__specs li:nth-child(4)::before {
  transition-delay: 0.62s;
}
/* Set to its first state by the script without playing the change. */
.hx-mate.is-instant,
.hx-mate.is-instant *,
.hx-mate.is-instant *::before,
.hx-mate.is-instant *::after {
  transition: none !important;
}
@media (max-width: 600px) {
  .hx-mate.is-open .hx-mate__toggle {
    gap: 22px;
    padding: 20px 20px 0;
  }
  .hx-mate.is-open .hx-mate__photo {
    width: 112px;
    height: 140px;
    margin: 0 10px 10px 0;
  }
  .hx-mate.is-open .hx-mate__photo::before {
    transform: translate(10px, 10px);
  }
  .hx-mate.is-open .hx-mate__id {
    padding-bottom: 10px;
  }
  .hx-mate.is-open .hx-mate__id b {
    font-size: 22px;
  }
  .hx-mate__bio {
    margin: 22px 20px 0;
    font-size: 16px;
  }
  .hx-mate__specs {
    gap: 8px;
    padding: 0 20px 20px;
  }
  .hx-mate__specs li {
    padding: 14px 12px 12px;
  }
  .hx-mate__specs b {
    font-size: 16px;
  }
  .hx-mate__specs span:last-child {
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hx-mate,
  .hx-mate *,
  .hx-mate *::before,
  .hx-mate *::after {
    transition-duration: 0.01s !important;
    transition-delay: 0s !important;
  }
}

@media (max-width: 1000px) {
  .hx-track {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 40px;
  }
  .hx-track::before {
    display: none;
  }
  .hx-era::after {
    content: '';
    position: absolute;
    left: 0;
    right: -24px;
    top: 51px;
    height: 4px;
    background: var(--rule-strong);
    z-index: -1;
  }
  .hx-perks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .hx-track {
    grid-template-columns: 1fr;
    row-gap: 0;
  }
  .hx-era {
    padding: 0 0 22px 32px;
  }
  .hx-era::after {
    left: 8px;
    right: auto;
    top: 0;
    bottom: 0;
    width: 4px;
    height: auto;
  }
  .hx-era::before {
    top: 4px;
  }
  .hx-era__when {
    position: static;
    display: block;
    margin-bottom: 6px;
  }
  .hx-perks {
    grid-template-columns: 1fr;
  }
}

/* Why it works: the benefit as the heading, four concrete reasons beside it */
.hx-note__in > .hx-why,
.hx-note__in > .hx-btn {
  grid-column: 7 / 13;
}
.hx-note__in > .hx-btn {
  justify-self: start;
  margin-top: 8px;
}
.hx-why {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.hx-why li {
  display: grid;
  gap: 4px;
  padding: 20px 24px 20px 28px;
  background: var(--blueprint);
  position: relative;
}
.hx-why li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: var(--hx-coral);
}
.hx-why b {
  font-size: 18px;
  color: var(--ink);
}
.hx-why span {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
}
@media (max-width: 1000px) {
  .hx-note__in > .hx-why,
  .hx-note__in > .hx-btn {
    grid-column: 1 / 13;
  }
}

/* ---- Round 4 (29/10): the three steps as illustrated columns joined by a track ---- */
.hx-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  counter-reset: hx-step;
}
.hx-step {
  position: relative;
  display: grid;
  gap: 12px;
  align-content: start;
}
/* The track between the pictures: a coral bar with an arrowhead pointing to the next step */
.hx-step:not(.hx-step--last)::after {
  content: '';
  position: absolute;
  top: 120px;
  right: -32px;
  width: 32px;
  height: 4px;
  background: var(--hx-coral);
  clip-path: polygon(0 0, 70% 0, 70% -200%, 100% 50%, 70% 300%, 70% 100%, 0 100%);
}
.hx-step__shot {
  position: relative;
  display: grid;
  place-items: center;
  height: 240px;
  padding: 24px;
  margin-bottom: 12px;
  background: #1b2a4a;
  overflow: hidden;
  transition: transform 0.4s var(--hx-ease);
}
.hx-step:hover .hx-step__shot {
  transform: translateY(-6px);
}
.hx-step--last .hx-step__shot {
  background: var(--hx-coral);
}
.hx-step h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
}
.hx-step--last h3 {
  color: var(--signal);
}
.hx-step > p {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
}
.hx-steps__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: clamp(40px, 5vw, 64px);
}
.hx-steps__assure {
  font-size: 15px;
  color: var(--ink-2);
}

/* The product fragments (data-ui keeps their own small type and lines) */
.ui-card {
  width: min(100%, 280px);
  display: grid;
  gap: 8px;
  padding: 18px;
  background: var(--hx-cream);
  color: #1b2a4a;
  font-size: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}
.ui-title {
  margin: 0 0 2px;
  font-size: 14px;
  font-weight: 800;
}
.ui-field {
  padding: 9px 10px;
  border: 1px solid rgba(27, 42, 74, 0.22);
  color: #4a5468;
}
.ui-btn {
  padding: 9px 10px;
  background: #1b2a4a;
  color: var(--hx-cream);
  font-weight: 700;
  text-align: center;
}
.ui-btn--alt {
  background: transparent;
  color: #1b2a4a;
  border: 1px solid rgba(27, 42, 74, 0.22);
}
.ui-g {
  color: var(--hx-coral);
}
.ui-note,
.ui-meta {
  margin: 0;
  font-size: 11.5px;
  color: #4a5468;
}
.ui-ok {
  color: #1f7a4d;
  font-weight: 800;
}
.ui-progress {
  height: 6px;
  background: rgba(27, 42, 74, 0.12);
}
.ui-progress i {
  display: block;
  width: 33%;
  height: 100%;
  background: var(--hx-coral);
}
.ui-lessons {
  list-style: none;
  margin: 2px 0;
  padding: 0;
  display: grid;
  gap: 5px;
}
.ui-lessons li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ui-lessons li::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(27, 42, 74, 0.3);
}
.ui-lessons .is-done::before {
  background: #1b2a4a;
  border-color: #1b2a4a;
}
.ui-lessons .is-now {
  font-weight: 800;
}
.ui-lessons .is-now::before {
  border-color: var(--hx-coral);
  background: var(--hx-coral);
}
.ui-cert {
  justify-items: center;
  text-align: center;
  padding: 24px 18px;
  outline: 2px solid #1b2a4a;
  outline-offset: -8px;
}
.ui-cert__seal {
  width: 30px;
  height: 38px;
}
.ui-cert__course {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.ui-cert__by {
  margin: 0;
  font-size: 11.5px;
  color: #4a5468;
}
.ui-tag {
  padding: 3px 10px;
  background: var(--hx-coral);
  font-weight: 800;
}
@media (max-width: 1000px) {
  .hx-steps {
    grid-template-columns: 1fr;
    max-width: 560px;
  }
  .hx-step:not(.hx-step--last)::after {
    display: none;
  }
}
.ui-note {
  display: flex;
  align-items: center;
  gap: 7px;
}
.ui-ok {
  flex: none;
  width: 12px;
  height: 7px;
  margin-top: -3px;
  border-left: 2px solid #1f7a4d; /* taste-skill-ignore: a drawn tick inside the fragment */
  border-bottom: 2px solid #1f7a4d; /* taste-skill-ignore */
  transform: rotate(-45deg);
}
/* Show each fragment whole: the panel grows with the card, all three panels share one height */
.hx-step__shot {
  height: auto;
  min-height: 300px;
  padding: 28px;
}
.hx-step:not(.hx-step--last)::after {
  top: 150px;
}

/* ---- Round 5 (29/10): a warmer "why": a welcome note from the founders, icons in soft round badges ---- */
.hx-note__in {
  align-items: start;
}
.hx-note__left {
  grid-column: 1 / 6;
  grid-row: 1 / span 2;
  display: grid;
  gap: 36px;
}
.hx-note__left h2 {
  margin: 0;
  font-size: var(--hx-h2);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
}
.hx-welcome {
  position: relative;
  margin: 0;
  padding: 32px 32px 28px;
  background: var(--blueprint);
  border-radius: 20px 20px 20px 4px;
}
/* A speech-bubble tail, so the note reads as someone talking to you */
.hx-welcome::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -16px;
  width: 24px;
  height: 16px;
  background: var(--blueprint);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}
.hx-welcome blockquote {
  margin: 0;
  font-size: clamp(19px, 1.6vw, 23px);
  line-height: 1.45;
  font-weight: 600;
  color: var(--ink);
}
.hx-welcome figcaption {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  font-size: 14px;
  color: var(--ink-2);
}
.hx-welcome figcaption b {
  display: block;
  font-size: 16px;
  color: var(--ink);
}
.hx-welcome__faces {
  display: flex;
  flex: none;
}
.hx-welcome__faces img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 3px var(--blueprint); /* taste-skill-ignore: separates the overlapping faces */
}
.hx-welcome__faces img + img {
  margin-left: -12px;
}
.hx-note__in > .hx-why {
  grid-column: 7 / 13;
}
.hx-why li {
  grid-template-columns: auto 1fr;
  column-gap: 18px;
  align-items: start;
  padding: 22px 24px;
  border-radius: 16px;
}
.hx-why li::before {
  display: none;
}
.hx-why b,
.hx-why span:not(.hx-why__icon) {
  grid-column: 2;
}
.hx-why__icon {
  grid-column: 1;
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 107, 74, 0.16);
  color: var(--signal);
}
.hx-why__icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (max-width: 1000px) {
  .hx-note__left,
  .hx-note__in > .hx-why {
    grid-column: 1 / 13;
    grid-row: auto;
  }
  .hx-note__in > .hx-why {
    margin-top: 32px;
  }
}
/* The faces separated by a ring of the ground colour (outline, not a shadow); the reasons as an open list */
.hx-welcome__faces img {
  box-shadow: none; /* taste-skill-ignore */
  outline: 3px solid var(--blueprint);
}
.hx-note__in > .hx-why {
  gap: 28px;
}
.hx-why li {
  padding: 0;
  background: none;
}
@media (max-width: 600px) {
  .hx-note__in > .hx-btn,
  .hx-steps__cta .hx-btn,
  .path__cta .hx-btn,
  .hx-teacher__copy > .hx-btn {
    width: 100%;
  }
}
/* On narrow screens the twelve-column grid plus its gaps is wider than the phone: stack instead */
@media (max-width: 1000px) {
  .hx-note__in {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  .hx-note__left,
  .hx-why {
    min-width: 0;
    width: 100%;
  }
  .hx-note__in > .hx-btn {
    align-self: flex-start;
  }
}
/* The older note rule placed every h2 on columns 1-5 of the section grid; inside the left block it must not */
.hx-note__left h2 {
  grid-column: auto;
  grid-row: auto;
}

/* Final pass (Apple design review, 29/10): instant press feedback, inline validation, no stuck hover on touch */
.hx-btn:active {
  transform: scale(0.97);
  transition-duration: 0.08s;
}
.hx-closing .waitlist-form__input:user-invalid {
  outline: 2px solid #1b2a4a;
  outline-offset: 2px;
}
@media (hover: none) {
  .hx-btn:hover,
  .hx-step:hover .hx-step__shot,
  .hx-perk:hover,
  .hx-era:hover::before {
    transform: none;
  }
}
@media (prefers-contrast: more) {
  .hx-era p,
  .hx-why span,
  .hx-plan__note,
  .hx-stats dt {
    color: var(--ink);
  }
}

/* ---- Round 6 (30/10): motion in the language of the csecurity.com.br home. The hero's cloud forms as a network as
   the page scrolls: its outline draws, its nodes light and its links connect, and it turns coral when complete.
   The track fills era by era, the steps play their fragments, the stamp lands, the figures count. Driven by
   home-motion.js (custom properties and classes); without it every element shows at rest. ---- */

/* The cloud forms as a network: in the hero and the closing band a cloud whose outline draws, whose nodes light one
   after another and whose links connect them as the page scrolls (--p from 0 to 1, set by home-motion.js). Complete,
   the outline turns coral and the nodes ping once. Without the script it shows complete. */
.ax-net__fill {
  fill: rgba(255, 248, 242, 0.045);
  transition: fill 0.5s ease;
}
.ax-net__edge {
  fill: none;
  stroke: rgba(255, 248, 242, 0.1);
  stroke-width: 1.2;
}
.ax-net__draw {
  fill: none;
  stroke: var(--hx-mist);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 1 1;
  stroke-dashoffset: calc(1 - var(--p, 1));
  transition: stroke 0.4s ease;
}
/* Ten links, each drawn over its own tenth of the way. */
.ax-net__links line {
  stroke: rgba(255, 248, 242, 0.4);
  stroke-width: 1;
  stroke-linecap: round;
  stroke-dasharray: 1 1;
  stroke-dashoffset: calc(1 - clamp(0, var(--p, 1) * 10 - var(--k, 0), 1));
}
.ax-net__node {
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0.5);
  transition: transform 0.45s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.ax-net__node rect {
  fill: var(--hx-mist);
  opacity: 0.5;
  transition: fill 0.25s ease, opacity 0.25s ease;
}
.ax-net__halo {
  fill: none;
  stroke: var(--hx-coral);
  stroke-width: 1.2;
  opacity: 0;
}
.ax-net__node.is-on {
  transform: none;
}
.ax-net__node.is-on rect {
  fill: var(--hx-coral);
  opacity: 1;
}
.ax-net__node.is-on .ax-net__halo {
  animation: ax-node 0.7s var(--hx-ease) both;
}
.ax-net.is-done .ax-net__fill {
  fill: rgba(255, 248, 242, 0.08);
}
.ax-net.is-done .ax-net__draw {
  stroke: var(--hx-coral);
}
.ax-net.is-done .ax-net__halo {
  animation: ax-node 0.9s var(--hx-ease) both;
}
@keyframes ax-node {
  from {
    opacity: 1;
    transform: scale(0.6);
  }
  to {
    opacity: 0;
    transform: scale(2.2);
  }
}
.ax-net__halo {
  transform-box: fill-box;
  transform-origin: center;
}
/* The closing band's cloud: ink on the coral field. */
.ax-net--closing .ax-net__fill {
  fill: rgba(255, 248, 242, 0.14);
}
.ax-net--closing .ax-net__edge {
  stroke: rgba(27, 42, 74, 0.15);
}
.ax-net--closing .ax-net__draw,
.ax-net--closing.is-done .ax-net__draw {
  stroke: #1b2a4a;
}
.ax-net--closing .ax-net__links line {
  stroke: rgba(27, 42, 74, 0.45);
}
.ax-net--closing .ax-net__node rect,
.ax-net--closing .ax-net__node.is-on rect {
  fill: #1b2a4a;
}
.ax-net--closing .ax-net__halo {
  stroke: #1b2a4a;
}
.ax-net--closing.is-done .ax-net__fill {
  fill: rgba(255, 248, 242, 0.24);
}

/* The track: a small dial for every era on the rail; the rail fills coral with the scroll (--fill) and each era
   lights as the fill reaches it. The last era holds a padlock that closes. */
.hx-track::before {
  background: var(--rule-strong);
}
.hx-track::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 51px;
  height: 4px;
  background: var(--hx-coral);
  transform-origin: left;
  transform: scaleX(var(--fill, 1));
}
.hx-era::before {
  content: none;
}
.hx-era__node {
  position: absolute;
  z-index: 1;
  left: -8px;
  top: 37px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--blueprint);
  color: var(--ink);
}
.ax-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.8s var(--hx-ease);
}
.ax-ring line {
  stroke: var(--rule-strong);
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke 0.3s ease;
}
.hx-era__node b {
  position: relative;
  font-size: 10.4px;
  font-weight: 800;
  transition: color 0.3s ease;
}
.ax-mini {
  position: relative;
  width: 16px;
  height: auto;
  overflow: visible;
}
.ax-mini rect {
  fill: var(--hx-coral);
}
.ax-mini__shackle {
  fill: none;
  stroke: var(--hx-coral);
  stroke-width: 4;
  transform: translateY(-7px);
  transition: transform 0.26s cubic-bezier(0.55, 0, 1, 0.45) 0.1s;
}
.hx-era.is-on .ax-ring line {
  stroke: var(--hx-coral);
}
.hx-era.is-on .hx-era__node b {
  color: var(--hx-coral);
}
.hx-era--now.is-on .ax-mini__shackle {
  transform: none;
}
.ax-motion .hx-era h3,
.ax-motion .hx-era p,
.ax-motion .hx-era__when {
  transition: opacity 0.4s ease;
}
.ax-motion .hx-era:not(.is-on) h3,
.ax-motion .hx-era:not(.is-on) p,
.ax-motion .hx-era:not(.is-on) .hx-era__when {
  opacity: 0.4;
}
.ax-motion .hx-era:not(.is-on) .ax-ring {
  transform: rotate(-90deg);
}
@media (max-width: 1000px) {
  .hx-track::after {
    display: none;
  }
}
@media (max-width: 600px) {
  .hx-era__node {
    top: -5px;
  }
}

/* Behind "Made for people with a job": a large dial cropped by the right edge, turning with the scroll (--spin). */
.hx-feat {
  position: relative;
  overflow: hidden;
}
.hx-feat > .sheet {
  position: relative;
  z-index: 1;
}
.ax-dial {
  position: absolute;
  top: -120px;
  right: -240px;
  width: 620px;
  height: auto;
  pointer-events: none;
  transform: rotate(calc(var(--spin, 0) * -120deg));
}
.ax-dial line {
  stroke: rgba(255, 248, 242, 0.1);
  stroke-width: 0.8;
  stroke-linecap: round;
}
.ax-dial line:nth-child(5n + 1) {
  stroke: rgba(255, 248, 242, 0.2);
  stroke-width: 1.3;
}
.ax-dial line:first-child {
  stroke: var(--hx-coral);
  stroke-width: 2;
}

@media (prefers-reduced-motion: no-preference) {
  /* The steps play their fragments in order: the account is confirmed, the course bar fills, the certificate's
     seal stamps and the Plus tag lands; the arrows between them draw as the eye moves on. */
  .ax-motion .hx-step:not(.hx-step--last)::after {
    transition: transform 0.5s var(--hx-ease);
    transform-origin: left;
  }
  .ax-motion .hx-steps:not(.is-in) .hx-step:not(.hx-step--last)::after {
    transform: scaleX(0);
  }
  .ax-motion .hx-steps.is-in .hx-step:nth-child(1)::after {
    transition-delay: 0.55s;
  }
  .ax-motion .hx-steps.is-in .hx-step:nth-child(2)::after {
    transition-delay: 1.2s;
  }
  .ax-motion .ui-ok {
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.34, 1.6, 0.64, 1) 0.4s;
  }
  .ax-motion .hx-steps:not(.is-in) .ui-ok {
    transform: scale(0);
  }
  .ax-motion .ui-progress i {
    transition: width 1s var(--hx-ease) 0.8s;
  }
  .ax-motion .hx-steps:not(.is-in) .ui-progress i {
    width: 0;
  }
  .ax-motion .ui-cert__seal {
    transition: transform 0.5s cubic-bezier(0.34, 1.5, 0.64, 1) 1.4s, opacity 0.2s ease 1.4s;
  }
  .ax-motion .hx-steps:not(.is-in) .ui-cert__seal {
    opacity: 0;
    transform: scale(2.2) rotate(-18deg);
  }
  .ax-motion .ui-cert {
    position: relative;
  }
  .ax-motion .hx-steps.is-in .ui-cert::after {
    content: '';
    position: absolute;
    inset: 0;
    outline: 3px solid var(--hx-coral);
    animation: ax-cert 0.9s var(--hx-ease) 1.6s both;
  }
  .ax-motion .ui-tag {
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.34, 1.6, 0.64, 1) 1.8s;
  }
  .ax-motion .hx-steps:not(.is-in) .ui-tag {
    transform: scale(0);
  }

  /* The perks' figures rise one after another; the annual plan's stamp lands. */
  .ax-motion .hx-perk dd {
    transition: transform 0.7s var(--hx-ease), opacity 0.5s ease;
  }
  .ax-motion .hx-perks:not(.is-in) .hx-perk dd {
    opacity: 0;
    transform: translateY(40%);
  }
  .ax-motion .hx-perk:nth-child(2) dd {
    transition-delay: 0.1s;
  }
  .ax-motion .hx-perk:nth-child(3) dd {
    transition-delay: 0.2s;
  }
  .ax-motion .hx-perk:nth-child(4) dd {
    transition-delay: 0.3s;
  }
  .ax-motion .hx-plan__stamp {
    transition: transform 0.45s cubic-bezier(0.34, 1.5, 0.64, 1) 0.6s, opacity 0.2s ease 0.6s;
  }
  .ax-motion .hx-plans:not(.is-in) .hx-plan__stamp {
    opacity: 0;
    transform: scale(1.6) rotate(-8deg);
  }
}
@keyframes ax-cert {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(1.12);
  }
}
@media (prefers-reduced-motion: reduce) {
  /* Same states without travel: no drops, rings or turning dials; the change reads through colour. */
  .ax-net__node,
  .ax-mini__shackle,
  .ax-ring {
    transition: none;
  }
  .ax-net__node.is-on .ax-net__halo,
  .ax-net.is-done .ax-net__halo {
    animation: none;
  }
  .ax-dial,
  .ax-motion .hx-era:not(.is-on) .ax-ring {
    transform: none;
  }
}

/* The instructor's photo keeps its 4:5 frame: the img's height attribute (640) otherwise wins over aspect-ratio. */
.hx-teacher__photo img {
  height: auto;
}

/* Phone pass (30/10): tighter rhythm between sections, the instructor's photo across the column at a sensible size,
   and a course card that previews its description instead of filling the screen with it. */
@media (max-width: 600px) {
  :root {
    --hx-space: 72px;
  }
  .hx-teacher__photo {
    grid-column: 1 / -1;
    max-width: 240px;
  }
  #homeCatalogueGrid .card p {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* Catalogue head: the heading on the left, the three facts (how many, what it costs to start, which languages) on
   the right, each under a rule that draws in coral when the head comes into view. */
.hx-cat-head {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 32px 24px;
  align-items: end;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.hx-cat-head .sec-head {
  grid-column: 1 / 8;
  margin-bottom: 0;
}
.hx-facts {
  grid-column: 8 / 13;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0;
}
.hx-facts div {
  position: relative;
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 6px;
  padding-top: 16px;
  border-top: 2px solid var(--rule);
}
.hx-facts div::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s var(--hx-ease);
}
.hx-cat-head.is-in .hx-facts div::before {
  transform: none;
}
.hx-cat-head.is-in .hx-facts div:nth-child(2)::before {
  transition-delay: 0.12s;
}
.hx-cat-head.is-in .hx-facts div:nth-child(3)::before {
  transition-delay: 0.24s;
}
.hx-facts dd {
  margin: 0;
  font-size: clamp(28px, 2.6vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  white-space: nowrap;
}
.hx-facts dt {
  font-size: 14px;
  line-height: 1.35;
  color: var(--ink-2);
}
@media (max-width: 1000px) {
  .hx-cat-head .sec-head,
  .hx-facts {
    grid-column: 1 / 13;
  }
}
@media (max-width: 600px) {
  .hx-facts {
    gap: 14px;
  }
  .hx-facts dd {
    font-size: 26px;
  }
  .hx-facts dt {
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hx-facts div::before {
    transform: none;
    transition: none;
  }
}

/* Phone: the hero's cloud moves to the free corner above the statement, so it never runs behind the text. */
@media (max-width: 600px) {
  .ax-net--hero {
    transform: translate(690px, 4px) scale(0.63);
  }
}
