/* =========================================================
   Enterprise impact operating model — DIAMOND LATTICE
   Replaces the old "Enterprise impact operating model" block
   in home.css AND the .impact-model-* / .model-* / .outcome-*
   lines inside the 920px and 580px media queries.
   ========================================================= */

.impact-model-section {
  position: relative;
  margin: 0;
  padding: 110px 0 104px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 72% 34%, rgba(18, 192, 255, .15), transparent 40%),
    radial-gradient(ellipse at 25% 78%, rgba(91, 0, 194, .16), transparent 42%),
    linear-gradient(145deg, #050208 0%, #110027 58%, #06020b 100%);
  color: #fff;
}

.impact-model-section::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .08;
  background-image:
    linear-gradient(rgba(255, 255, 255, .16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .16) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
}

/* ---------- Layout: lattice left, language right, outcomes below ---------- */
.impact-model-inner {
  position: relative;
  z-index: 1;
  /* width: min(1180px, 90vw); */
  width: min(1902px, 86vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  grid-template-areas: "field aside";
  column-gap: clamp(56px, 8vw, 140px);
  align-items: center;
}

/* ---------- Right column: language ---------- */
.impact-model-aside {
  grid-area: aside;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.impact-model-heading {
  grid-area: heading;
  display: block;
  margin: 0;
}

.impact-model-heading .eyebrow {
  display: block;
  margin: 0 0 22px;
  color: #12c0ff;
}

.impact-model-heading h2 {
  max-width: none;
  margin: 0 0 26px;
  font-size: clamp(42px, 4.8vw, 64px);
}

.impact-model-heading h2 br { display: none; }
.impact-model-heading h2 br + em::before { content: " "; white-space: pre; }  /* keeps the space the <br> used to provide */
.impact-model-heading h2 em { display: contents; color: #c000ff; }

.impact-model-heading > p:last-child {
  max-width: 460px;
  margin: 0;
  font-size: 16px;
  color: rgba(255, 255, 255, .66);
}

/* ---------- Diamond field ---------- */
/* 8 x 10 unit grid. --x / --y = centre, --r = half-diagonal (large = 2, small = 1). */
.impact-model {
  --dm: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  position: relative;
  grid-area: field;
  /* let the lattice bleed past the container toward the left edge of the viewport */
  --bleed: min(calc((100vw - min(1902px, 86vw)) / 2 * .85), 200px);
  margin-left: calc(-1 * var(--bleed));
  width: min(1100px, calc(100% + var(--bleed)));   /* bleeds left, but never outgrows its type on very wide screens */
  justify-self: end;
  aspect-ratio: 8 / 10.4;
  container-type: inline-size;
  list-style: none;
  padding: 0;
}

.dia {
  position: absolute;
  left: calc((var(--x) - var(--r)) / 8 * 100%);
  top: calc((var(--y) - var(--r)) / 10 * 100%);
  width: calc(var(--r) * 2 / 8 * 100%);
  height: calc(var(--r) * 2 / 10 * 100%);
  display: grid;
  place-items: center;
  isolation: isolate;
  clip-path: var(--dm);
  background: var(--edge);            /* the "border" */
  transition: filter .5s ease;
}

/* inner fill sits above the edge colour, below the text */
.dia::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 1px;
  clip-path: var(--dm);
  background: var(--fill);
}

.dia:hover { filter: brightness(1.12); z-index: 2; }

/* breathing room between neighbouring diamonds */
.dia-lg { transform: scale(.975); }
.dia-sm,
.dia-deco { transform: scale(.93); }

/* pillar tints (rgb triplets) */
.p1 { --tint: 18, 192, 255; }
.p2 { --tint: 179, 140, 255; }
.p3 { --tint: 192, 0, 255; }

/* ---------- Large diamonds ---------- */
/* Restrained system: deep, low-saturation surfaces, hairline strokes,
   colour used only for the 3 pillars and their "Creates" results. */
.dia-1 {
  --edge: linear-gradient(135deg, rgba(18, 192, 255, .7), rgba(18, 192, 255, .1));
  --fill: linear-gradient(150deg, #0e1f4f 0%, #080534 75%);
}

.dia-2 {  /* featured — the one luminous surface */
  --edge: linear-gradient(135deg, rgba(18, 192, 255, .85), rgba(179, 140, 255, .45));
  --fill: linear-gradient(150deg, #17398c 0%, #2a0f7a 58%, #150657 100%);
}

.dia-3 {
  --edge: linear-gradient(135deg, rgba(192, 0, 255, .65), rgba(179, 140, 255, .12));
  --fill: linear-gradient(150deg, #45107f 0%, #170550 65%, #0a0226 100%);
}

.dia-lg .dia-body {
  width: 58%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5cqw;
  text-align: center;
}

.model-number {
  margin: 0;
  font: 200 clamp(18px, 2.8cqw, 40px)/1 var(--display);
  letter-spacing: .02em;
  color: rgba(255, 255, 255, .34);
}

.model-icon {
  width: clamp(24px, 3.4cqw, 44px);
  height: clamp(24px, 3.4cqw, 44px);
  margin: .5cqw 0;
  color: rgba(var(--tint), .9);
}

.model-icon .icon,
.model-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  stroke-width: 1.1;      /* finer line weight */
}

.model-kicker {
  margin: 0;
  font-size: clamp(7.5px, 1cqw, 12px);
  letter-spacing: .28em;
  font-weight: 600;
  color: rgba(var(--tint), .9);
}

.dia-lg h3 {
  margin: .5cqw 0 0;
  font: 300 clamp(18px, 3.1cqw, 34px)/1.08 var(--display);
  letter-spacing: -.01em;
}

.model-purpose {
  margin: .5cqw 0 0;
  font-size: clamp(10px, 1.45cqw, 15.5px);
  line-height: 1.45;
  color: rgba(255, 255, 255, .58);
}

/* ---------- Small connecting diamonds: quiet, neutral ---------- */
.dia-sm .dia-body {
  width: 70%;
  text-align: center;
  font-size: clamp(10px, 1.7cqw, 16px);
  line-height: 1.3;
  letter-spacing: .005em;
  color: rgba(255, 255, 255, .74);
  text-wrap: balance;
}

.dia-sm {
  --edge: linear-gradient(135deg, rgba(var(--tint), .2), rgba(255, 255, 255, .05));
  --fill: linear-gradient(145deg, #0b0a2b, #07051c);
}

/* "Creates ___" — a single quiet accent per pillar */
.dia-result .dia-body {
  width: 78%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4cqw;
}

.model-result-label {
  font-size: clamp(7px, .95cqw, 10.5px);
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
}

.dia-result strong {
  font: 300 clamp(14px, 2.2cqw, 24px)/1.05 var(--display);
  letter-spacing: -.005em;
  color: #dccfff;
}

.p1.dia-result { --fill: linear-gradient(145deg, #0a2350, #080534); --edge: linear-gradient(135deg, rgba(18,192,255,.5), rgba(179,140,255,.15)); }
.p2.dia-result { --fill: linear-gradient(145deg, #1f1a63, #0d0640); --edge: linear-gradient(135deg, rgba(179,140,255,.5), rgba(18,192,255,.15)); }
.p3.dia-result { --fill: linear-gradient(145deg, #3a0c70, #120442); --edge: linear-gradient(135deg, rgba(192,0,255,.5), rgba(179,140,255,.15)); }

/* decorative fillers: structure only, no colour */
.dia-deco,
.dia-deco-b {
  --edge: rgba(255, 255, 255, .06);
  --fill: #06041a;
}

/* ---------- Outcomes: overlapping hairline diamonds ---------- */
.outcome-layer {
  grid-area: outcomes;   /* only used when the aside is flattened on tablet/mobile */
  margin: 0;
  padding: 0;
  border: 0;
}

.outcome-label {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 22px  39px;
  font-size: 10.5px;
  letter-spacing: .26em;
  font-weight: 600;
  color: #ff54c2;
}

.outcome-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .22), transparent);
}

.outcome-items {
  --dm: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  /* hairline: outer diamond minus an inset diamond (even-odd) */
  --ring: polygon(evenodd, 50% 0, 100% 50%, 50% 100%, 0 50%, 50% 0,
                  50% 1px, calc(100% - 1.5px) 50%, 50% calc(100% - 1px), 1.5px 50%, 50% 1px);
  position: relative;
  margin-left: -68px;
  margin-top: 31px;
  width: 100%;
  max-width: 330px;
  aspect-ratio: 1 / .92;
  container-type: inline-size;
}

.oc {
  position: absolute;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  padding: 0 13%;
  isolation: isolate;
  text-align: center;
  clip-path: var(--dm);
  background: var(--oc-fill);
  font: 400 clamp(10.5px, 3.5cqw, 13.5px)/1.25 var(--display);
  letter-spacing: .01em;
  color: rgba(255, 255, 255, .88);
  text-wrap: balance;
}

.oc::after {            /* outline */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  clip-path: var(--ring);
  background: var(--oc-edge);
}

/* sizes / positions in cqw so the cluster scales with the column */
.oc-1 { width: 44cqw; left: 37px;    top: 24cqw;
        --oc-fill: linear-gradient(145deg, rgba(255,255,255,.07), rgba(255,255,255,.015));
        --oc-edge: rgba(18,192,255,.6); }
.oc-2 { width: 44cqw; left: 35cqw; top: 0px; 
        --oc-fill: linear-gradient(145deg, rgba(255,255,255,.07), rgba(255,255,255,.015));
        --oc-edge: rgba(179,140,255,.6); }
.oc-3 { width: 44cqw; left: 59cqw; top: 24.25cqw;
        --oc-fill: linear-gradient(145deg, rgba(255,255,255,.07), rgba(255,255,255,.015));
        --oc-edge: rgba(192,100,255,.6); }
.oc-4 { width: 52cqw; left: 31cqw; top: 48cqw;
        --oc-fill: linear-gradient(145deg, rgba(91,0,194,.4), rgba(14,0,100,.25));
        --oc-edge: linear-gradient(135deg, rgba(18,192,255,.75), rgba(179,140,255,.6)); }

/* ---------- Tablet: stack, lattice centred ---------- */
@media (max-width: 980px) {
  .impact-model-section { padding: 90px 0; }

  .impact-model-inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "heading"
      "field"
      "outcomes";
    row-gap: 48px;
  }

  .impact-model {
    width: 100%;
    max-width: 760px;
    margin-inline: auto;   /* cancels the desktop bleed */
    justify-self: auto;
  }

  /* flatten the aside so heading / field / outcomes can stack in order */
  .impact-model-aside { display: contents; }

  .impact-model-heading > p:last-child { max-width: 560px; }
}

/* ---------- Mobile: diamonds stay for the 3 pillars, details become a list ---------- */
@media (max-width: 640px) {
  .impact-model {
    aspect-ratio: auto;
    container-type: normal;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 420px;
  }

  .dia {
    position: relative;   /* keeps the ::before fill anchored to each diamond */
    left: auto;
    top: auto;
    width: auto;
    height: auto;
    display: block;
  }

  .dia, .dia-lg, .dia-sm { transform: none; }
  .dia-deco { display: none; }

  .dia-lg {
    width: min(100%, 360px);
    aspect-ratio: 1 / 1.1;
    margin: 30px auto 6px;
    display: grid;
  }

  .dia-lg .dia-body { width: 66%; gap: 5px; }
  .model-number { font-size: 24px; }
  .model-icon { width: 30px; height: 30px; margin: 2px 0; }
  .model-kicker { font-size: 8px; }
  .dia-lg h3 { font-size: 20px; margin-top: 2px; }
  .model-purpose { font-size: 11px; margin-top: 2px; }

  .dia-sm {
    clip-path: none;
    background: none;
    border-left: 1px solid rgba(var(--tint), .5);
    padding: 10px 14px 10px 18px;
  }

  .dia-sm::before { display: none; }
  .dia-sm .dia-body { width: auto; text-align: left; font-size: 13px; }

  .dia-result .dia-body { flex-direction: row; align-items: baseline; gap: 10px; width: auto; }
  .dia-result { background: rgba(var(--tint), .12); }
  .dia-result strong { font-size: 17px; }
  .model-result-label { font-size: 9px; }
  .outcome-items {
    margin-left: -14px;
  }
}