/* Enterprise SEO page styles.
   Scoped to this page: every new class is prefixed .es-.
   Built on the tokens and components in wldm.css.

   Hero composition: headline on the left, the crawl-budget treemap on the
   right, both inside the shared container. (Until Oct 2026 the treemap bled
   to the viewport edge; at the 1400px container that broke alignment and
   overlapped the nav and the stat strip.) */

/* ============================================================ HERO */

.es-hero{
  background:var(--ink-deep);color:var(--on-ink);
  /* figure-first hero: the treemap bleeds to the top edge, so this is the
     one documented exception to --hero-y. The stage supplies the top space. */
  padding:0 0 var(--hero-foot);
  position:relative;overflow:hidden;
}
.es-hero::before{
  content:"";position:absolute;inset:0;pointer-events:none;z-index:0;
  background-image:linear-gradient(rgba(243,240,230,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(243,240,230,.05) 1px,transparent 1px);
  background-size:64px 64px;
  -webkit-mask-image:radial-gradient(120% 100% at 8% 22%,#000 0%,transparent 72%);
  mask-image:radial-gradient(120% 100% at 8% 22%,#000 0%,transparent 72%);
}
.es-hero>.brx-container{position:relative;z-index:2}
.es-hero-copy{position:relative;z-index:2}

/* the stage holds the copy and the figure, side by side */
.es-hero-stage{position:relative;padding:var(--hero-y) 0 var(--s6)}
.es-hero-glow{
  position:absolute;left:-16%;top:-28%;width:62%;height:132%;pointer-events:none;z-index:0;
  background:radial-gradient(closest-side,rgba(225,255,1,.11),transparent 74%);
}
.es-hero-stage>.brx-container{
  display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);
  gap:clamp(32px,4vw,64px);align-items:center;position:relative;z-index:2;
}
.es-hero .h1{color:var(--wh);max-width:12ch}
.es-hero .lead--italic{color:var(--on-ink-lead)}
.es-hero .body{color:var(--on-ink-lead);max-width:44ch}
.es-hero .accent-bar{margin:var(--s4) 0 var(--s4)}
.es-hero .tag{color:var(--on-ink-label);border-color:var(--hair-strong);background:rgba(225,255,1,.08)}
.es-hero .tag .dot{background:var(--ny)}

/* --- the figure --- */
.es-fig{
  position:relative;z-index:1;margin:0;min-width:0;
  display:flex;flex-direction:column;
  border:1px solid var(--line);border-radius:var(--r-lg);
  background:linear-gradient(180deg,rgba(243,240,230,.07),rgba(243,240,230,.03));
  overflow:hidden;
}
.es-fig-head{
  flex:none;
  display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;
  padding:15px clamp(20px,2.4vw,28px);border-bottom:1px solid var(--line);
  font-family:var(--mono);font-size:11px;letter-spacing:.2em;text-transform:uppercase;color:var(--on-ink-label);
}
.es-fig-head .r{letter-spacing:.06em;text-transform:none;color:var(--bl)}

/* --- treemap: cell area is proportional to share (38 / 24 / 17 / 21) --- */
.es-tree{
  position:relative;flex:none;height:clamp(320px,30vw,420px);
  margin:clamp(14px,1.6vw,20px) clamp(14px,1.6vw,20px) 0 clamp(14px,1.6vw,20px);
  border-radius:var(--r-sm);overflow:hidden;
}
.es-cell{
  position:absolute;padding:3px;
  transition:left .95s cubic-bezier(.2,.7,.2,1),top .95s cubic-bezier(.2,.7,.2,1),
             width .95s cubic-bezier(.2,.7,.2,1),height .95s cubic-bezier(.2,.7,.2,1);
}
.es-cell--a{left:0;top:0;width:61.29%;height:62%}
.es-cell--b{left:61.29%;top:0;width:38.71%;height:62%}
.es-cell--c{left:0;top:62%;width:44.74%;height:38%}
.es-cell--d{left:44.74%;top:62%;width:55.26%;height:38%}

/* the pre-morph state: four equal quadrants, before the log files are read */
.es-fig[data-morph="start"] .es-cell--a{left:0;top:0;width:50%;height:50%}
.es-fig[data-morph="start"] .es-cell--b{left:50%;top:0;width:50%;height:50%}
.es-fig[data-morph="start"] .es-cell--c{left:0;top:50%;width:50%;height:50%}
.es-fig[data-morph="start"] .es-cell--d{left:50%;top:50%;width:50%;height:50%}
.es-fig[data-morph="start"] .es-cell-share,
.es-fig[data-morph="start"] .es-cell-label{opacity:0}

.es-cell-box{
  height:100%;width:100%;border-radius:var(--r-sm);
  display:flex;flex-direction:column;justify-content:flex-end;gap:6px;
  padding:16px 18px;overflow:hidden;
  border:1px solid var(--line);
  background:rgba(243,240,230,.07);
  transition:background .3s ease,border-color .3s ease;
}
.es-cell--a .es-cell-box{background:rgba(243,240,230,.13)}
.es-cell--b .es-cell-box{background:rgba(243,240,230,.10)}
.es-cell--c .es-cell-box{background:rgba(243,240,230,.07)}
.es-cell--d .es-cell-box{
  background:linear-gradient(135deg,var(--accent-light),var(--bl));
  border-color:rgba(225,255,1,.55);
  box-shadow:inset 0 3px 0 0 var(--ny);
}
.es-cell-box:hover{background:rgba(243,240,230,.19);border-color:rgba(243,240,230,.36)}
.es-cell--d .es-cell-box:hover{background:linear-gradient(135deg,var(--bl),var(--wh));border-color:var(--ny)}
.es-cell-share{
  font-size:clamp(22px,2.6vw,34px);line-height:1;color:var(--wh);
  transition:opacity .5s ease .35s;
}
.es-cell--d .es-cell-share{color:var(--ink-deep)}
.es-cell-label{
  font-size:14px;line-height:1.35;color:var(--on-ink-lead);max-width:26ch;
  transition:opacity .5s ease .45s;
}
.es-cell--d .es-cell-label{color:var(--ink)}
.es-scan{
  position:absolute;top:0;bottom:0;left:0;width:22%;z-index:3;pointer-events:none;border-radius:var(--r-sm);
  background:linear-gradient(90deg,transparent,rgba(225,255,1,.13),transparent);
  animation:wl-scan 7s ease-in-out infinite;
}

.es-fig-foot{
  flex:none;
  display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:clamp(18px,2.4vw,34px);
  padding:clamp(18px,2vw,24px) clamp(20px,2.4vw,28px);
}
.es-fig-intro{margin:0;font-size:var(--fs-small);font-weight:300;line-height:1.6;color:var(--on-ink-lead);max-width:56ch}
.es-facts{display:flex;flex-direction:column;gap:14px}
.es-fact{display:flex;flex-direction:column;gap:4px}
.es-fact .v{font-family:var(--mono);font-size:15.5px;color:var(--wh)}
.es-fact--alt .v{color:var(--bl)}
.es-fact .k{font-size:14px;line-height:1.45;color:var(--on-ink-label)}

/* stat tiles sit on the ink ground, so they get a glass treatment */
.es-statstrip{background:rgba(243,240,230,.16);border-color:var(--hair-strong)}
.es-statstrip .stat{background:rgba(243,240,230,.05)}
.es-statstrip .stat .k{max-width:34ch}

/* ============================================================ 01 DIAGNOSTIC GRID */

.es-diag-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--s4)}
.es-diag{
  position:relative;overflow:hidden;
  border:1px solid var(--line);border-radius:var(--r-lg);background:var(--surface);
  padding:clamp(26px,2.8vw,34px) clamp(26px,2.8vw,34px) 78px;
  transition:border-color .3s ease,box-shadow .3s ease,transform .3s ease;
}
.es-diag:hover,.es-diag:focus,.es-diag:focus-within{
  border-color:rgba(42,43,41,.42);box-shadow:var(--shadow-hover);transform:translateY(-3px);
}
.es-diag{border-top:4px solid var(--bl)}
.es-diag-top{display:flex;flex-direction:column;gap:6px;margin-bottom:16px}
.es-diag-n{font-family:var(--mono);font-size:14px;letter-spacing:.14em;color:var(--accent-dark)}
.es-diag .ico-tile{transition:background .3s ease}
.es-diag:hover .ico-tile,.es-diag:focus .ico-tile,.es-diag:focus-within .ico-tile{background:var(--ny)}
.es-diag .h3{line-height:1.3}
.es-diag .body{color:var(--ink-soft);max-width:none}
.es-diag-hint{
  position:absolute;left:clamp(26px,2.8vw,34px);right:clamp(26px,2.8vw,34px);bottom:30px;
  display:flex;align-items:center;gap:12px;
}
.es-diag-hint i{flex:1;height:2px;background:var(--bl);display:block}
.es-diag-hint b{
  font-family:var(--mono);font-weight:400;font-size:12px;letter-spacing:.14em;text-transform:uppercase;
  line-height:1;color:var(--muted);flex:none;
}
.es-diag-fix{
  position:absolute;left:0;right:0;bottom:0;margin:0;
  background:var(--ink);color:var(--ny);
  font-family:var(--mono);font-size:12.5px;letter-spacing:.09em;text-transform:uppercase;line-height:1.5;
  padding:20px clamp(26px,2.8vw,34px);
  transform:translateY(101%);transition:transform .38s cubic-bezier(.2,.7,.2,1);
}
.es-diag:hover .es-diag-fix,.es-diag:focus .es-diag-fix,.es-diag:focus-within .es-diag-fix{transform:translateY(0)}

