/* ============================================================
   Digital Experts - 2026 art direction components
   Loaded after de-site.css and de-brand-2026.css.

   1. .de-tile   editorial industry cards: a colour field over the
      photograph, the gold double rule inset from the edge, the
      eyebrow lifted to the top, headline on the base line.

   2. .de-bento  the home page product overview. Not a screenshot
      and not a literal screen: a bento of bold colour cards that
      carry the product's real numbers and language. Animates in
      on scroll, honours prefers-reduced-motion.

   3. .de-ui     a closer recreation of the platform's own screens
      for the platform pages, where a visitor has asked for
      detail. Panels are markup, not images, so they stay sharp,
      reflow on a phone, and carry no real customer data.

   Implementation note for the tiles: the frame and the colour
   wash are real child elements, not pseudo-elements. .de-solution-
   card already spends ::before on its own scrim, so .de-tile
   switches that off and paints its own layers rather than
   depending on the 44KB de-site.css underneath it.
   ============================================================ */

/* ============================================================
   1. Editorial industry tiles
   ============================================================ */

.de-solution-card.de-tile {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 5px;
  background-size: cover;
  background-position: center;
  min-height: 420px;
  isolation: isolate;
  text-decoration: none;
  transition: transform var(--dur-fast, 160ms) ease;
}

.de-solution-card.de-tile::before { display: none !important; }

.de-tile .de-tile-wash {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(176deg, rgba(14,47,35,0.50) 0%, rgba(14,47,35,0.74) 48%, rgba(14,47,35,0.95) 100%);
}

.de-tile-navy .de-tile-wash {
  background: linear-gradient(176deg, rgba(0,22,64,0.52) 0%, rgba(0,22,64,0.76) 48%, rgba(0,22,64,0.95) 100%);
}

.de-tile-burgundy .de-tile-wash {
  background: linear-gradient(176deg, rgba(63,26,36,0.52) 0%, rgba(63,26,36,0.76) 48%, rgba(63,26,36,0.95) 100%);
}

.de-tile-brown .de-tile-wash {
  background: linear-gradient(176deg, rgba(48,35,23,0.52) 0%, rgba(48,35,23,0.76) 48%, rgba(48,35,23,0.95) 100%);
}

.de-tile .de-tile-frame {
  position: absolute;
  inset: 14px;
  z-index: 2;
  pointer-events: none;
  border: 1px solid rgba(238, 212, 132, 0.44);
  outline: 1px solid rgba(238, 212, 132, 0.18);
  outline-offset: 4px;
  border-radius: 2px;
  transition: border-color var(--dur-fast, 160ms) ease;
}

.de-solution-card.de-tile .de-solution-body {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding: 34px 32px;
  background: none;
}

.de-solution-card.de-tile .de-eyebrow {
  font-size: 9.5px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--de-gold-light);
  margin: 0;
  max-width: 22ch;
}

.de-solution-card.de-tile h3 {
  font-family: var(--font-display);
  font-size: clamp(21px, 2.1vw, 27px);
  line-height: 1.18;
  font-style: normal;
  color: var(--de-cream);
  margin: 0 0 18px;
  max-width: 17ch;
  text-wrap: balance;
}

.de-solution-card.de-tile h3 em { font-style: italic; color: var(--de-cream); }

.de-solution-card.de-tile .de-link {
  display: inline-block;
  align-self: flex-start;
  width: auto;
  font-size: 10.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--de-gold-light);
  border-bottom: 1px solid rgba(238, 212, 132, 0.4);
  padding-bottom: 4px;
}

.de-solution-card.de-tile:hover .de-tile-frame { border-color: rgba(238, 212, 132, 0.8); }
.de-solution-card.de-tile:hover { transform: translateY(-3px); }

@media (max-width: 860px) {
  .de-solution-card.de-tile { min-height: 360px; }
  .de-solution-card.de-tile .de-solution-body { padding: 26px 24px; }
  .de-tile .de-tile-frame { inset: 11px; outline-offset: 3px; }
}

