/* "Our Work": three options for the same three cases, one at a time.
   1 = the scene (full-bleed photo, story card, the product on their screen, wipes between cases)
   2 = the product (one device window that changes per client, the engineer on a call tile)
   3 = the deck (full photo cards that stack, with the engagement told as a timeline) */

.obra { position: relative; }

/* ---------- prototype switcher between the options ---------- */
.obra-pick {
  position: fixed; z-index: 60; left: 50%; bottom: 18px; transform: translate(-50%, calc(100% + 120px));
  display: flex; align-items: center; gap: 2px; padding: 5px; border-radius: 999px; font-size: 13px;
  background: rgba(20, 20, 22, .84); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 20px 40px -20px #000; transition: transform .5s var(--ease-out);
}
.obra-pick.is-on { transform: translate(-50%, 0); }
.obra-pick span { padding: 0 10px 0 12px; color: var(--mute-d); }
.obra-pick a { white-space: nowrap; padding: 7px 14px; border-radius: 999px; color: #d6d9de; transition: background-color .25s, color .25s; }
.obra-pick a:hover { background: rgba(255,255,255,.1); }
.obra-pick a[aria-current] { background: #fff; color: #000; }
@media (max-width: 760px) { .obra-pick { bottom: 80px; } .obra-pick span { display: none; } }

/* ---------- the product screens (shared by options 1 and 2), sized in em ---------- */
.scr {
  --scr-fs: 12px;
  position: relative; display: flex; flex-direction: column; font-size: var(--scr-fs); line-height: 1.4;
  border-radius: 1.15em; overflow: hidden; color: #c9cdd4; text-align: left;
  background: rgba(14, 14, 16, .8); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 0 0 1px rgba(255,255,255,.15), 0 50px 80px -40px #000;
}
.scr .win-bar { height: 2.4em; padding: 0 1em; gap: .45em; }
.scr .win-bar i { width: .62em; height: .62em; }
.scr .win-bar span { margin-left: .6em; font-size: .92em; }
.scr-in { padding: 1.25em; display: grid; gap: 1em; align-content: start; }
.scr [data-k] { opacity: 0; transform: translateY(.45em); transition: opacity .35s, transform .5s var(--ease-out); }
.scr .w { opacity: 0; transition: opacity .3s; }
.scr.is-live [data-k] { opacity: 1; transform: none; transition-delay: calc(var(--k) * 140ms); }
.scr.is-live .w { opacity: 1; transition-delay: calc(500ms + var(--k) * 45ms); }

/* WGSN: ask the forecast */
.sc-q { justify-self: end; max-width: 82%; padding: .7em 1em; border-radius: 1em 1em .3em 1em; background: rgba(255,255,255,.1); color: #fff; }
.sc-a { display: grid; grid-template-columns: 2.1em minmax(0, 1fr); gap: .8em; align-items: start; }
.sc-ai { width: 2.1em; height: 2.1em; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: #fff; font-weight: 600; font-size: 1em; line-height: 1; }
.sc-a-in { display: grid; gap: .9em; }
.sc-a-in > p { color: #e6e8eb; }
.sc-sw { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5em; }
.sc-sw li { display: grid; gap: .4em; font-size: .88em; color: #aeb3bb; }
.sc-sw i { height: 3em; border-radius: .6em; }
.sc-src { display: flex; flex-wrap: wrap; gap: .4em; }
.sc-src span { padding: .3em .75em; border-radius: 999px; font-size: .85em; background: rgba(1,96,231,.22); color: #a9cbff; }

/* Go.AI: the appliance inside the bank */
.sc-row { display: flex; justify-content: space-between; align-items: center; gap: .6em 1em; flex-wrap: wrap; }
.sc-pill { display: inline-flex; align-items: center; gap: .55em; padding: .35em .85em; border-radius: 999px; background: rgba(43,182,115,.16); color: #86e3b3; font-size: .92em; }
.sc-pill::before { content: ""; width: .55em; height: .55em; border-radius: 50%; background: var(--run); box-shadow: 0 0 0 .25em rgba(43,182,115,.25); }
.sc-egress { font-size: .92em; color: #aeb3bb; }
.sc-egress b { margin-left: .3em; color: #fff; font-weight: 600; }
.sc-layers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45em; }
.sc-layers li { display: flex; align-items: center; gap: .6em; padding: .6em .75em; border-radius: .6em; font-size: .95em; color: #e6e8eb; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); }
.sc-layers i { flex: none; width: .5em; height: .5em; border-radius: 50%; background: #ff9e68; }
.sc-layers em { margin-left: auto; font-style: normal; font-size: .85em; color: #86e3b3; }
.sc-log { padding: .6em .8em; border-radius: .6em; font: .88em/1.4 var(--f-code); color: #8b9099; background: rgba(0,0,0,.35); }
.sc-log b { font-weight: 500; color: #a9cbff; }
.sc-log b.ok { color: #86e3b3; }

/* FlowEQ: the flow builder */
.sc-canvas {
  position: relative; height: 13em; border-radius: .7em;
  background: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1.3px) 0 0 / 1.2em 1.2em, rgba(0,0,0,.28);
}
.sc-canvas svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .7s .3s; }
.scr.is-live .sc-canvas svg { opacity: 1; }
.sc-canvas path { fill: none; stroke: rgba(255,255,255,.3); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.sc-node {
  position: absolute; translate: 0 -50%; padding: .45em .65em; border-radius: .55em; font-size: .85em; line-height: 1.25; color: #e6e8eb;
  background: #1d1e22; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
}
.sc-node small { display: block; font-size: .82em; color: #8b9099; }
.n-trig { left: 3%; top: 25%; width: 30%; }
.n-ai { left: 3%; top: 72%; width: 30%; }
.n-dec { left: 40%; top: 50%; width: 22%; box-shadow: inset 0 0 0 1px rgba(236,98,25,.7); }
.n-b1, .n-b2, .n-b3, .n-b4 { left: 70%; width: 28%; }
.n-b1 { top: 13%; } .n-b2 { top: 38%; } .n-b3 { top: 62%; } .n-b4 { top: 87%; }
.sc-tests { display: grid; gap: .5em; }
.sc-tests p { font-size: .92em; color: #aeb3bb; }
.sc-tests p b { font-weight: 500; color: #86e3b3; }
.sc-tests ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .35em .8em; }
.sc-tests li { display: flex; gap: .5em; font-size: .88em; color: #e6e8eb; }
.sc-tests li i { font-style: normal; color: #86e3b3; }

/* ================= OPTION 1: the scene ================= */
.o1 { max-width: var(--max); margin: 0 auto; padding-inline: var(--side); display: grid; gap: 28px; }
.o1-tabs { display: none; }
.o1-scene { position: relative; isolation: isolate; display: grid; border-radius: 22px; overflow: hidden; background: #121214; }
.o1-photo { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.o1-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; filter: saturate(.9) contrast(1.04) brightness(.9); }
.o1-photo::before { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(0deg, #121214 0%, rgba(18,18,20,0) 50%); }
.o1-screen { position: relative; z-index: 3; order: 1; margin: -14% 16px 0; }
.o1-card { order: 2; padding: 22px; display: grid; gap: 14px; align-content: start; }

.o1.is-pinned { max-width: none; height: 100vh; padding: 0; display: block; }
.o1.is-pinned .o1-scene { position: absolute; inset: 12px; display: block; border-radius: 24px; }
.o1.is-pinned .o1-photo { position: absolute; inset: 0; aspect-ratio: auto; }
.o1.is-pinned .o1-photo img { object-position: 78% 38%; will-change: transform; }
.o1.is-pinned .o1-photo::before {
  background: linear-gradient(90deg, rgba(10,10,12,.88) 0%, rgba(10,10,12,.5) 34%, rgba(10,10,12,0) 58%),
              linear-gradient(0deg, rgba(10,10,12,.55), rgba(10,10,12,0) 42%);
}
.o1.is-pinned .o1-card {
  --pad: clamp(20px, 3vw, 48px);
  position: absolute; z-index: 3; left: var(--pad); top: 50%; transform: translateY(-50%);
  width: min(460px, 34vw); padding: 0; gap: 14px;
}
.o1.is-pinned .o1-screen {
  position: absolute; z-index: 3; margin: 0;
  left: calc(clamp(20px, 3vw, 48px) + min(460px, 34vw) + clamp(28px, 4vw, 72px));
  bottom: clamp(24px, 6vh, 64px); width: min(430px, 30vw);
}
.o1.is-pinned .o1-screen .scr { --scr-fs: clamp(10.5px, .85vw, 13px); }
.o1.is-pinned .o1-tabs {
  position: absolute; z-index: 5; top: 30px; right: 32px; display: flex; gap: 4px; padding: 5px; border-radius: 999px;
  background: rgba(14,14,16,.5); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
.o1-tab { position: relative; padding: 8px 16px 10px; border-radius: 999px; font-size: 13.5px; color: #c9cdd4; transition: background-color .3s, color .3s; }
.o1-tab i { position: absolute; left: 16px; right: 16px; bottom: 5px; height: 2px; border-radius: 2px; overflow: hidden; background: rgba(255,255,255,.15); }
.o1-tab b { display: block; height: 100%; background: var(--orange); transform-origin: left; transform: scaleX(var(--p, 0)); }
.o1-tab[aria-current="true"] { color: #fff; background: rgba(255,255,255,.1); }
@media (max-height: 700px) { .o1.is-pinned .o1-card .cs-text { font-size: 14px; } .o1.is-pinned .o1-card .cs-quote p { font-size: 14.5px; } }

/* ================= OPTION 2: the product ================= */
.o2 { position: relative; overflow: hidden; }
.o2 .glow { opacity: .12; }
.o2-stage {
  position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; padding-inline: var(--side);
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 96px); align-items: center;
}
.o2.is-pinned .o2-stage { height: 100vh; padding-block: 40px; }
.o2-list { display: grid; margin-bottom: 28px; }
.o2-item { position: relative; width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; gap: 14px; padding: 13px 0 15px; text-align: left; color: #6e737c; transition: color .3s; }
.o2-item b { font-weight: 500; font-size: 19px; letter-spacing: -.01em; }
.o2-item span { font-size: 13px; color: inherit; }
.o2-item i { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line-d); }
.o2-item u { display: block; height: 100%; background: var(--orange); transform-origin: left; transform: scaleX(var(--p, 0)); }
.o2-item.is-on { color: #fff; }
.o2-item.is-on span { color: var(--mute-d); }
.o2-stories { display: grid; }
.o2-story { grid-area: 1 / 1; display: grid; gap: 14px; align-content: start; opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .45s, transform .6s var(--ease-out), visibility 0s .45s; }
.o2-story.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .5s .12s, transform .7s .12s var(--ease-out), visibility 0s; }
.o2-device { position: relative; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 3fr); gap: 14px 10px; }
.o2-win { grid-column: 1 / -1; }
.o2-win { display: grid; }
.o2-screen { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: scale(.98); transition: opacity .45s, transform .6s var(--ease-out), visibility 0s .45s; }
.o2-screen.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .5s, transform .7s var(--ease-out), visibility 0s; }
.o2-screen .scr { --scr-fs: clamp(12px, 1.9vh, 15px); min-height: 24.5em; }
.o2-call {
  position: relative; z-index: 3; grid-row: 2; grid-column: 1; min-height: 92px; margin: 0;
  border-radius: 14px; overflow: hidden; background: #111; box-shadow: 0 0 0 1px rgba(255,255,255,.16);
}
.o2-face { position: absolute; inset: 0; opacity: 0; transition: opacity .6s; }
.o2-face.is-on { opacity: 1; }
.o2-face img { width: 100%; height: 100%; object-fit: cover; object-position: 80% 30%; filter: saturate(.9) brightness(.92); }
.o2-face span { position: absolute; z-index: 2; left: 8px; right: 8px; bottom: 8px; padding: 4px 8px; border-radius: 8px; font-size: 11px; line-height: 1.3; background: rgba(0,0,0,.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.o2-live { position: absolute; z-index: 4; top: 8px; left: 8px; display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 999px; font-size: 11px; background: rgba(0,0,0,.5); }
.o2-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--run); }
.o2-facts { grid-row: 2; grid-column: 2; opacity: 0; visibility: hidden; transition: opacity .4s, visibility 0s .4s; }
.o2-facts.is-on { opacity: 1; visibility: visible; transition: opacity .5s .2s, visibility 0s; }
.o2-f { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.o2-f li { display: grid; gap: 3px; align-content: start; padding: 13px 16px; border-radius: 14px; background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.025)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.o2-f b { font-weight: 500; font-size: clamp(19px, 1.7vw, 25px); letter-spacing: -.03em; color: #ff9e68; }
.o2-f span { font-size: 12.5px; line-height: 1.4; color: var(--mute-d); }

/* ================= OPTION 3: the deck ================= */
.o3 { max-width: var(--max); margin: 0 auto; padding-inline: var(--side); display: grid; gap: 24px; }
.o3-card {
  --dim: 0;
  position: sticky; top: 16px; height: min(760px, calc(100vh - 32px)); border-radius: 26px; overflow: hidden;
  background: #121214; transform-origin: 50% 0;
}
.o3-card::after { content: ""; position: absolute; inset: 0; z-index: 5; background: #000; opacity: var(--dim); pointer-events: none; }
.o3-photo { position: absolute; inset: 0; }
.o3-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 78% 38%; filter: saturate(.9) contrast(1.04) brightness(.9); }
.o3-photo::before {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(90deg, rgba(10,10,12,.9) 0%, rgba(10,10,12,.55) 32%, rgba(10,10,12,0) 56%),
              linear-gradient(0deg, rgba(10,10,12,.7), rgba(10,10,12,0) 38%);
}
.o3-panel { position: absolute; z-index: 3; left: clamp(22px, 3vw, 48px); top: clamp(22px, 3.4vw, 48px); width: min(460px, 36%); display: grid; gap: 14px; }
.o3-time {
  position: absolute; z-index: 3; left: 16px; right: 16px; bottom: 16px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 16px 22px 18px; border-radius: 18px;
  background: rgba(14,14,16,.56); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
.o3-line { position: absolute; left: 22px; right: 22px; top: 20px; height: 2px; border-radius: 2px; background: rgba(255,255,255,.14); }
.o3-line i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--orange), #ff9e68); transform-origin: left; transform: scaleX(0); transition: transform 2.6s var(--ease-io) .2s; }
.o3-time li { position: relative; display: grid; gap: 3px; align-content: start; padding: 20px 18px 0 0; opacity: .32; transition: opacity .5s; }
.o3-time li::before { content: ""; position: absolute; left: 0; top: 0; width: 10px; height: 10px; border-radius: 50%; background: #3a3b40; box-shadow: 0 0 0 3px rgba(14,14,16,.9); transition: background-color .4s; }
.o3-time b { font-weight: 500; font-size: 16px; letter-spacing: -.01em; }
.o3-time span { font-size: 13px; line-height: 1.4; color: var(--mute-d); }
.o3-card.is-on .o3-line i { transform: scaleX(1); }
.o3-card.is-on .o3-time li { opacity: 1; transition-delay: calc(.25s + var(--k) * .62s); }
.o3-card.is-on .o3-time li::before { background: var(--orange); transition-delay: calc(.25s + var(--k) * .62s); }
.o3-card.is-on .o3-time li:last-child b { color: #ff9e68; }

@media (max-width: 900px) {
  .o2-stage { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .o2-side { display: contents; }
  .o2-list { order: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; }
  .o2-item { grid-template-columns: 1fr; gap: 2px; padding: 10px 0 12px; }
  .o2-item span { display: none; }
  .o2-stories { order: 1; }
  .o2-device { order: 2; margin-top: 10px; }
  .o2-screen .scr { --scr-fs: 11px; min-height: 0; }

  .o3-card { position: relative; top: auto; height: auto; display: grid; }
  .o3-photo { position: relative; aspect-ratio: 16 / 10; }
  .o3-photo::before { background: linear-gradient(0deg, #121214 0%, rgba(18,18,20,0) 55%); }
  .o3-photo img { object-position: 62% 40%; }
  .o3-panel { position: static; width: auto; padding: 4px 22px 0; }
  .o3-time { position: relative; inset: auto; margin: 20px 12px 12px; grid-template-columns: 1fr; gap: 14px; padding: 16px 18px 16px 34px; }
  .o3-line { left: 22px; top: 22px; bottom: 22px; right: auto; width: 2px; height: auto; }
  .o3-line i { width: 100%; height: 100%; transform: scaleY(0); transform-origin: top; }
  .o3-card.is-on .o3-line i { transform: scaleY(1); }
  .o3-time li { padding: 0; }
  .o3-time li::before { left: -16px; top: 5px; }
}
@media (max-width: 560px) {
  .o1-screen .scr { --scr-fs: 10.5px; }
  .o1-screen { margin: -16% 10px 0; }
  .o2-device { grid-template-columns: minmax(0, 1fr); }
  .o2-call { aspect-ratio: 16 / 9; }
  .o2-facts { grid-row: 3; grid-column: 1; }
  .o2-f { grid-template-columns: minmax(0, 1fr); }
  .o2-f li { grid-template-columns: auto minmax(0, 1fr); align-items: baseline; gap: 10px; padding: 10px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .scr [data-k], .scr .w { opacity: 1; transform: none; transition: none; }
  .o3-line i { transform: none !important; transition: none; }
  .o3-time li { opacity: 1; }
}
