/* Homepage editorial scenes. All styling is isolated to the Digital Gap. */
.awp-stories { position:relative; }
.awp-stories .story-toolbar,.awp-stories .story-grid,.awp-stories .story-footnote { max-width:1200px; margin-left:auto; margin-right:auto; }
.story-toolbar { display:flex; justify-content:space-between; align-items:center; gap:16px; margin-bottom:22px; color:#a8b5c5; font:10px/1.5 monospace; letter-spacing:2px; }
.story-motion { display:none; align-items:center; gap:8px; border:1px solid #ffffff28; border-radius:30px; padding:10px 14px; background:#ffffff06; color:#d8e0e9; font:11px/1.4 sans-serif; cursor:pointer; white-space:nowrap; }
.awp-stories.is-enhanced .story-motion { display:inline-flex; }
.story-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.awp-story { --ink:#e7e9dc; --muted:#b9bdb0; position:relative; display:flex; flex-direction:column; min-width:0; overflow:hidden; isolation:isolate; border:1px solid #ffffff24; border-radius:18px; color:var(--ink); box-shadow:0 20px 50px #0004,inset 0 1px #ffffff12; transition:transform .35s,border-color .35s,box-shadow .35s; }
.awp-story::before { content:""; position:absolute; inset:7px; border:1px solid #ffffff0b; border-radius:11px; z-index:-1; pointer-events:none; }
.story-rust { --ink:#d6ad7a; --muted:#c8b69e; background:radial-gradient(ellipse at 12% 10%,#93512c55,transparent 50%),radial-gradient(ellipse at 100% 82%,#89412650,transparent 65%),repeating-linear-gradient(164deg,#b18c4b08 0 1px,transparent 1px 5px),#28251d; border-color:#94704c80; }
.story-rust::after { content:""; position:absolute; inset:0; background:linear-gradient(85deg,transparent 3%,#dca46b15 3.3%,transparent 3.7%,transparent 94%,#ce9d6419 94.2%,transparent 95%),radial-gradient(circle at 18px 18px,#16170e 2px,#ab80524d 3px,transparent 4px),radial-gradient(circle at calc(100% - 18px) calc(100% - 18px),#16170e 2px,#ab80524d 3px,transparent 4px); pointer-events:none; }
.story-search { --ink:#e1f1ea; --muted:#a9c3cb; background:radial-gradient(ellipse at 90% 25%,#367b9460,transparent 65%),linear-gradient(145deg,#142e3a,#0c222d 75%); border-color:#7bb6c545; }
.story-trust { --ink:#f0f0e5; --muted:#b9c1bc; background:radial-gradient(ellipse at 70% 30%,#68716b30,transparent 65%),repeating-linear-gradient(110deg,#ffffff02 0 1px,transparent 1px 5px),#1c2222; border-color:#b1b9a944; }
.story-meta { display:flex; align-items:center; justify-content:space-between; gap:8px; margin:27px 25px 0; font:8px/1.5 monospace; letter-spacing:1px; color:var(--muted); }
.story-state { display:flex; align-items:center; gap:5px; white-space:nowrap; }
.story-state i { width:4px; height:4px; border-radius:50%; background:currentColor; }
.story-rust .story-state { color:#d9a36c; }
.story-search .story-state { color:#d4ed99; }
.story-art { position:relative; margin:16px 0 0; }
.story-art svg { display:block; width:100%; height:auto; overflow:visible; }
.rust-stamp { position:absolute; bottom:8%; left:9%; border:2px solid #b27a4c77; padding:3px 6px; font:900 9px/1.2 monospace; letter-spacing:2px; color:#c2905b99; transform:rotate(-8deg); }
.story-copy { padding:20px 27px 0; flex:1; }
.awp-stories .story-copy h3 { color:var(--ink); font-size:clamp(34px,3.5vw,47px); line-height:.98; letter-spacing:-1.5px; font-weight:900; margin:0 0 22px; }
.story-search .story-copy h3 span { font-size:.67em; letter-spacing:-1px; }
.story-rust .story-copy h3 { font-family:Impact,'Arial Black',sans-serif; transform:rotate(-1.5deg); background:repeating-linear-gradient(174deg,#dcba83 0 3px,#9d754c 3px 4px,#c39a64 4px 9px,#6f5137 9px 10px); -webkit-background-clip:text; background-clip:text; color:transparent; text-shadow:1px 3px 0 #110d081c; }
.awp-stories .story-copy p { color:var(--muted); font-size:14px; line-height:1.8; margin:0 0 25px; max-width:33ch; }
.story-action { position:relative; display:none; justify-content:space-between; align-items:center; gap:12px; margin:0 27px 27px; padding:17px 0 0; background:none; border:0; border-top:1px solid #ffffff21; color:var(--ink); font:10px/1.4 monospace; letter-spacing:1.4px; text-align:left; cursor:pointer; min-height:44px; }
.is-enhanced .story-action { display:flex; }
.story-action > :last-child { font:22px/1 sans-serif; transition:transform .25s; }
.story-action:hover > :last-child { transform:translate(3px,-3px); }
.story-action:focus-visible,.story-motion:focus-visible { outline:2px solid #d6edba; outline-offset:5px; border-radius:3px; }
.card-grain { position:absolute; inset:0; z-index:2; opacity:.06; pointer-events:none; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath filter='url(%23n)' opacity='.7' d='M0 0h150v150H0z'/%3E%3C/svg%3E"); }
.story-rust .card-grain { opacity:.2; mix-blend-mode:screen; }
.story-footnote { color:#9ba6b6; font:9px/1.8 monospace; letter-spacing:1.7px; padding-top:24px; }
.story-footnote span { color:#bfd3ee; padding-right:9px; font-size:20px; }
/* The artwork is static until JS confirms visibility and the motion preference. */
.rust-dust,.lens-found { opacity:0; }
.awp-story.is-inview .ambient-dust { animation:awp-drift 5s ease-in-out infinite alternate; }
.awp-story.is-inview .search-arm { transform-origin:183px 158px; animation:awp-search 5s ease-in-out infinite; }
.awp-story.is-inview .search-lead { animation:awp-lead 4s ease-in-out infinite alternate; }
.awp-story.is-inview .lead-two { animation-delay:-1.4s; }
.awp-story.is-inview .lead-three { animation-delay:-2.6s; }
.awp-story.is-inview .trust-runner { animation:awp-run .65s ease-in-out infinite; }
.awp-story.is-inview .runner-front-leg { transform-origin:206px 207px; animation:awp-stride .65s ease-in-out infinite alternate; }
.awp-story.is-inview .runner-back-leg { transform-origin:203px 207px; animation:awp-stride .65s ease-in-out infinite alternate-reverse; }
.awp-story.is-inview .runner-case { transform-origin:221px 150px; animation:awp-case .65s ease-in-out infinite alternate; }
.awp-story.is-inview .trust-papers { animation:awp-papers 1.8s linear infinite; }
.awp-story.is-inview .trust-road,.awp-story.is-inview .trust-speed { animation:awp-road .7s linear infinite; }
.awp-story.is-reacting .rust-machine { animation:awp-rattle .7s ease-in-out; transform-origin:200px 290px; }
.awp-story.is-reacting .rust-dust { animation:awp-dust 1.8s ease-out both; }
.awp-story.is-reacting .search-arm { animation:awp-found 2.4s ease-in-out both; }
.awp-story.is-reacting .lens-found { animation:awp-discover 2.4s ease-in-out both; }
.awp-story.is-reacting .trust-runner { animation:awp-escape 2.4s ease-in-out both; }
.awp-story.is-reacting .trust-meter { stroke-dasharray:95; animation:awp-drain 2.4s ease-in-out both; }
.awp-stories[data-paused="true"] .awp-story *,.awp-stories[data-hidden="true"] .awp-story * { animation-play-state:paused!important; }
.awp-stories[data-paused="true"] .is-reacting .lens-found { opacity:1; }
.awp-stories[data-paused="true"] .is-reacting .rust-dust { opacity:.8; }
.awp-stories[data-paused="true"] .is-reacting .trust-meter { stroke-dasharray:95; stroke-dashoffset:75; }
@keyframes awp-drift { to { transform:translate(3px,-12px); opacity:.6; } }
@keyframes awp-search { 0%,100% { transform:rotate(-6deg); } 50% { transform:rotate(10deg); } }
@keyframes awp-lead { to { opacity:.4; } }
@keyframes awp-run { 50% { transform:translateY(-6px) rotate(1deg); } }
@keyframes awp-stride { from { transform:rotate(-14deg); } to { transform:rotate(14deg); } }
@keyframes awp-case { to { transform:rotate(-6deg); } }
@keyframes awp-papers { from { transform:translate(12px,-4px); opacity:0; } 20% { opacity:.8; } to { transform:translate(-25px,14px); opacity:0; } }
@keyframes awp-road { to { transform:translateX(-24px); } }
@keyframes awp-rattle { 20%,60% { transform:rotate(-2deg); } 40%,80% { transform:rotate(2deg); } }
@keyframes awp-dust { 0% { opacity:0; } 15% { opacity:1; } 100% { opacity:0; transform:translate(0,35px) scale(1.08); } }
@keyframes awp-found { 30%,70% { transform:rotate(-9deg); } }
@keyframes awp-discover { 25%,75% { opacity:1; } 100% { opacity:0; } }
@keyframes awp-escape { 15% { transform:translateX(-10px); } 65% { transform:translateX(160px); opacity:0; } 66% { transform:translateX(-150px); opacity:0; } 100% { transform:translateX(0); opacity:1; } }
@keyframes awp-drain { 65% { stroke-dashoffset:90; } 100% { stroke-dashoffset:0; } }
@media(hover:hover) and (prefers-reduced-motion:no-preference) { .awp-story:hover { transform:translateY(-6px); border-color:#e3dbc078; box-shadow:0 28px 60px #0006; } }
@media(max-width:1050px) { .story-grid { gap:14px; } .story-meta { margin:23px 18px 0; font-size:7px; letter-spacing:.5px; } .story-copy { padding:20px 20px 0; } .story-action { margin:0 20px 24px; font-size:9px; letter-spacing:.8px; } .awp-stories .story-copy h3 { font-size:35px; } .awp-stories .story-copy p { font-size:13px; } }
@media(max-width:900px) { .story-grid { grid-template-columns:1fr; max-width:500px!important; gap:26px; } .story-toolbar,.story-footnote { max-width:500px!important; } .story-toolbar { font-size:8px; letter-spacing:1px; } .story-meta { margin:27px 27px 0; font-size:9px; } .story-art { margin-top:14px; } .story-copy { padding:16px 30px 0; } .awp-stories .story-copy h3 { font-size:clamp(40px,9vw,58px); } .awp-stories .story-copy p { font-size:15px; max-width:39ch; } .story-action { margin:0 30px 29px; font-size:10px; } .story-footnote { font-size:8px; } }
@media(max-width:370px) { .story-meta { margin:24px 20px 0; font-size:7px; } .story-copy { padding-left:22px; padding-right:22px; } .story-action { margin-left:22px; margin-right:22px; } .awp-stories .story-copy h3 { font-size:36px; } .story-toolbar { letter-spacing:.2px; gap:8px; } .story-motion { padding:9px; } }
@media(prefers-reduced-motion:reduce) { .awp-stories *, .awp-stories *::before,.awp-stories *::after { animation:none!important; transition:none!important; } .awp-story.is-reacting .lens-found,.awp-story.is-reacting .rust-dust { opacity:1; } .awp-story.is-reacting .trust-meter { stroke-dasharray:95; stroke-dashoffset:75; } }

.story-arrow { width:13px; height:13px; border-top:1.5px solid currentColor; border-right:1.5px solid currentColor; position:relative; }
.story-arrow::after { content:""; position:absolute; width:18px; height:1.5px; background:currentColor; right:-2px; top:5px; transform:rotate(-45deg); }
.motion-icon { width:8px; height:10px; border-left:2px solid currentColor; border-right:2px solid currentColor; box-sizing:border-box; }

/* Paused scenes must stay complete, including when a visitor taps a replay. */
.awp-stories[data-paused="true"] .awp-story * { animation:none!important; }
.awp-story:not(.is-inview) * { animation-play-state:paused!important; }
.story-motion { min-height:44px; touch-action:manipulation; }
.story-action,.industry-play,.wallpaper-trigger,.wallpaper-motion { touch-action:manipulation; }
.story-motion[aria-pressed="true"] .motion-icon,.wallpaper-motion[aria-pressed="true"] .motion-icon {
  width:0; height:0; border:0; border-top:5px solid transparent; border-bottom:5px solid transparent; border-left:8px solid currentColor;
}
@media(max-width:900px) {
  .story-toolbar > span { max-width:25ch; }
  .story-motion { flex-shrink:0; }
}


/* Touch-first performance: keep ambient scenes still while preserving tap-triggered reactions. */
@media (hover:none) and (pointer:coarse) and (prefers-reduced-motion:no-preference){
  .awp-stories .awp-story:not(.is-reacting) *,
  .awp-stories .awp-story:not(.is-reacting) *::before,
  .awp-stories .awp-story:not(.is-reacting) *::after{animation-play-state:paused!important}
}