/* ============================================================
   2. The bento overview
   ============================================================ */

.de-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

.de-bento > * {
  border-radius: 20px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  min-width: 0;
}

.de-b-live   { grid-column: span 3; }
.de-b-topics { grid-column: span 3; grid-row: span 2; }
.de-b-week   { grid-column: span 6; }
.de-b-gauge  { grid-column: span 3; }
.de-b-act    { grid-column: span 6; }

/* Every card animates in from the same direction, staggered, so
   the board assembles rather than appearing. .is-in is added by
   an IntersectionObserver on the board itself. */
.de-bento > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 520ms ease, transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.de-bento.is-in > * { opacity: 1; transform: none; }
.de-bento.is-in > *:nth-child(1) { transition-delay: 0ms; }
.de-bento.is-in > *:nth-child(2) { transition-delay: 70ms; }
.de-bento.is-in > *:nth-child(3) { transition-delay: 140ms; }
.de-bento.is-in > *:nth-child(4) { transition-delay: 210ms; }
.de-bento.is-in > *:nth-child(5) { transition-delay: 280ms; }

/* Card labels and figures ------------------------------------- */

.de-bento .de-b-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0 0 auto;
}

.de-bento .de-b-fig {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 62px);
  line-height: 0.95;
  margin: 20px 0 6px;
  letter-spacing: -0.01em;
}

.de-bento .de-b-note {
  font-size: 12.5px;
  line-height: 1.45;
  margin: 0;
}

/* Live card - gold ------------------------------------------- */

.de-b-live {
  background: var(--de-gold);
  color: var(--de-green-deep);
  display: flex;
  flex-direction: column;
}

.de-bento .de-b-live .de-b-label { color: rgba(14, 47, 35, 0.7); }
.de-bento .de-b-live .de-b-fig { color: var(--de-green-deep); }
.de-bento .de-b-live .de-b-note { color: rgba(14, 47, 35, 0.72); }

.de-b-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--de-green-deep);
  flex: none;
  box-shadow: 0 0 0 0 rgba(14, 47, 35, 0.5);
  animation: de-b-pulse 2.4s ease-out infinite;
}

@keyframes de-b-pulse {
  70%  { box-shadow: 0 0 0 8px rgba(14, 47, 35, 0); }
  100% { box-shadow: 0 0 0 0 rgba(14, 47, 35, 0); }
}

/* Topics card - deep green, list fading out ------------------- */

.de-b-topics {
  background: var(--de-green-deep);
  color: var(--de-cream);
  display: flex;
  flex-direction: column;
}

.de-bento .de-b-topics .de-b-label { color: var(--de-gold-light); margin-bottom: 20px; }

.de-b-rows { display: grid; gap: 13px; }

/* The list runs past the bottom edge and fades, the way a long
   list does in the product. Mask rather than a gradient overlay
   so it works on any card colour. */
.de-b-fade {
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
}

.de-b-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  font-size: 13px;
}

.de-bento .de-b-row span { color: rgba(238, 232, 222, 0.88); }
.de-bento .de-b-row b { font-weight: 600; color: var(--de-cream); }

/* Week card - white with chunky bars -------------------------- */

.de-b-week {
  background: var(--de-white);
  color: var(--de-green-deep);
  display: flex;
  flex-direction: column;
}

.de-bento .de-b-week .de-b-label { color: var(--text-muted); }
.de-bento .de-b-week .de-b-fig { color: var(--de-green-deep); margin: 14px 0 18px; }

.de-b-bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 120px;
  margin-top: auto;
}

.de-b-bar { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 9px; height: 100%; }

