/* Where evidence lives: the sources as three layers (device, network, cloud), every investigation type in view and the
   specialists who work the case. Static and legible; the layers build up once as the chapter comes into view. */
.df-where-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 600px); gap: 30px 60px; align-items: end; }
.df-where-head > p { font-size: 16px; line-height: 1.75; color: #5d6c87; }
.df-where-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(30px, 3vw, 56px); margin-top: 30px; align-items: stretch; }

.df-strata { margin: 0; padding: 20px 22px 16px; border-radius: 16px; color: #d4e2fa; background: radial-gradient(90% 80% at 0% 100%, #2b4794 0%, transparent 62%), linear-gradient(160deg, #15276a, #0f1c4d 70%); box-shadow: 0 24px 50px #0f1c4d26; display: flex; flex-direction: column; }
.df-strata-top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.df-strata-top span { font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #b7cef5; }
.df-strata-top small { font-size: 11px; color: #8ea6d6; }
.df-layers { position: relative; flex: 1; display: flex; flex-direction: column-reverse; justify-content: center; gap: 10px; margin-top: 14px; }
.df-layers::before { content: ''; position: absolute; left: 29px; top: 34px; bottom: 34px; width: 2px; background: linear-gradient(0deg, #e0343c, #6f94e0 55%, #a9c6ff); opacity: .7; }
.df-layer { position: relative; display: grid; grid-template-columns: 172px minmax(0, 1fr); gap: 16px; align-items: center; padding: 14px 14px 14px 16px; border-radius: 12px; background: #ffffff08; box-shadow: inset 0 0 0 1px #8fb0ff24; }
.df-layer:nth-child(2) { background: #ffffff0e; }
.df-layer:nth-child(3) { background: #ffffff15; box-shadow: inset 0 0 0 1px #a9c6ff38; }
.df-layer-name { display: grid; grid-template-columns: 28px 1fr; column-gap: 12px; align-items: center; }
.df-layer-name > span { grid-row: span 2; position: relative; z-index: 1; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #0f1c4d; box-shadow: inset 0 0 0 2px #6f94e0; color: #d5e4ff; font: 700 10px ui-monospace, SFMono-Regular, Menlo, monospace; }
.df-layer:first-child .df-layer-name > span { box-shadow: inset 0 0 0 2px #e0343c; }
.df-layer-name b { font-size: 18px; font-weight: 800; color: #fff; letter-spacing: -.02em; }
.df-layer-name small { font-size: 11px; line-height: 1.35; color: #9fb6e2; }
.df-layer ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.df-layer ul li { display: grid; grid-template-columns: 32px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px; align-items: center; min-height: 56px; padding: 9px 11px; border-radius: 10px; background: #0f1c4d8c; box-shadow: inset 0 0 0 1px #9cb8ff26; }
.df-layer ul i { grid-row: 1 / span 2; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: #2a4590; color: #d3e3ff; }
.df main .df-layer ul svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.df-layer ul b { align-self: end; font-size: 12.5px; line-height: 1.3; font-weight: 700; color: #eef4ff; }
.df-layer ul li:not(:has(small)) b { grid-row: 1 / span 2; align-self: center; }
.df-layer ul small { align-self: start; margin-top: 2px; font-size: 10.5px; line-height: 1.3; color: #9fb6e2; }
.df-strata-os { margin-top: 14px; padding-top: 12px; border-top: 1px solid #8fb0ff24; font-size: 12px; font-weight: 600; letter-spacing: .03em; color: #c3d5f5; }
.df-strata-os span { margin-right: 10px; font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #7f98cc; }

.df-types { display: flex; flex-direction: column; min-width: 0; }
.df .df-types h3 { font-size: 22px; font-weight: 900; margin-bottom: 6px; }
.df-type { flex: 1; padding: 16px 0 14px; border-top: 1px solid #d3deed; }
.df-type header { display: flex; align-items: center; gap: 10px; }
.df-type header i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: #e4ecf8; color: #1f4f8f; }
.df main .df-type header i svg { width: 18px; height: 18px; }
.df-type header b { font-size: 15px; font-weight: 800; color: #11234e; }
.df-type ul { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 22px; margin-top: 12px; padding-left: 44px; }
.df-type li { position: relative; padding-left: 14px; font-size: 13.5px; line-height: 1.45; font-weight: 600; color: #3a577c; }
.df-type li::before { content: ''; position: absolute; left: 0; top: 7px; width: 5px; height: 5px; border-radius: 1px; background: #2f6db0; }

.df-team { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 24px; padding: 16px 22px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px #dce5f1; }
.df-team > b { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #4775ab; }
.df-team ul { display: flex; flex-wrap: wrap; gap: 8px; }
.df-team li { padding: 7px 12px; border-radius: 999px; background: #eef3fb; font-size: 12.5px; font-weight: 700; color: #1f4f8f; }
.df .df-types .cy-link { margin-top: 12px; align-self: flex-start; }

/* the layers build up from the device, once, when the chapter comes into view (never tied to the scroll position) */
.df-strata.rv .df-layer { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .6s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--n, 0) * 160ms); }
.df-strata.rv.in .df-layer { opacity: 1; transform: none; }

@media (min-width: 1100px) and (min-height: 700px) and (max-height: 950px) {
  .df-where-head > p { font-size: 13px; }
  .df-where-grid { margin-top: 18px; }
  .df-strata { padding: 14px 18px 12px; }
  .df-layers { gap: 7px; margin-top: 10px; }
  .df-layer { padding-block: 9px; }
  .df-layer ul li { min-height: 46px; padding-block: 6px; }
  .df-strata-os { margin-top: 10px; padding-top: 9px; font-size: 11px; }
  .df .df-types h3 { font-size: 18px; }
  .df-type { padding: 11px 0 9px; }
  .df-type ul { margin-top: 8px; gap: 5px 18px; }
  .df-type li { font-size: 12px; }
  .df-team { margin-top: 14px; padding: 10px 18px; }
  .df-team li { font-size: 11.5px; padding: 5px 10px; }
}
@media (max-width: 1500px) {
  .df-layer { grid-template-columns: 1fr; gap: 10px; }
  .df-layer-name { grid-template-columns: 28px auto 1fr; }
  .df-layer-name > span { grid-row: auto; }
  .df-layer-name small { padding-left: 4px; }
  .df-layers::before { display: none; }
}
@media (max-width: 1100px) {
  .df-where-head, .df-where-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .df-type ul { grid-template-columns: 1fr; padding-left: 0; }
  .df-layer-name { grid-template-columns: 28px 1fr; }
  .df-layer-name small { grid-column: 2; padding-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .df-strata.rv .df-layer { opacity: 1; transform: none; transition: none; } }
