/* ---------- Sijill x HPE on the sccc chassis, 24 September 2026 ----------
   story.css is the sccc proposal's stylesheet, lifted byte for byte. spine.css is v10's request
   path. This file holds only what the HPE page needs beyond both: its photographs' sides, the
   four states of its product sequence, and a few row widths. Same motion contract as story.css:
   everything under .motion, finished state without it. */

/* hero: Kingdom Centre stands left in the night photograph, so the type takes the city side */
.smdd-hero .hero-image{object-position:30% 56%}
.smdd-hero .hero-content{margin-left:auto;margin-right:0}
[dir] .smdd-hero .hero-scrim{background:linear-gradient(270deg,#1b1916eb 0%,#1b1916b3 34%,#1b191630 62%,#1b191600 80%),linear-gradient(0deg,#1b1916f2 0%,#1b191680 28%,#1b191600 55%)}
/* two authored lines, sized so the longer one ends before Kingdom Centre at every desktop width */
html[lang=en] .smdd-hero h1{font-size:clamp(40px,4vw,68px)}
html[lang=ar] .smdd-hero h1{font-size:clamp(32px,3.3vw,56px)}
/* the frame is 10% wider than the screen and set left, so Kingdom Centre sits further from the type */
@media(min-width:901px){.smdd-hero .hero-image{inset:0 auto 0 -10%;width:110%}}
.hero-acts{display:flex;align-items:center;gap:22px;flex-wrap:wrap}
.hero-acts .text-link{margin-top:0}
.hero-note{font-size:13px;color:#bdb3a5}
.smdd-hero .hero-strip p{color:#d3cabd}
.smdd-hero .hero-strip li{grid-template-columns:auto 1fr}

/* the opportunity, on paper */
.smdd-opening .facts,.smdd-opening .request{grid-column:2}
.smdd-opening .request{font-size:20px;color:var(--ink);max-width:760px;margin-top:10px}
.smdd-opening .facts{max-width:900px;margin-top:26px}
.evaluation-rows.facts>div,.evaluation-rows.wide>div{grid-template-columns:230px 1fr}

/* 01 the drawers, and the section closes straight onto the product sequence */
#e01{padding-bottom:0}
#e01 .plate-img{object-position:50% 50%;filter:brightness(.9) saturate(.85) contrast(1.06)}

/* the product sequence: approve, use, withdraw, reconsider. Same objects as the sccc evidence
   story; its own four states, keyed on .story so the sccc step rules never apply here. */
.story{position:relative;height:400svh;background:var(--paper);--p:0;overflow-x:clip}
.story .source-line{opacity:0}
.story .document.old{opacity:.22;transform:translate(-25px,-12px) rotate(-12deg)}
.story .document.approved{transform:rotate(0);border-color:#b67845;background:#fffdf9}
.story .approved-stamp{opacity:1;transform:none}
.story .reason{opacity:1}.story .reason:before{transform:none}
.story .document.newer{right:0;top:0;opacity:0;transform:translate(46px,-6px) rotate(14deg);transition:transform .7s cubic-bezier(.16,1,.3,1),opacity .5s}
.story .answer-stale{display:none}
.story .answer-stale span{color:#e8a55f}
.story .history-note .hn-s{display:none}
.story[data-step='0'] .document-field{--drop:140px}
.story:not([data-step='0']) .answer-record{opacity:1;transform:none}
.story:not([data-step='0']) .answer-example p{clip-path:inset(0)}
.story[data-step='1'] .evidence-thread{transform:scaleY(1)}
.motion .story[data-step='1'] .evidence-thread{transform:scaleY(var(--thread,1))}
.story[data-step='2'] .evidence-thread,.story[data-step='3'] .evidence-thread{transform:scaleY(1);background:repeating-linear-gradient(180deg,#a8614899 0 3px,#0000 3px 7px)}
.story[data-step='2'] .approved-stamp,.story[data-step='3'] .approved-stamp{opacity:0;transform:scale(1.18) rotate(-2deg)}
.story[data-step='2'] .withdrawn-stamp,.story[data-step='3'] .withdrawn-stamp{opacity:1;transform:none;color:#9c4238}
.story[data-step='2'] .document.approved,.story[data-step='3'] .document.approved{border-color:#ae6a5b;background:#f1e7e1}
.story[data-step='2'] .document.approved strong,.story[data-step='3'] .document.approved strong{text-decoration-color:#a86148}
.story[data-step='2'] .reason,.story[data-step='3'] .reason{opacity:.55}
.story[data-step='2'] .citation,.story[data-step='3'] .citation{color:#c9877a;text-decoration:line-through}
.story[data-step='2'] .answer-valid,.story[data-step='3'] .answer-valid{display:none}
.story[data-step='2'] .answer-review{display:block}
.story[data-step='2'] .history-note,.story[data-step='3'] .history-note{opacity:1}
.story[data-step='3'] .history-note .hn-w{display:none}
.story[data-step='3'] .history-note .hn-s{display:block}
.story[data-step='3'] .answer-stale{display:block}
.story[data-step='3'] .document.newer{opacity:1;transform:rotate(6deg);border-color:#c89b74}
.story[data-step='3'] .answer-record{border-color:#8a6a4a}
@media(max-width:760px),(max-height:650px){.story{height:auto;padding:15px var(--gutter) 45px}.story .document.newer{opacity:.6;transform:rotate(7deg)}}
@media(max-width:620px){.story{padding-inline:24px}.story[data-step] .document.old{left:12px;transform:rotate(-7deg)}.story .document.newer,.story[data-step] .document.newer{right:12px;transform:rotate(7deg)}}
@media(min-width:761px) and (max-height:860px){.story[data-step='0'] .document-field{--drop:100px}}
@media(prefers-reduced-motion:reduce){.story{height:auto;padding:20px var(--gutter) 60px}}

.afterword h2{max-width:1100px}
.afterword p b{color:var(--ink);font-weight:500}

/* 02 deployment: the board as a dark plate, then the request path on ink */
#e02{padding-top:0}
.bd-plate.dark{min-height:92svh}
.bd-plate.dark .ground img{object-position:60% 50%;filter:saturate(.9) contrast(1.08) brightness(.78)}
.bd-plate.dark .ground:after{background:linear-gradient(90deg,#1b1916eb 0%,#1b1916a6 38%,#1b191633 70%),linear-gradient(0deg,#1b1916 0%,#1b191600 30%)}
.bd-plate.dark .chapter-head h2{color:#f7f2ea}
.bd-plate.dark .index,.bd-plate.dark .chapter-head .eyebrow{color:var(--light-accent)}
.bd-plate.dark .intro{color:#d8d0c3}
.bd-plate.dark .chapter-head h2{font-size:clamp(40px,4.4vw,70px)}
.ink .evaluation-rows>div{border-top-color:#ffffff26}
.ink .evaluation-rows p{color:#bdb4a7}
.ink .evaluation-rows strong{color:#e0b282;font-weight:400;font-size:14px;letter-spacing:.04em}
.evaluation-rows h3{font:24px/1.35 var(--serif);margin:0 0 8px}
html[lang=ar] .evaluation-rows h3{font-family:var(--arabic)}
.deploy-rows{margin-top:clamp(40px,6vh,72px);max-width:1040px}
.rule-statement{font-size:clamp(22px,2.2vw,32px);line-height:1.45;max-width:880px;margin-top:52px;padding-top:26px;border-top:2px solid currentColor}
.ink .rule-statement{color:#f0ebe2}
.rule-statement.dark{color:var(--ink)}

/* 03 the colonnade opens as an aperture between the argument and the package */
.band{position:relative;margin:60px calc(var(--gutter)*-1) 52px;height:78svh;overflow:hidden}
.band-media{position:absolute;inset:0;overflow:hidden;background:var(--ink)}
.band-media img{position:absolute;inset:-8% 0 auto;width:100%;height:116%;object-fit:cover;object-position:50% 46%;filter:saturate(.95) contrast(1.04)}
.motion .band-media{clip-path:inset(calc((1 - var(--ap,1))*10%) calc((1 - var(--ap,1))*20%))}
.motion .band-media img{transform:scale(calc(1.22 - var(--ap,1)*.22)) translate3d(0,calc((var(--pp,.5) - .5)*-8%),0);will-change:transform}
.package{margin-bottom:6px}

/* the escarpment: the sun and tower stand right, so the statement takes the sky in both languages */
.photo-statement.edge .ps-media img{object-position:40% 58%;filter:saturate(.95) contrast(1.04) brightness(.92)}
.photo-statement.edge .ps-media:after{background:linear-gradient(90deg,#1b1916e0 0%,#1b19168c 36%,#1b191600 64%),linear-gradient(0deg,#1b1916cc,#1b191600 55%)}
.photo-statement.edge .ps-body{max-width:min(46vw,760px)}
.photo-statement.edge h2{font-size:clamp(34px,3.8vw,60px);line-height:1.18;margin-top:0}
html[dir=rtl] .photo-statement.edge{justify-content:flex-end}

/* 04 evaluation */
.day30{margin-top:26px;font-size:17px;color:var(--muted)}
.day30 b{color:var(--ink);font-weight:500}
.evaluation-rows.notes{margin-top:34px}

/* 05 KAFD under the ask */
#e05 .decision-media img{object-position:50% 50%;filter:saturate(.6) contrast(1.08) brightness(.42)}
.session{font-size:clamp(22px,2.3vw,32px);line-height:1.45;color:#f6f2eb;max-width:900px;padding-top:24px;border-top:2px solid #f6f2eb}
.colophon{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin-top:56px;padding-top:18px;border-top:1px solid #ffffff30;font-size:14px;color:#cfc6b8}
.colophon .k{color:#deb38b}
.colophon img{height:22px;width:auto;filter:brightness(0) invert(1);opacity:.85;margin-inline-start:auto}

/* grain over the photographs this layer adds */
.band-media:after,.ps-media.edge-grain:after{content:'';position:absolute;inset:0;pointer-events:none;opacity:.2;mix-blend-mode:overlay;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")}

@media(max-width:900px){
  [dir] .smdd-hero .hero-scrim{background:linear-gradient(0deg,#1b1916f5 0%,#1b1916c0 45%,#1b191673 100%)}
  .smdd-hero .hero-image{object-position:36% 50%}
  .evaluation-rows.facts>div,.evaluation-rows.wide>div{grid-template-columns:1fr;gap:6px}
  .photo-statement.edge .ps-body{max-width:none}
  html[dir=rtl] .photo-statement.edge{justify-content:flex-start}
  .photo-statement.edge .ps-media:after{background:linear-gradient(0deg,#1b1916e6 0%,#1b191699 50%,#1b191633 100%)}
}
@media(max-width:620px){.band{margin-inline:-24px;height:62svh}.smdd-opening .facts,.smdd-opening .request{grid-column:auto}}

/* the HPE pass: the two sides of the offer meet, then what each side gains */
#e03{overflow-x:clip}
#e03 .commercial-map{margin-top:56px}
#e03 .commercial-col .smallcaps{font-size:13px;letter-spacing:.08em;color:var(--muted)}
.commercial-rows.gains{margin-top:18px}
.commercial-rows.gains + .eyebrow.package{margin-top:56px}
.decision-deliverables .eyebrow{margin-top:40px;color:#deb38b}

.support-split{margin-top:18px;font-size:15px;color:var(--muted);max-width:900px}

/* v16: the positioning block sits in the opening's content column */
.opening>.positioning{grid-column:2;max-width:980px;margin-top:38px}
.positioning>.eyebrow{margin:0 0 10px;font-size:13px;color:var(--accent)}
.positioning>.intro{max-width:760px;margin:0 0 28px;font-size:20px;line-height:1.6;color:var(--muted)}
html[lang=ar] .positioning>.intro{line-height:1.9}
.positioning>.smallprint{margin-top:16px;font-size:14px;color:var(--muted)}
@media(max-width:760px){.opening>.positioning{grid-column:auto}.positioning>.intro{font-size:18px}}