.de-b-bar-track {
  width: 100%;
  flex: 1;
  display: flex;
  align-items: flex-end;
  background: rgba(21, 71, 52, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.de-b-bar-fill {
  width: 100%;
  background: var(--de-green-mid);
  border-radius: 999px;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 760ms cubic-bezier(0.22, 1, 0.36, 1);
}

.de-bento.is-in .de-b-bar-fill { transform: scaleY(1); }
.de-bento.is-in .de-b-bar:nth-child(1) .de-b-bar-fill { transition-delay: 180ms; }
.de-bento.is-in .de-b-bar:nth-child(2) .de-b-bar-fill { transition-delay: 240ms; }
.de-bento.is-in .de-b-bar:nth-child(3) .de-b-bar-fill { transition-delay: 300ms; }
.de-bento.is-in .de-b-bar:nth-child(4) .de-b-bar-fill { transition-delay: 360ms; }
.de-bento.is-in .de-b-bar:nth-child(5) .de-b-bar-fill { transition-delay: 420ms; }
.de-bento.is-in .de-b-bar:nth-child(6) .de-b-bar-fill { transition-delay: 480ms; }
.de-bento.is-in .de-b-bar:nth-child(7) .de-b-bar-fill { transition-delay: 540ms; }

.de-bento .de-b-bar em {
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-muted);
}

/* Gauge card - cream with a tick arc -------------------------- */

.de-b-gauge {
  background: var(--de-cream-soft);
  color: var(--de-green-deep);
  display: flex;
  flex-direction: column;
}

.de-bento .de-b-gauge .de-b-label { color: rgba(14, 47, 35, 0.62); }
.de-bento .de-b-gauge .de-b-note { color: rgba(14, 47, 35, 0.65); }

.de-b-arc { position: relative; margin: 14px auto 0; width: 100%; max-width: 220px; }
.de-b-arc svg { display: block; width: 100%; height: auto; }

.de-b-arc-track { fill: none; stroke: rgba(21, 71, 52, 0.22); stroke-width: 13; stroke-dasharray: 2 7; }

.de-b-arc-val {
  fill: none;
  stroke: var(--de-green);
  stroke-width: 13;
  stroke-linecap: butt;
  stroke-dasharray: 0 100;
  transition: stroke-dasharray 1100ms cubic-bezier(0.22, 1, 0.36, 1) 260ms;
}

.de-bento.is-in .de-b-arc-val { stroke-dasharray: 81 100; }

.de-b-arc-fig {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(30px, 3.4vw, 40px);
  line-height: 1;
  color: var(--de-green-deep);
}

/* Action card - brand green, gold button --------------------- */

.de-b-act {
  background: var(--de-green);
  color: var(--de-cream);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.de-bento .de-b-act .de-b-label { color: var(--de-gold-light); margin-bottom: 0; }

.de-b-act-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.de-bento .de-b-act-count {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(238, 232, 222, 0.7);
  margin: 0;
}

.de-bento .de-b-q {
  font-family: var(--font-display);
  font-size: clamp(19px, 2.1vw, 26px);
  line-height: 1.28;
  color: var(--de-cream);
  margin: 6px 0 0;
  max-width: 26ch;
}

.de-bento .de-b-act .de-b-note { color: rgba(238, 232, 222, 0.74); margin-top: auto; }

.de-b-acts { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 16px; }

.de-b-btn {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 999px;
  padding: 11px 20px;
  background: var(--de-gold);
  color: var(--de-green-deep);
}

.de-b-btn.is-ghost {
  background: transparent;
  color: var(--de-cream);
  border: 1px solid rgba(238, 232, 222, 0.4);
}

/* A slim line of everything the board is not showing. */
.de-bento-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-top: 16px;
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-muted);
}

.de-bento-strip b { color: var(--de-green-deep); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .de-bento > *,
  .de-b-bar-fill,
  .de-b-arc-val { transition: none; }
  .de-bento > * { opacity: 1; transform: none; }
  .de-b-bar-fill { transform: scaleY(1); }
  .de-b-arc-val { stroke-dasharray: 81 100; }
  .de-b-dot { animation: none; }
}

