/* P+ generated graphics (drawn by assets/twin.js) */

/* shared motion */
@keyframes tw-dash { to { stroke-dashoffset: -100; } }
@keyframes tw-rise { from { opacity: 0; transform: translateY(-46px); } to { opacity: 1; transform: none; } }
@keyframes tw-hot { 0%, 100% { opacity: 1; } 50% { opacity: .62; } }
@keyframes tw-ping { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(3.6); opacity: 0; } }
@keyframes tw-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes tw-halo { 0%, 100% { transform: scale(1); opacity: .8; } 50% { transform: scale(1.2); opacity: .35; } }
@keyframes tw-truck { 0% { left: 0; } 100% { left: calc(100% - 14px); } }
@keyframes tw-prog { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.tw-dash { }
.fl { animation: tw-rise .7s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i) * 90ms + 200ms); }
.fl.hot { animation: tw-rise .7s cubic-bezier(.2, .7, .2, 1) both, tw-hot 2.4s ease-in-out 1.6s infinite; animation-delay: calc(var(--i) * 90ms + 200ms), 1.6s; }
.fl.ghost polygon { fill-opacity: .12; stroke: #6aa5ee; stroke-width: 1; stroke-dasharray: 4 4; }
.tw-ping { animation: tw-ping 2.2s ease-out infinite; animation-delay: calc(var(--i) * .3s); transform-box: fill-box; transform-origin: center; }
.tw-chip, .tw-node { animation: tw-in .7s both; animation-delay: calc(var(--i) * 70ms + 500ms); }
.tw-halo { animation: tw-halo 4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
/* off screen (assets/motion.js) and in a hidden tab, nothing moves */
.tw-paused, .tw-paused *, .tw-paused *::before, .tw-paused *::after, .tw-hidden .twinhero *, .tw-hidden .orbit *, .tw-hidden .tw-scen * { animation-play-state: paused !important; }

/* 1. hero */
.twinhero { position: relative; border-radius: 22px; border: 1px solid var(--ink-line); background: radial-gradient(60% 70% at 50% 60%, rgba(106, 165, 238, .10), transparent 70%), rgba(255, 255, 255, .025); padding: clamp(8px, 2vw, 22px); }
.twinhero svg { display: block; width: 100%; height: auto; font-family: var(--body, inherit); }
.tw-feeds, .tw-spot { display: none; }
@media (max-width: 760px) {
  .twinhero .tw-chip, .twinhero .tw-dash, .twinhero svg > circle { display: none; }
  .twinhero { overflow: hidden; border: 0; background: none; padding: 0; }
  .tw-spot { display: block; fill: var(--c); stroke: var(--c); }
  .tw-spot circle:first-child { opacity: 0; transform-box: fill-box; transform-origin: center; }
  .tw-spot.go circle:first-child { animation: tw-spot 1.6s ease-out 2; }
  @keyframes tw-spot { from { opacity: .9; transform: scale(.3); } to { opacity: 0; transform: scale(1.5); } }
  .tw-feeds { display: block; position: relative; height: 92px; margin: -18px 0 0; padding: 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, .22); }
  .tw-feeds li { position: absolute; inset: 0; display: grid; align-content: center; gap: 2px; padding: 0; opacity: 0; transform: translateY(10px); transition: opacity .45s, transform .45s cubic-bezier(.2, .8, .2, 1); }
  .tw-feeds li.on { opacity: 1; transform: none; }
  .tw-feeds li::after { content: ''; position: absolute; left: 0; top: -1px; height: 1px; width: 100%; background: var(--c); transform-origin: 0 50%; transform: scaleX(0); }
  .tw-feeds li.on::after { animation: prog 2.8s linear forwards; }
  .tw-feeds small { font-family: var(--mono); font-size: .62rem; letter-spacing: .18em; color: var(--c); display: flex; justify-content: space-between; }
  .tw-feeds small em { font-style: normal; color: #8d98b0; letter-spacing: .12em; }
  .tw-feeds b { font-family: var(--display); font-size: 1.5rem; letter-spacing: -.02em; color: #fff; line-height: 1.15; }
  .tw-feeds span { font-size: .86rem; color: #9aa4ba; }
}


/* 2. orbit */
.orbit svg { display: block; width: 100%; height: auto; }
.tw-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 8px; font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #9aa4ba; }
.tw-legend i, .tw-names i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-inline-end: 8px; }
.tw-names { display: none; }
.ob-phone { display: none; }
@media (max-width: 820px) {
  .orbit svg.ob-wide, .tw-names { display: none; }
  .ob-phone { display: block; }
  .ob-phone svg { display: block; width: 100%; max-width: 460px; margin: 0 auto; height: auto; }
  .ob-n { cursor: pointer; }
  .ob-n .ob-ring { opacity: 0; transform-box: fill-box; transform-origin: center; }
  .ob-n.on .ob-ring { animation: ob-ring 1.7s ease-out; }
  .ob-n circle:nth-child(3), .ob-n circle:nth-child(4) { transform-box: fill-box; transform-origin: center; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
  .ob-n.on circle:nth-child(3) { transform: scale(1.5); fill: var(--c); }
  .ob-n.on circle:nth-child(4) { transform: scale(1.3); fill: #fff; }
  @keyframes ob-ring { from { opacity: .9; transform: scale(.6); } to { opacity: 0; transform: scale(2.2); } }
  .ob-read { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: baseline; margin: 6px 0 22px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .22); position: relative; min-height: 4.4em; }
  .ob-read::before { content: ''; position: absolute; left: 0; top: -1px; height: 1px; width: 100%; background: var(--c); transform-origin: 0 50%; transform: scaleX(0); }
  .ob-read.go::before { animation: prog 1.7s linear forwards; }
  .ob-read small { font-family: var(--mono); font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; color: var(--c); }
  .ob-read em { font-style: normal; font-family: var(--mono); font-size: .64rem; letter-spacing: .12em; color: #8d98b0; }
  .ob-read b { grid-column: 1 / -1; font-family: var(--display); font-size: 1.5rem; letter-spacing: -.02em; color: #fff; line-height: 1.2; }
  .ob-read.go b { animation: tw-in .45s both; }
  .tw-legend { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .ob-n.on .ob-ring, .ob-read.go::before, .ob-read.go b { animation: none; } }
.outrow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 34px; }
.outrow div { border: 1px solid var(--ink-line); border-radius: 14px; padding: 13px 15px; font-size: .92rem; color: #dfe4ee; background: rgba(255, 255, 255, .04); display: flex; gap: 10px; align-items: center; }
.outrow svg { width: 17px; height: 17px; color: #ff8a68; flex: none; }
@media (max-width: 900px) { .outrow { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .outrow { grid-template-columns: 1fr; } }

/* 3. layer stack */
.tw-stack { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(20px, 4vw, 64px); align-items: center; }
.tw-stack-art svg { display: block; width: 100%; max-width: 520px; height: auto; margin: auto; }
.pl { transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.pl .pl-face { transition: fill-opacity .4s; }
.pl.on { transform: translateY(-10px); }
.pl.on .pl-face { fill-opacity: .62; }
.tw-stack-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.tw-stack-list li { border-radius: 14px; padding: 11px 16px; border: 1px solid transparent; cursor: pointer; transition: background .3s, border-color .3s; }
.tw-stack-list b { display: flex; align-items: center; gap: 12px; font-size: 1.02rem; color: #dfe4ee; }
.tw-stack-list b i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); flex: none; }
.tw-stack-list p { font-size: .92rem; color: #aeb6c8; margin: 0; padding-inline-start: 22px; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .45s, opacity .45s, margin .45s; }
.tw-stack-list li.on { background: rgba(255, 255, 255, .05); border-color: color-mix(in srgb, var(--c) 55%, transparent); }
.tw-stack-list li.on b { color: #fff; }
.tw-stack-list li.on p { max-height: 6em; opacity: 1; margin-top: 6px; }
@media (max-width: 900px) { .tw-stack { grid-template-columns: 1fr; } .tw-stack-art svg { max-width: 360px; } }

/* 4. material passport */
.split--art { grid-template-columns: 1.35fr 1fr; }
@media (max-width: 980px) { .split--art { grid-template-columns: 1fr; } }
.tw-win { border-radius: 16px; overflow: hidden; border: 1px solid var(--sand-2); background: var(--paper); box-shadow: 0 30px 60px -34px rgba(12, 17, 29, .45); }
.tw-win-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: var(--ink); color: #c9cfdd; font-size: .8rem; }
.tw-win-bar i { width: 9px; height: 9px; border-radius: 50%; background: #3a4563; }
.tw-win-bar span { margin-inline-start: 10px; font-weight: 600; }
.tw-win-bar em { margin-inline-start: auto; font-style: normal; font-family: var(--mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: #7f8aa3; }
.tw-win-body { display: grid; grid-template-columns: 1.15fr 1fr; }
.tw-pass-model { padding: 14px 14px 16px; background: linear-gradient(180deg, #f4f1ea, #ebe6db); border-inline-end: 1px solid var(--sand); }
.tw-pass-model svg { display: block; width: 100%; height: auto; }
.tw-pass-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .76rem; color: var(--stone); }
.tw-pass-legend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; margin-inline-end: 6px; }
.tw-pass-legend b { margin-inline-start: 6px; color: var(--text); font-variant-numeric: tabular-nums; }
.tw-pass-card { padding: 18px 20px; }
.tw-pass-card small { font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; color: var(--ember-deep); }
.tw-pass-card h4 { font-size: 1.02rem; margin: 4px 0 12px; }
.tw-route { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; font-size: .72rem; color: var(--stone); margin-bottom: 12px; }
.tw-route div { height: 2px; background: repeating-linear-gradient(90deg, var(--sand-2) 0 6px, transparent 6px 12px); position: relative; }
.tw-route div i { position: absolute; top: -6px; width: 14px; height: 14px; border-radius: 4px; background: #6aa5ee; animation: tw-truck 5s ease-in-out infinite alternate; }
.tw-pass-card ol { list-style: none; margin: 0; padding: 0; display: grid; }
.tw-pass-card li { display: grid; grid-template-columns: 1fr auto; column-gap: 10px; padding: 5px 0 5px 22px; position: relative; font-size: .82rem; color: var(--stone); }
.tw-pass-card li::before { content: ''; position: absolute; left: 4px; top: 10px; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--sand-2); background: var(--paper); z-index: 1; }
.tw-pass-card li::after { content: ''; position: absolute; left: 8px; top: 18px; bottom: -10px; width: 1px; background: var(--sand-2); }
.tw-pass-card li:last-child::after { display: none; }
.tw-pass-card li b { color: var(--text); font-weight: 600; }
.tw-pass-card li em { font-style: normal; font-family: var(--mono); font-size: .68rem; }
.tw-pass-card li span { grid-column: 1 / -1; font-size: .76rem; }
.tw-pass-card li.done::before { background: #3fae7a; border-color: #3fae7a; }
.tw-pass-card li.done::after { background: #3fae7a; }
.tw-pass-card li.now::before { background: var(--ember); border-color: var(--ember); box-shadow: 0 0 0 5px rgba(240, 86, 46, .18); }
.tw-pass-card li.now em { color: var(--ember-deep); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
@media (max-width: 760px) { .tw-win-body { grid-template-columns: 1fr; } .tw-pass-model { border-inline-end: 0; border-bottom: 1px solid var(--sand); } }

/* 5. automation scenarios */
.tw-scen { --c: #f0562e; border-radius: 24px; padding: clamp(18px, 2.6vw, 30px); color: #eef1f7; background: radial-gradient(700px 320px at 12% 0, color-mix(in srgb, var(--c) 22%, transparent), transparent 70%), var(--ink); border: 1px solid rgba(255, 255, 255, .08); transition: background .6s; box-shadow: 0 40px 80px -50px rgba(12, 17, 29, .7); }
.tw-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tw-tabs button { all: unset; cursor: pointer; padding: .5em 1.05em; border-radius: 999px; font-size: .88rem; font-weight: 600; color: #b9c1d2; border: 1px solid rgba(255, 255, 255, .12); transition: background .3s, color .3s, border-color .3s; }
.tw-tabs button:hover { color: #fff; }
.tw-tabs button.on { background: var(--c); border-color: var(--c); color: #10141f; }
.tw-tabs button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.tw-scen-body { display: grid; grid-template-columns: 250px 1fr; gap: clamp(14px, 2.4vw, 30px); align-items: center; margin-top: 22px; }
.tw-scen-art { text-align: center; }
.tw-scen-art svg { display: block; width: 100%; height: auto; }
.tw-src { display: inline-block; margin-top: 4px; font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 50%, transparent); border-radius: 999px; padding: .4em .9em; }
.tw-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.tw-flow li { position: relative; border-radius: 16px; padding: 14px 14px 16px; border: 1px solid rgba(255, 255, 255, .09); background: rgba(255, 255, 255, .03); opacity: .38; transition: opacity .5s, border-color .5s, background .5s, transform .5s; min-height: 9.5em; }
.tw-flow li small { font-family: var(--mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: #8d98b0; display: block; margin-bottom: 8px; }
.tw-flow li p { margin: 0; font-size: .9rem; line-height: 1.42; color: #dfe4ee; }
.tw-flow li.done { opacity: .78; }
.tw-flow li.done small { color: var(--c); }
.tw-flow li.on { opacity: 1; border-color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); transform: translateY(-4px); }
.tw-flow li.on small { color: var(--c); }
.tw-flow li.on p { color: #fff; }
.tw-flow li:not(:last-child)::after { content: ''; position: absolute; top: 22px; inset-inline-end: -11px; width: 12px; height: 1px; background: rgba(255, 255, 255, .25); }
.tw-prog { height: 2px; background: rgba(255, 255, 255, .08); border-radius: 2px; margin-top: 20px; overflow: hidden; }
.tw-prog i { display: block; height: 100%; background: var(--c); transform-origin: 0 50%; animation: tw-prog 13.8s linear infinite; }
[dir="rtl"] .tw-prog i { transform-origin: 100% 50%; }
@media (max-width: 1080px) { .tw-scen-body { grid-template-columns: 1fr; } .tw-scen-art svg { max-width: 220px; margin: auto; } .tw-flow { grid-template-columns: 1fr; } .tw-flow li { min-height: 0; } .tw-flow li:not(:last-child)::after { display: none; } }

@media (prefers-reduced-motion: reduce) { .tw-dash, .fl, .fl.hot, .tw-ping, .tw-chip, .tw-node, .tw-halo, .tw-route div i, .tw-prog i { animation: none !important; } .twinhero animateMotion, .orbit animateMotion { display: none; } }
/* ux r4 N-A: no travelling dot anywhere under reduced motion (the scripts no longer draw them; this is the backstop) */
@media (prefers-reduced-motion: reduce) { [data-art] animateMotion, .suite animateMotion, .suite-art animateMotion { display: none; } }

@media (max-width: 760px) { .tw-feeds li:not(.on) { transition: opacity .12s, transform .12s; } }

/* ---- review round 2: no rounded frames around the drawings ------------------------------------------------------ */
/* the hero building sits on the page grid, a single rule under it */
.twinhero { border: 0; border-radius: 0; background: none; padding: 0 0 clamp(8px, 1.4vw, 18px); border-bottom: 1px solid var(--ink-line); }
/* the layer list: the chosen layer is a rule at its start edge in its own colour, not a box */
.tw-stack-list { gap: 0; border-top: 1px solid rgba(255, 255, 255, .2); }
.tw-stack-list li { border: 0; border-radius: 0; border-inline-start: 2px solid transparent; border-bottom: 1px solid rgba(255, 255, 255, .08); padding: 11px 16px; }
.tw-stack-list li.on { background: none; border-color: transparent; border-inline-start-color: var(--c); border-bottom-color: rgba(255, 255, 255, .08); }
.tw-stack-list b i { border-radius: 0; height: 3px; width: 14px; }
/* the layer stack: thin planes carried by their outline; only the chosen one is filled */
.pl .pl-face { fill-opacity: .06; stroke-width: 1.2; }
.pl.on .pl-face { fill-opacity: .32; }
/* drawn mock-ups: no fake window chrome, no rounded frame */
.tw-win { border-radius: 0; box-shadow: none; }
.tw-win-bar i { display: none; }
.tw-win-bar span { margin-inline-start: 0; }
/* the light mock-up's title is a ruled strip on the drawing's own ground, not a black title bar (design r3 F2) */
.tw-win:not(.tw-win--dark) .tw-win-bar { background: var(--paper); color: var(--text); border-bottom: 1px solid var(--sand-2); }
.tw-win:not(.tw-win--dark) .tw-win-bar em { color: var(--stone); }
/* the scenario widget is a band across the section, not a floating card */
.tw-scen { border-radius: 0; box-shadow: none; border: 0; margin-inline: calc(50% - 50vw); padding-inline: calc(50vw - 50%); padding-block: clamp(26px, 3.4vw, 44px); }
/* the same dial beside the words on a desktop (pages.css, "wide first screen") */
@media (min-width: 1100px) {
  .hero--side .orbit svg.ob-wide { display: none; }
  .hero--side .ob-phone { display: block; }
  .hero--side .ob-phone svg { display: block; width: 100%; margin: 0 auto; height: auto; }
  .hero--side .ob-n { cursor: pointer; }
  .hero--side .ob-n .ob-ring { opacity: 0; transform-box: fill-box; transform-origin: center; }
  .hero--side .ob-n.on .ob-ring { animation: ob-ring 1.7s ease-out; }
  .hero--side .ob-n circle:nth-child(3), .hero--side .ob-n circle:nth-child(4) { transform-box: fill-box; transform-origin: center; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
  .hero--side .ob-n.on circle:nth-child(3) { transform: scale(1.5); fill: var(--c); }
  .hero--side .ob-n.on circle:nth-child(4) { transform: scale(1.3); fill: #fff; }
  @keyframes ob-ring { from { opacity: .9; transform: scale(.6); } to { opacity: 0; transform: scale(2.2); } }
  .hero--side .ob-read { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: baseline; margin: 10px 0 0; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .22); position: relative; min-height: 4.4em; }
  .hero--side .ob-read::before { content: ''; position: absolute; left: 0; top: -1px; height: 1px; width: 100%; background: var(--c); transform-origin: 0 50%; transform: scaleX(0); }
  .hero--side .ob-read.go::before { animation: prog 1.7s linear forwards; }
  .hero--side .ob-read small { font-family: var(--mono); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--c); }
  .hero--side .ob-read em { font-style: normal; font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; color: #8d98b0; }
  .hero--side .ob-read small { grid-area: 1 / 1; } .hero--side .ob-read em { grid-area: 1 / 2; }
  .hero--side .ob-read b { grid-area: 2 / 1 / 3 / 3; font-family: var(--display); font-size: 1.5rem; letter-spacing: -.02em; color: #fff; line-height: 1.2; }
  .hero--side .ob-read.go b { animation: tw-in .45s both; }
}
@media (min-width: 1100px) and (prefers-reduced-motion: reduce) { .hero--side .ob-n.on .ob-ring, .hero--side .ob-read.go::before, .hero--side .ob-read.go b { animation: none; } }