/* No hover to reveal with, or not enough room to reward one: show the fix
   outright. Width is checked as well as pointer, because some touch devices
   still report hover:hover and the fix must never become unreachable. */
@media (hover:none),(max-width:820px){
  .es-diag{padding-bottom:0}
  .es-diag-hint{display:none}
  .es-diag-fix{position:static;transform:none;margin-top:24px;border-radius:0 0 var(--r-lg) var(--r-lg)}
}

/* ============================================================ 02 WORKSTREAM RAIL */

.es-anchor{scroll-margin-top:88px}
.es-rail{position:relative}
.es-rail-line{position:absolute;left:27px;top:28px;bottom:28px;width:2px;background:var(--line);z-index:0}
.es-rail-fill{position:absolute;left:0;top:0;width:100%;height:0;background:var(--ink);transition:height 1.1s cubic-bezier(.2,.7,.2,1)}
.es-rail-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:var(--s4)}
.es-rail-item{display:grid;grid-template-columns:76px minmax(0,1fr);gap:clamp(16px,2vw,28px);align-items:start;position:relative}
.es-rail-node{
  width:56px;height:56px;border-radius:50%;flex:none;position:relative;z-index:2;
  display:flex;align-items:center;justify-content:center;
  border:1.5px solid var(--line);background:var(--bg);
  font-family:var(--mono);font-size:13px;letter-spacing:.06em;color:var(--muted);
  transition:background .45s ease,color .45s ease,border-color .45s ease,transform .3s ease;
}
.es-rail-item.is-live .es-rail-node{background:var(--ny);border-color:var(--ink);color:var(--ink)}
.es-rail-item:hover .es-rail-node{transform:scale(1.06)}
.es-rail-card{
  border:1px solid var(--line);border-radius:var(--r-md);background:var(--bg);
  padding:clamp(22px,2.4vw,30px);
  transition:border-color .3s ease,box-shadow .3s ease,transform .3s ease;
}
.es-rail-item:hover .es-rail-card{border-color:var(--hair-strong);box-shadow:var(--shadow-hover);transform:translateY(-2px)}
.es-rail-head{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:12px}
.es-rail-head .h3{letter-spacing:-.018em}
.es-rail-deliv{
  font-family:var(--mono);font-size:10.5px;letter-spacing:.16em;text-transform:uppercase;
  color:var(--accent-dark);border:1px solid var(--hair-strong);background:rgba(184,211,216,.28);
  padding:5px 12px;border-radius:var(--r-pill);white-space:nowrap;
}
.es-rail-card .body{color:var(--ink-soft);max-width:56ch}
.es-rail-card .body{margin-bottom:var(--s5)}
.es-rail-card .es-rail-items{margin-top:0;padding-top:var(--s4);border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 22px;max-width:none}
.es-rail-card .es-rail-items li{font-size:var(--fs-small);font-weight:300;margin-bottom:0}

