/* Deception page (prefix dc-)  —  hero / steps / BENEFITS basics live in product.css
   Sizes follow the 1920 comp: clamp(min, designPx / 19.2 vw, designPx).
   1. Hero + mermaid artwork + feature cards   2. Benefits (7 steps)
   3. Deception copy + venn                     4. Hexagon diagram
   5. Responsive */

/* 1. Hero + mermaid + feature cards ------------------------------------------ */
.dc-top {
  position: relative;
  /* hero tone fading into the page colour — no seam under the cards */
  background: linear-gradient(to bottom, var(--bg-hero) 60%, var(--bg) 100%);
}
.dc-hero {
  padding-top: clamp(120px, 21.88vw, 420px);
}
.dc-hero .pr-hero__title {
  margin: 0;
  line-height: 1.09;
}
.dc-hero .pr-hero__lead {
  margin-top: clamp(0.5rem, 0.78vw, 15px);
  line-height: 1.15;
}

/* comp: full width, y 580-2155 — scales with the screen; the hero copy only
   sits over its dark top edge, the cards over its faded bottom edge */
.art--mermaid {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1920 / 1575;
  margin-top: -5.65vw;
  background-image: url("../img/deception/hero.jpg");
  background-image: image-set(
    url("../img/deception/hero.webp") type("image/webp"),
    url("../img/deception/hero.jpg") type("image/jpeg")
  );
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 10%, #000 82%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 10%, #000 82%, transparent 100%);
}

.dc-features {
  position: relative;
  z-index: 2;
  margin-top: -5.21vw;
  padding-inline: var(--pad-x);
}
.dc-features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7.34vw;                                       /* 141 */
  max-width: 81vw;                                   /* 1555 */
  margin: 0 auto;
}
.dc-fcard {
  justify-content: flex-start;
  min-height: clamp(300px, 21.88vw, 420px);
  padding: clamp(1.75rem, 3.59vw, 69px) clamp(1rem, 2.08vw, 40px) clamp(1.5rem, 2.08vw, 40px);
  background: rgba(3, 5, 3, 0.55);
}
.dc-fcard__icon {
  height: clamp(64px, 5.52vw, 106px);
  max-width: 100%;
}
.dc-fcard__icon--wide {
  height: clamp(56px, 4.84vw, 93px);
  margin-block: clamp(4px, 0.34vw, 6.5px);
}
.dc-fcard__title {
  margin: clamp(1rem, 1.67vw, 32px) 0 0;
  font-family: var(--font-ui);
  font-size: clamp(1.25rem, 1.56vw, 1.875rem);       /* 30 */
  font-weight: 300;
  line-height: 1.15;
  color: var(--green);
  text-transform: uppercase;
}
.dc-fcard__text {
  margin: clamp(0.625rem, 1.04vw, 20px) 0 0;
  font-size: clamp(0.9375rem, 1.15vw, 1.375rem);     /* 22 */
  line-height: 1.23;
  color: var(--ink);
}

/* 2. Benefits ---------------------------------------------------------------- */
.dc-benefits {
  position: relative;
  padding: clamp(3.5rem, 6.93vw, 133px) var(--pad-x) 0;
  text-align: center;
}
.dc-benefits__small {
  font-weight: 500;
}
.dc-benefits__cols {
  display: grid;
  grid-template-columns: max(26rem, 35.31vw) max-content;   /* left column 678, right fits its text */
  justify-content: center;
  margin: clamp(2rem, 3.65vw, 70px) auto 0;
  text-align: left;
}
.dc-steps {
  max-width: none;
  margin: 0;
}
.dc-steps .pr-step {
  gap: clamp(0.75rem, 1.04vw, 20px);
  min-height: clamp(42px, 2.86vw, 55px);
}
.dc-steps .pr-step + .pr-step {
  margin-top: clamp(0.75rem, 1.3vw, 25px);
}
.dc-steps .pr-step__num {
  width: clamp(46px, 3.18vw, 61px);
  font-size: clamp(0.875rem, 1.04vw, 1.25rem);       /* 20 */
}
.dc-steps .pr-step__text {
  max-width: max(15rem, 26.04vw);                    /* 500 — wraps like the comp */
  font-size: clamp(0.9375rem, 1.09vw, 1.3125rem);    /* 21 */
  line-height: 1.12;
}