@media (max-width: 1040px) {
  .de-b-live   { grid-column: span 6; }
  .de-b-topics { grid-column: span 6; grid-row: auto; }
  .de-b-week   { grid-column: span 12; }
  .de-b-gauge  { grid-column: span 5; }
  .de-b-act    { grid-column: span 7; }
}

@media (max-width: 720px) {
  .de-bento > * { grid-column: span 12 !important; padding: 20px; border-radius: 16px; }
  .de-b-bars { height: 100px; gap: 7px; }
}

/* ============================================================
   3. Product UI recreation - platform pages
   ============================================================ */

.de-ui {
  background: var(--de-white);
  border: 1px solid rgba(21, 71, 52, 0.14);
  border-radius: 16px;
  box-shadow: 0 26px 64px rgba(21, 71, 52, 0.14);
  overflow: hidden;
  font-family: var(--font-body);
  text-align: left;
}

.de-ui-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 22px 24px 18px;
  border-bottom: 1px solid rgba(21, 71, 52, 0.10);
}

/* Panel headings are <p>, not real headings: this is a picture of
   an app, so it should not enter the page's heading outline, and
   it sidesteps the .de-section-white h1-h4 colour rules. */
.de-ui .de-ui-title {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.2;
  color: var(--de-green-deep);
  margin: 0;
}

.de-ui .de-ui-sub { font-size: 12.5px; line-height: 1.5; color: var(--text-muted); margin: 5px 0 0; }

.de-ui-seg {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(21, 71, 52, 0.16);
  border-radius: 999px;
  flex: none;
}

.de-ui-seg span {
  font-size: 9.5px;
  letter-spacing: 0.12em;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 999px;
}

.de-ui-seg span.is-on { background: var(--de-green-deep); color: var(--de-cream); }

.de-ui-tabs {
  display: flex;
  gap: 26px;
  padding: 0 24px;
  border-bottom: 1px solid rgba(21, 71, 52, 0.10);
}

.de-ui-tabs span {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-muted);
  padding: 14px 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.de-ui-tabs span.is-on { color: var(--de-green-deep); border-bottom-color: var(--de-green-deep); }

.de-ui-body {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 20px;
  padding: 24px;
  background: #FBFAF8;
}

.de-ui-metric {
  background: linear-gradient(160deg, var(--de-green-mid), var(--de-green));
  border-radius: 14px;
  padding: 22px 20px 20px;
  display: flex;
  flex-direction: column;
}

.de-ui .de-ui-metric-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(238, 232, 222, 0.85);
  margin: 0 0 20px;
}

.de-ui-metric-eyebrow::before {
  content: "";
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: rgba(238, 232, 222, 0.18);
  flex: none;
}

.de-ui .de-ui-metric-label {
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(238, 232, 222, 0.8);
  margin: 0 0 6px;
}

.de-ui .de-ui-metric-value {
  font-family: var(--font-display);
  font-size: clamp(38px, 4.4vw, 50px);
  line-height: 1;
  color: var(--de-cream);
  margin: 0 0 10px;
}

.de-ui .de-ui-metric-note {
  font-size: 11.5px;
  line-height: 1.55;
  color: rgba(238, 232, 222, 0.72);
  margin: 0 0 20px;
}

.de-ui-metric-rows {
  display: grid;
  gap: 11px;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid rgba(238, 232, 222, 0.22);
}

.de-ui-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.de-ui .de-ui-row span {
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(238, 232, 222, 0.78);
  margin: 0;
}

.de-ui .de-ui-row strong { font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--de-cream); }

.de-ui-gaps { display: grid; gap: 14px; align-content: start; }

.de-ui-gaps-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

.de-ui .de-ui-gaps-head p {
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0;
}