/* ============================================================ 03 ATTRIBUTION */

.es-attr-grid{align-items:start;gap:var(--s6)}
.es-instr{padding:var(--pad-card-lg)}
.es-instr .card-label{color:var(--on-ink-label);margin-bottom:var(--s4)}
.es-instr-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.es-instr-list li{
  display:flex;gap:14px;align-items:flex-start;
  font-size:var(--fs-small);font-weight:300;line-height:1.55;color:var(--on-ink-lead);
  padding:16px 0;border-top:1px solid var(--line);
}
.es-instr-list li:first-child{border-top:0;padding-top:0}
.es-instr-list li:last-child{padding-bottom:0}
.es-tick{font-family:var(--mono);font-size:13px;color:var(--ny);flex:none;padding-top:3px}

/* ============================================================ 04 RELATED */

.es-rel{display:flex;flex-direction:column;text-decoration:none;background:var(--bg)}
.es-rel .h3{margin:6px 0 12px;letter-spacing:-.02em}
.es-rel .body{color:var(--ink-soft);margin-bottom:var(--s4)}
.es-rel-cta{margin-top:auto;font-family:var(--mono);font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--accent-dark);display:inline-flex;align-items:center;gap:8px}
.es-rel:hover .es-rel-cta .arw{transform:translateX(3px)}
.es-rel-cta .arw{transition:transform .25s ease;display:inline-block}