/* 3. Deception copy + venn -------------------------------------------------- */
.dc-about {
  display: grid;
  grid-template-columns: 36.46vw 37.5vw;             /* copy 700 | venn 720 */
  column-gap: 8.54vw;                                /* 164 */
  align-items: start;
  padding: clamp(4rem, 6.77vw, 130px) 0 0 9.17vw;    /* copy starts at x 176 */
}
.dc-about__copy {
  padding-top: 9.79vw;                               /* 188 */
}
.dc-about__title {
  margin: 0;
  font-family: 'Pathway Gothic One', var(--font);
  font-size: max(3rem, 5.21vw);                      /* 100 */
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.3em;
  color: var(--green-light);
  text-transform: uppercase;
}
.dc-about__body {
  max-width: 35.42vw;                                /* 680 */
  margin-top: clamp(1rem, 1.35vw, 26px);
}
.dc-about__body p {
  margin: 0 0 clamp(0.75rem, 1.2vw, 23px);
  font-size: max(0.9375rem, 0.94vw);                 /* 18 */
  line-height: 1.28;
  color: var(--ink);
}
.dc-about__body p:last-child {
  margin-bottom: 0;
}

/* venn: comp box 720 x 680; positions in %, sizes in cqw (1cqw = 7.2 px) */
.dc-venn {
  container-type: inline-size;
}
.dc-venn__canvas {
  position: relative;
  aspect-ratio: 720 / 680;
}
.dc-venn__main {
  position: absolute;
  left: 14.44%;
  top: 6.18%;
  width: 71.11%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 2px solid var(--green);
  border-radius: 50%;
}
.dc-venn__name {
  font-family: var(--font-ui);
  font-size: max(5cqw, 12px);                        /* 36 */
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--green);
  text-transform: uppercase;
}
.dc-venn__item {
  position: absolute;
  width: 30%;                                        /* 216 */
}
.dc-venn__item--decoys  { left: 1.94%;  top: 10.29%; }
.dc-venn__item--triage  { left: 66.94%; top: 10%; }
.dc-venn__item--control { left: 35%;    top: 61.03%; }
.dc-venn__circle {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  border: 2px solid var(--green);
  border-radius: 50%;
  background: var(--bg);           /* solid: the big circle's line never shows inside */
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.dc-venn__circle:hover {
  border-color: var(--green-light);
  box-shadow: 0 0 22px rgba(91, 232, 76, 0.3);
}
.dc-venn__circle img {
  height: 8.33cqw;                                   /* 60 */
  width: auto;
}
.dc-venn__label {
  position: absolute;
  left: 50%;
  font-size: max(4.03cqw, 12px);                     /* 29 */
  font-weight: 300;
  line-height: 1.2;
  white-space: nowrap;
  color: var(--ink);
  transform: translateX(-50%);
}
.dc-venn__item--decoys .dc-venn__label,
.dc-venn__item--triage .dc-venn__label {
  bottom: calc(100% + 4.38cqw);
}
.dc-venn__item--control .dc-venn__label {
  top: calc(100% + 1.4cqw);
}

/* 4. Hexagon diagram: comp box 1920 x 700 (1cqw = 19.2 px) ------------------ */
.dc-hex {
  position: relative;
  padding: clamp(4rem, 6.77vw, 130px) 0 clamp(4rem, 10.94vw, 210px);
}
.dc-hex__inner {
  container-type: inline-size;
}
.dc-hex__canvas {
  position: relative;
  height: 36.46cqw;
}
.dc-hex__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.dc-hex__thick {
  fill: none;
  stroke: url(#dcHexFade);
  stroke-width: 24;
  stroke-linejoin: round;
}
.dc-hex__thin {
  fill: none;
  stroke: url(#dcHexThin);
  stroke-width: 2;
  stroke-linejoin: round;
}
.dc-hex__spokes line {
  stroke-width: 2;             /* colour = per-spoke gradient: invisible near the eye */
}
.dc-hex__bar {
  stroke: url(#dcHexBar);
  stroke-width: 3;
}
.dc-hex__dots circle {
  fill: #6EF062;
}
.dc-hex__eye {
  position: absolute;
  left: 47.40%;                                      /* 910: centred on the x 985 axis */
  top: 20.21%;                                       /* 106.5 */
  width: 7.81%;                                      /* 150 */
}
.dc-hex__eye::before {
  /* solid backing so no line ever shows through the eye's open areas */
  content: "";
  position: absolute;
  inset: 8% 6%;                    /* inside the eye only — the bar still shows right under it */
  border-radius: 50%;
  background: var(--bg);
}
.dc-hex__eye img {
  position: relative;
}
.dc-hex__eye img {
  display: block;
  width: 100%;
  height: auto;
}
.dc-hex__nodes {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.dc-hnode {
  position: absolute;
  left: calc(var(--x) / 1920 * 100%);
  top: calc(var(--y) / 700 * 100%);
  width: 0;
  height: 0;
}
.dc-hnode__inner {
  position: absolute;
  left: -6cqw;
  top: -1.98cqw;
  width: 12cqw;                                      /* 230 — fits the longest label */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.dc-hnode__inner img {
  display: block;
  height: 3.8cqw;                                    /* 73 */
  width: auto;
  transition: transform 0.35s var(--ease), filter 0.35s var(--ease);
}
.dc-hnode__inner:hover img {
  transform: scale(1.08);
  filter: drop-shadow(0 0 8px var(--green-glow));
}
.dc-hnode__inner span {
  margin-top: 1.41cqw;
  font-size: max(1.12cqw, 10.5px);                   /* 21.5 */
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
  color: var(--ink);
}

/* 5. Responsive --------------------------------------------------------------- */
@media (max-width: 1199.98px) {
  .dc-features__grid {
    gap: 2rem;
    max-width: 92vw;
  }
}

@media (max-width: 991.98px) {
  .art--mermaid {
    background-image: image-set(
      url("../img/deception/hero-1280.webp") type("image/webp"),
      url("../img/deception/hero.jpg") type("image/jpeg")
    );
  }
  .dc-features__grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    gap: 1.5rem;
  }
  .dc-fcard {
    min-height: 0;
  }

  /* copy above, venn below — nothing overlaps */
  .dc-about {
    grid-template-columns: 1fr;
    row-gap: 4.5rem;
    padding: 4rem var(--pad-x) 0;
  }
  .dc-about__copy {
    padding-top: 0;
  }
  .dc-about__body {
    max-width: 40rem;
  }
  .dc-venn {
    width: min(100%, 540px);
    margin: 0 auto;
    padding-top: 3rem;           /* room for the "Decoys" / "Triage" labels */
  }

  /* hexagon: same diagram, empty sides (comp x 0-400 / 1520-1920) cropped */
  .dc-hex {
    overflow-x: clip;
    overflow-y: visible;
  }
  .dc-hex__inner {
    width: calc(100% * 1920 / 1120);
    margin-left: calc(-100% * 400 / 1120);
  }
}

@media (max-width: 767.98px) {
  /* the artwork sits below the hero copy (no overlap), cards follow it */
  .art--mermaid {
    margin-top: 1.5rem;
  }
  .dc-features {
    margin-top: 0;
  }
  .dc-benefits__cols {
    grid-template-columns: minmax(0, 520px);
    row-gap: clamp(0.75rem, 1.3vw, 25px);
  }
  .dc-steps .pr-step__text {
    max-width: none;
  }
}

@media (max-width: 575.98px) {
  .dc-about__title {
    letter-spacing: 0.22em;
  }
  .dc-hnode__inner span {
    white-space: normal;
  }
}

/* Short desktop screens: the title block starts higher so the top of the
   mermaid artwork is on the first screen. */
@media (min-width: 992px) and (max-height: 920px) {
  .dc-hero {
    padding-top: max(110px, 9.38vw);                  /* 420 -> 180 */
  }
}