.de-ui-card {
  background: var(--de-white);
  border: 1px solid rgba(21, 71, 52, 0.16);
  border-radius: 12px;
  padding: 16px 16px 14px;
}

.de-ui-tag {
  display: inline-block;
  font-size: 9px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--de-green);
  background: var(--de-green-soft);
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 11px;
}

.de-ui .de-ui-card p { font-size: 12.5px; line-height: 1.6; color: var(--text-body); margin: 0 0 14px; }

.de-ui-btns { display: flex; gap: 8px; flex-wrap: wrap; }

.de-ui-btn {
  font-size: 9.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 999px;
  padding: 10px 18px;
  background: var(--de-green-deep);
  color: var(--de-cream);
}

.de-ui-btn.is-ghost { background: transparent; color: var(--text-muted); border: 1px solid rgba(21, 71, 52, 0.18); }

.de-ui-plain { padding: 20px 24px 24px; background: #FBFAF8; }

.de-ui-drop {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px dashed rgba(21, 71, 52, 0.28);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 18px;
  background: var(--de-white);
}

.de-ui-drop-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(21, 71, 52, 0.18);
  flex: none;
}

.de-ui .de-ui-drop strong { display: block; font-size: 13px; color: var(--de-green-deep); font-weight: 600; }
.de-ui .de-ui-drop span { font-size: 11.5px; color: var(--text-muted); }

/* Wrapped in .de-ui-scroll so a narrow phone scrolls the table
   rather than the whole page. */
.de-ui-scroll { overflow-x: auto; }

.de-ui-table {
  width: 100%;
  min-width: 460px;
  border-collapse: collapse;
  background: var(--de-white);
  border: 1px solid rgba(21, 71, 52, 0.12);
  border-radius: 12px;
  overflow: hidden;
}

.de-ui-table th {
  text-align: left;
  font-size: 9.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-muted);
  padding: 14px 16px;
  background: #FBFAF8;
  border-bottom: 1px solid rgba(21, 71, 52, 0.12);
  white-space: nowrap;
}

.de-ui-table td {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-body);
  padding: 14px 16px;
  border-bottom: 1px solid rgba(21, 71, 52, 0.08);
  vertical-align: middle;
}

.de-ui-table tr:last-child td { border-bottom: 0; }

.de-ui .de-ui-table strong { display: block; font-size: 12.5px; font-weight: 600; color: var(--de-green-deep); }
.de-ui .de-ui-table small { display: block; font-size: 11px; color: var(--text-muted); margin-top: 2px; }

.de-ui-doc { display: flex; align-items: center; gap: 12px; }

.de-ui-doc-chip {
  width: 28px;
  height: 34px;
  border-radius: 4px 4px 4px 0;
  background: var(--de-green-soft);
  border: 1px solid rgba(21, 71, 52, 0.16);
  flex: none;
}

.de-ui-pill {
  display: inline-block;
  font-size: 9px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 999px;
  padding: 5px 11px;
  color: var(--de-green);
  background: var(--de-green-soft);
  border: 1px solid rgba(21, 71, 52, 0.14);
  white-space: nowrap;
}

.de-ui-pill.is-muted { color: var(--text-muted); background: transparent; }
.de-ui-pill.is-dark { color: var(--de-cream); background: var(--de-green-deep); border-color: var(--de-green-deep); }

.de-ui-foot { padding: 12px 24px 14px; border-top: 1px solid rgba(21, 71, 52, 0.10); background: var(--de-white); }

.de-ui .de-ui-foot p {
  font-size: 10.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0;
}

@media (max-width: 860px) {
  .de-ui-body { grid-template-columns: 1fr; padding: 18px; gap: 16px; }
  .de-ui-top { padding: 18px 18px 15px; }
  .de-ui-tabs { padding: 0 18px; gap: 20px; }
  .de-ui-plain { padding: 16px 18px 18px; }
  .de-ui-foot { padding: 11px 18px 13px; }
}