/* ============================================================ CAPTURE */

.es-close-grid{align-items:center;gap:var(--s6)}
.es-capture{max-width:none;margin:0}
.es-close-grid .small{font-size:var(--fs-body);line-height:1.6}

/* ============================================================ RESPONSIVE */

@media (max-width:1200px){
  .es-fig-foot{grid-template-columns:minmax(0,1fr)}
  .es-facts{flex-direction:row;flex-wrap:wrap;gap:22px}
  .es-fact{max-width:30ch}
}
@media (max-width:1140px){
  .es-rail-card .es-rail-items{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:1060px){
  .es-hero-stage>.brx-container{grid-template-columns:minmax(0,1fr);gap:var(--s6)}
  .es-hero .h1{max-width:18ch}
  .es-hero .body{max-width:66ch}
  .es-tree{height:clamp(300px,42vw,400px)}
  .es-diag-grid{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:820px){
  .es-rail-line{left:19px}
  .es-rail-item{grid-template-columns:56px minmax(0,1fr);gap:16px}
  .es-rail-node{width:40px;height:40px;font-size:12px}
  .es-rail-card .es-rail-items{grid-template-columns:minmax(0,1fr)}
  .es-attr-grid,.es-close-grid{grid-template-columns:minmax(0,1fr)}
  /* the deliverable chip must be allowed to wrap, or its nowrap min-content
     width forces the whole page wider than a phone viewport */
  .es-rail-head{flex-direction:column;align-items:flex-start;gap:8px}
  .es-rail-deliv{white-space:normal;border:0;background:none;padding:0;letter-spacing:.12em}
}
@media (max-width:640px){
  .es-tree{height:clamp(320px,76vw,380px)}
  .es-cell-box{padding:11px 12px}
  .es-cell-share{font-size:19px}
  .es-cell-label{font-size:13px;line-height:1.3}
  .es-facts{flex-direction:column;gap:14px}
}
@media (max-width:480px){
  .es-hero .h1{max-width:none}
  .es-rail-head{gap:10px}
  .es-diag-fix{font-size:11.5px;letter-spacing:.06em}
}

@media (prefers-reduced-motion:reduce){
  .es-scan{display:none}
  .es-cell,.es-cell-share,.es-cell-label{transition:none}
  .es-rail-fill{transition:none}
}
