/* NORTHWISE · cinematic story. The brand: deep navy, teal, white. Change the tokens here to restyle everything. */
:root {
  --navy: #0b1f3b; --navy-2: #0e2a4d; --teal: #14b8a6; --teal-d: #0f7a6e; --ink: #ffffff; --soft: #b6c6d8;
  --glass: rgba(11, 31, 59, .62); --line: rgba(255, 255, 255, .14);
  --display: 'Sora', 'Inter', system-ui, sans-serif; --text: 'Inter', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--navy); }
body { margin: 0; color: var(--ink); font-family: var(--text); background: var(--navy); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
#world { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; cursor: grab; }
#world.dragging { cursor: grabbing; }
#world.hot { cursor: pointer; }
.reset { position: fixed; z-index: 20; right: 24px; bottom: 22px; padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--glass); backdrop-filter: blur(10px); color: #fff; font: 500 13px var(--text); cursor: pointer; }
.reset:hover { border-color: var(--teal); }
/* the photographs (photos.html): full screen, moved by the scroll, all graded to the Northwise navy so they read as one film */
.photos { position: fixed; inset: 0; overflow: hidden; background: var(--navy); }
.photos img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; visibility: hidden; will-change: transform, opacity; filter: saturate(.88) contrast(1.04) brightness(.82); }
.photos::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 31, 59, .55), rgba(11, 31, 59, .12) 26%, rgba(11, 31, 59, .18) 72%, rgba(6, 16, 34, .72)); }
body.on-board .photos::after { background: rgba(6, 18, 38, .72); transition: background .5s; }
/* the strip of chapters at the bottom */
.strip { position: fixed; z-index: 15; right: clamp(70px, 13vw, 250px); bottom: 20px; left: min(calc(clamp(20px, 5vw, 72px) + 548px), 50vw); max-width: 760px; margin-left: auto; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; }
.strip button { position: relative; height: 46px; padding: 0; overflow: hidden; border: 1px solid rgba(255, 255, 255, .22); border-radius: 9px; background: center / cover no-repeat #0a1f3d; cursor: pointer; opacity: .62; transition: opacity .25s, transform .25s, border-color .25s; }
.strip button b { position: absolute; left: 5px; bottom: 3px; font: 700 10px var(--text); color: #fff; text-shadow: 0 1px 4px #000; }
.strip button:hover { opacity: 1; transform: translateY(-3px); }
.strip button.on { opacity: 1; border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal); }
.strip button:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
body.on-board .strip { display: none; }
@media (max-width: 1099px), (max-height: 600px) { .strip { display: none; } }
/* the words of a chapter arrive one after another */
.panel > * { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.panel.live > * { opacity: 1; transform: none; }
.panel.live > :nth-child(2) { transition-delay: .07s; } .panel.live > :nth-child(3) { transition-delay: .14s; } .panel.live > :nth-child(4) { transition-delay: .21s; } .panel.live > :nth-child(5) { transition-delay: .28s; } .panel.live > :nth-child(6) { transition-delay: .35s; }
body.plain .panel > * { opacity: 1; transform: none; }
.vignette { position: fixed; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 70% 50%, transparent 40%, rgba(5, 12, 26, .6) 100%), linear-gradient(90deg, rgba(5, 14, 30, .9), rgba(5, 14, 30, .62) 34%, rgba(5, 14, 30, 0) 62%); }
.scrollspace { height: 1550vh; } /* 1100vh for the ten chapters + 450vh for the story inside Business Systems */
.nojs { display: none; }

/* header */
.menu-toggle { display: none; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--glass); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
body.plain .menu-toggle { display: none; }
.bar { position: fixed; z-index: 20; inset: 0 0 auto 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px clamp(16px, 4vw, 48px); }
.brand img { height: 46px; width: auto; display: block; }
.menu { display: flex; gap: 6px; padding: 5px; border: 1px solid var(--line); border-radius: 999px; background: var(--glass); backdrop-filter: blur(10px); }
.menu a { padding: 8px 16px; border-radius: 999px; font-size: 14px; text-decoration: none; color: var(--soft); transition: color .2s, background .2s; }
.menu a:hover, .menu a.on { color: #fff; background: rgba(20, 184, 166, .18); }
.cta { padding: 11px 20px; border: 1px solid var(--teal); border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none; background: var(--glass); backdrop-filter: blur(10px); transition: background .2s, transform .2s; white-space: nowrap; }
.cta:hover { background: var(--teal-d); transform: translateY(-1px); }

/* chapters */
.panel { position: fixed; z-index: 10; left: clamp(20px, 5vw, 72px); top: calc(50% + 28px); width: min(520px, calc(100vw - 40px)); max-height: calc(100vh - 96px); overflow: hidden; transform: translateY(-50%); opacity: 0; pointer-events: none; display: grid; gap: 16px; }
.panel.live { pointer-events: auto; }
.chip { display: inline-flex; align-items: center; gap: 10px; width: fit-content; margin: 0; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--glass); font-size: 13px; }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 12px var(--teal); }
.kicker { margin: 0; font: 600 12px/1 var(--text); letter-spacing: .24em; text-transform: uppercase; color: var(--teal); }
h1, h2 { margin: 0; font-family: var(--display); font-weight: 800; letter-spacing: -.03em; line-height: 1.04; text-wrap: balance; }
h1 { font-size: clamp(38px, min(5.6vw, 9.4vh), 88px); }
h2 { font-size: clamp(26px, min(3.6vw, 6vh), 54px); }
h1 em, h2 em { font-style: normal; background: linear-gradient(90deg, #2dd4bf, #5eead4 60%, #7dd3fc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin: 0; font-size: clamp(16px, 1.5vw, 20px); line-height: 1.6; color: #dbe6f2; }
.panel p:not(.lead):not(.kicker):not(.chip):not(.hint):not(.small):not(.plain) { margin: 0; color: var(--soft); line-height: 1.65; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; }
.facts li { padding: 10px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--glass); font-size: 13px; color: var(--soft); }
.facts b { display: block; font: 700 22px/1.1 var(--display); color: var(--teal); }
.hint { display: flex; align-items: center; gap: 12px; margin: 6px 0 0; font-size: 13px; color: var(--soft); }
.mouse { width: 18px; height: 28px; border: 1.5px solid var(--soft); border-radius: 10px; position: relative; flex: none; }
.mouse::after { content: ''; position: absolute; left: 50%; top: 6px; width: 3px; height: 6px; margin-left: -1.5px; border-radius: 2px; background: var(--teal); animation: wheel 1.6s infinite; }
@keyframes wheel { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(10px); } }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-block; padding: 14px 24px; border-radius: 999px; background: var(--teal-d); border: 1px solid var(--teal); color: #fff; font-weight: 600; text-decoration: none; transition: transform .2s, background .2s; }
.btn:hover { background: #12998a; transform: translateY(-2px); }
.btn.ghost { background: var(--glass); }
.small { margin: 0; font-size: 13px; color: var(--soft); }

.plain { margin: 4px 0 0; padding: 14px 16px; border-left: 3px solid var(--teal); border-radius: 0 14px 14px 0; background: rgba(20, 184, 166, .12); font-size: 15px; line-height: 1.6; color: #d7f5f0; }
.plain b { display: block; margin-bottom: 4px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--teal); }

/* progress rail */
.rail { position: fixed; z-index: 20; right: clamp(12px, 2.4vw, 34px); top: 50%; transform: translateY(-50%); margin: 0; padding: 14px 12px; list-style: none; display: grid; gap: 4px; border: 1px solid var(--line); border-radius: 22px; background: var(--glass); backdrop-filter: blur(10px); }
.rail button { all: unset; cursor: pointer; display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 6px 2px; font-size: 13px; color: var(--soft); }
.rail button span { opacity: 0; transform: translateX(6px); transition: opacity .25s, transform .25s; white-space: nowrap; }
.rail button i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .28); transition: background .25s, box-shadow .25s, transform .25s; flex: none; }
.rail button:hover span, .rail button.on span { opacity: 1; transform: none; color: #fff; }
.rail button.on i { background: var(--teal); box-shadow: 0 0 12px var(--teal); transform: scale(1.5); }
.rail button:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 8px; }

/* module card */
.card { position: fixed; z-index: 30; left: clamp(16px, 4vw, 72px); top: calc(50% + 28px); width: min(440px, calc(100vw - 32px)); max-height: calc(100vh - 110px); overflow-y: auto; transform: translateY(-50%); padding: 28px; display: grid; gap: 14px; border: 1px solid rgba(20, 184, 166, .5); border-radius: 22px; background: rgba(8, 22, 44, .95); backdrop-filter: blur(16px); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6), 0 0 60px -20px rgba(20, 184, 166, .4); animation: rise .45s ease both; }
.card[hidden], .card [hidden] { display: none !important; }
@keyframes rise { from { opacity: 0; transform: translateY(-46%); } to { opacity: 1; transform: translateY(-50%); } }
.card .tag { margin: 0; font: 600 11px/1 var(--text); letter-spacing: .24em; text-transform: uppercase; color: var(--teal); }
.card h3 { margin: 0; font: 800 30px/1.1 var(--display); letter-spacing: -.02em; }
.card p { margin: 0; line-height: 1.6; color: var(--soft); font-size: 15px; }
.card p b { display: block; margin-bottom: 4px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #fff; }
.card .why { padding: 14px; border-radius: 14px; background: rgba(20, 184, 166, .12); color: #d7f5f0; }
.card .close { position: absolute; top: 12px; right: 14px; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.card .close:hover { background: rgba(255, 255, 255, .1); }
.small-btn { width: fit-content; padding: 11px 20px; font-size: 14px; }

/* mobile: the text sits low, the world above it */
@media (max-width: 820px) {
  .menu { display: none; position: absolute; top: calc(100% - 4px); left: 12px; right: 12px; flex-direction: column; gap: 2px; padding: 8px; border-radius: 18px; background: #081a33; box-shadow: 0 24px 50px -16px #000; }
  .bar.open .menu { display: flex; }
  .menu a { padding: 14px 16px; border-radius: 12px; font-size: 16px; }
  .menu-toggle { display: grid; }
  .bar { gap: 8px; padding-inline: 12px; }
  .bar .cta { margin-left: auto; }
  .brand img { height: 38px; }
  .cta { padding: 9px 14px; font-size: 13px; }
  .panel { top: auto; bottom: 18px; transform: none; max-height: 52vh; padding: 18px; border: 1px solid var(--line); border-radius: 22px; background: rgba(8, 22, 44, .78); backdrop-filter: blur(12px); gap: 10px; }
  .vignette { background: linear-gradient(0deg, rgba(5, 12, 26, .85), transparent 60%); }
  .rail { right: 6px; padding: 10px 6px; }
  .rail button span { display: none; }
  .card { top: auto; bottom: 14px; right: 16px; left: 16px; width: auto; transform: none; padding: 20px; animation: none; max-height: 56vh; overflow: auto; }
  .card .narr { font-size: 16px; }
  .facts li { padding: 8px 10px; }
  .hint { font-size: 12px; }
}

/* the board of Business Systems: real text, straight and sharp, over the 3D world */
.panel[data-chapter="1"], .panel[data-chapter="3"] { width: min(460px, 34vw); }
.board { position: fixed; z-index: 9; top: 84px; bottom: 22px; right: 72px; left: calc(clamp(20px, 5vw, 72px) + min(460px, 34vw) + 28px); max-width: 1040px; margin-left: auto; display: grid; grid-template-rows: repeat(4, minmax(0, 1fr)); gap: clamp(6px, 1.2vh, 14px); opacity: 0; visibility: hidden; pointer-events: none; }
.row { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 5px; min-height: 0; }
.row h3 { margin: 0; font: 700 11px/1.2 var(--text); letter-spacing: .18em; text-transform: uppercase; color: var(--soft); }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(6px, .8vw, 12px); min-height: 0; }
.tile { all: unset; box-sizing: border-box; display: block; height: 100%; min-height: 0; perspective: 900px; cursor: pointer; pointer-events: auto; transition: opacity .35s, transform .25s; }
.tile:hover { transform: translateY(-3px); }
.tile:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 14px; }
.tile .inner, .stage-inner { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .75s cubic-bezier(.22, .9, .3, 1); }
.tile.turned .inner { transform: rotateY(180deg); }
.tile.lifted { visibility: hidden; }
.board.telling .tile:not(.turned) { opacity: .4; }
.face { position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--accent, var(--teal)); border-radius: 14px; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 14px 34px -18px rgba(0, 0, 0, .8); }
.face.front { justify-content: flex-end; gap: 2px; padding: 10px 12px; background: linear-gradient(0deg, rgba(5, 16, 34, .97) 18%, rgba(5, 16, 34, .35) 70%), var(--picture), #0a1f3d; }
.face.front small { font: 700 10px/1.2 var(--text); letter-spacing: .08em; text-transform: uppercase; color: var(--accent, var(--teal)); }
.face.front b { font: 700 clamp(13px, 1.15vw, 18px)/1.15 var(--display); color: #fff; }
.tile .face.back { transform: rotateY(180deg); justify-content: center; gap: 4px; padding: 8px 12px; background: #0b2342; }
.tile .face.back b { font: 700 clamp(12px, .95vw, 14px)/1.2 var(--text); color: var(--accent, var(--teal)); }
.tile .face.back span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; font: 400 clamp(11px, .85vw, 13px)/1.35 var(--text); color: #dbe6f2; }

/* Digital Connections: the platform in the middle, eight cards around it, in real text */
.connect { position: fixed; z-index: 9; top: 88px; bottom: 26px; right: 72px; left: calc(clamp(20px, 5vw, 72px) + min(460px, 34vw) + 28px); max-width: 1040px; margin-left: auto; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 12px; opacity: 0; visibility: hidden; pointer-events: none; }
.net { position: relative; display: grid; grid-template: repeat(3, minmax(0, 1fr)) / repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2.4vh, 28px) clamp(14px, 1.6vw, 28px); min-height: 0; }
.net svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.net line { stroke-width: 2; stroke-dasharray: 7 9; vector-effect: non-scaling-stroke; animation: linkflow 1.4s linear infinite; }
@keyframes linkflow { to { stroke-dashoffset: -32; } }
.node, .hub { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 0; overflow: hidden; border-radius: 16px; opacity: 0; transform: scale(.9); transition: opacity .5s ease, transform .5s cubic-bezier(.22, .9, .3, 1); }
.connect.live .node, .connect.live .hub { opacity: 1; transform: none; }
.net > :nth-child(3) { transition-delay: .06s; } .net > :nth-child(4) { transition-delay: .12s; } .net > :nth-child(5) { transition-delay: .18s; } .net > :nth-child(7) { transition-delay: .24s; } .net > :nth-child(8) { transition-delay: .3s; } .net > :nth-child(9) { transition-delay: .36s; } .net > :nth-child(10) { transition-delay: .42s; }
.node { gap: 4px; padding: clamp(8px, 1.6vh, 16px) clamp(10px, 1.1vw, 18px); border: 1px solid var(--accent); border-top-width: 3px; background: #0a1f3d; box-shadow: 0 16px 36px -20px #000; }
.node small { font: 700 11px/1.2 var(--text); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.node b { font: 700 clamp(15px, 1.25vw, 20px)/1.15 var(--display); color: #fff; }
.node span { font: 400 clamp(12.5px, 1vw, 15px)/1.35 var(--text); color: #dbe6f2; }
.hub { align-items: center; gap: 4px; padding: 8px; border: 2px solid var(--teal); background: #06403f; text-align: center; box-shadow: 0 0 50px -8px var(--teal); }
.hub img { width: clamp(30px, 6vh, 56px); border-radius: 22%; }
.hub b { font: 800 clamp(15px, 1.35vw, 21px)/1.15 var(--display); color: #fff; }
.hub span { font-size: clamp(12px, .95vw, 14px); color: #bff3ec; }
.flowsay { margin: 0; text-align: center; font-size: 15px; font-weight: 600; color: #fff; text-shadow: 0 1px 8px #000; }
body.plain .connect { display: none; }

/* one card lifted out of the board and turned over to its words */
.stage { position: fixed; z-index: 25; perspective: 1600px; transition: left .75s cubic-bezier(.22, .9, .3, 1), top .75s cubic-bezier(.22, .9, .3, 1), width .75s cubic-bezier(.22, .9, .3, 1), height .75s cubic-bezier(.22, .9, .3, 1); }
.stage[hidden] { display: none; }
.stage.turned .stage-inner { transform: rotateY(180deg); }
.stage .face { border-radius: 22px; box-shadow: 0 40px 90px -24px rgba(0, 0, 0, .85), 0 0 70px -24px var(--accent, var(--teal)); }
.stage .face.front b { font-size: 26px; }
.stage .face.back { transform: rotateY(180deg); background: #081a33; overflow-y: auto; }
.stage img { display: block; width: 100%; height: 42%; min-height: 110px; object-fit: cover; flex: none; }
.stage .words { display: grid; gap: 10px; padding: 18px 24px 22px; }
.stage .words p { margin: 0; font-size: 16px; line-height: 1.55; color: #dbe6f2; }
.stage .words .tag { font: 700 11px/1 var(--text); letter-spacing: .2em; text-transform: uppercase; color: var(--accent, var(--teal)); }
.stage .words h3 { margin: 0; font: 800 28px/1.1 var(--display); letter-spacing: -.02em; color: #fff; }
.stage .words .why { padding: 12px 14px; border-radius: 12px; background: rgba(20, 184, 166, .13); font-size: 15px; color: #d7f5f0; }
.stage .words .why b { display: block; margin-bottom: 3px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #fff; }
.stage .close { position: absolute; z-index: 2; top: 12px; right: 12px; width: 36px; height: 36px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 50%; background: rgba(8, 26, 51, .75); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
.stage .close:hover { background: var(--teal-d); }
body.on-board .rail button span { display: none; }
body.plain .board, body.plain .stage, body.plain #storyBtn { display: none; }
@media (min-width: 821px) { .card { width: min(440px, 34vw); } }
@media (max-width: 820px) {
  .board { top: 66px; bottom: auto; left: 10px; right: 10px; height: 40vh; max-width: none; gap: 3px; }
  .connect { top: 66px; bottom: auto; left: 10px; right: 10px; height: 44vh; max-width: none; gap: 4px; } .net { gap: 6px; } .flowsay { font-size: 11.5px; }
  .node { padding: 4px 7px; border-radius: 10px; gap: 1px; } .node small { display: none; } .node b { font-size: 12px; } .node span { font-size: 10.5px; line-height: 1.2; } .hub { border-radius: 10px; padding: 3px; } .hub b { font-size: 11.5px; } .hub span { display: none; } .hub img { width: 22px; }
  .panel[data-chapter="1"] { width: auto; right: 12px; left: 12px; max-height: 40vh; }
  .row { gap: 2px; } .row h3 { font-size: 9px; } .cards { gap: 4px; }
  .face.front { padding: 4px 6px; border-radius: 9px; } .face.front small { display: none; } .face.front b { font-size: 10.5px; }
  .tile .face.back { padding: 3px 5px; } .tile .face.back span { display: none; } .tile .face.back b { font-size: 10px; }
  .panel[data-chapter="3"] { width: auto; right: 12px; left: 12px; max-height: 44vh; } .panel[data-chapter="3"] .plain, .panel[data-chapter="3"] p:not(.lead):not(.kicker):not(.actions) { display: none; }
  body.on-board .card { max-height: 44vh; } body.on-board .rail { display: none; }
  .stage img { height: 34%; min-height: 70px; } .stage .words { padding: 10px 14px 12px; gap: 6px; } .stage .words h3 { font-size: 20px; } .stage .words p { font-size: 14px; }
}

/* no 3D (old device, or the visitor asked for less motion): the same story as a plain page */
body.plain #world, body.plain .reset, body.plain .photos, body.plain .vignette, body.plain .rail, body.plain .strip, body.plain .scrollspace { display: none; }
body.plain { background: linear-gradient(180deg, var(--navy), #081529); }
body.plain .panel { position: relative; left: auto; top: auto; transform: none; opacity: 1 !important; pointer-events: auto; width: min(760px, calc(100vw - 40px)); max-height: none; margin: 0 auto; padding: 60px 0; border-bottom: 1px solid var(--line); background: none; border-radius: 0; backdrop-filter: none; }
body.plain .bar { position: sticky; background: rgba(8, 22, 44, .9); }
body.plain .hint { display: none; }

@media (prefers-reduced-motion: reduce) { .net line { animation: none; } .mouse::after { animation: none; } .card { animation: none; } }

/* the guided story inside the card: where you are, then one clear paragraph */
.card .progress { display: grid; gap: 10px; padding-right: 40px; }
.card .progress p { font-size: 13px; line-height: 1.4; color: var(--soft); }
.card .progress b { display: block; margin-bottom: 2px; font: 700 15px var(--text); letter-spacing: 0; text-transform: none; color: #fff; }
.card .track { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.card .track i { display: block; height: 100%; border-radius: 2px; background: var(--teal); transition: width .4s ease; }
.card .narr { font-size: 18px; line-height: 1.6; color: #fff; }
.card .nav { display: flex; justify-content: space-between; gap: 10px; }
.card .nav button { padding: 11px 20px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: #fff; font: 600 14px var(--text); cursor: pointer; }
.card .nav button.primary { background: var(--teal-d); border-color: var(--teal); }
.card .nav button:disabled { opacity: .35; cursor: default; }
.card .nav button:not(:disabled):hover { border-color: var(--teal); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.panel .actions { margin-top: 4px; }
.btn { cursor: pointer; font-family: var(--text); font-size: 16px; }

/* the chapter list: all ten names on a wide screen, numbers only with a label on hover on a smaller one */
.rail { background: transparent; border-color: transparent; backdrop-filter: none; }
.rail button span { opacity: .6; transform: none; font-size: 12.5px; }
.rail button.on span { font-weight: 600; opacity: 1; }
.rail::before { content: ''; position: absolute; z-index: -1; right: 15.5px; top: 22px; bottom: 22px; width: 1px; background: var(--line); }
@media (max-width: 1499px) { .rail { background: var(--glass); border-color: var(--line); padding: 10px 8px; } .rail::before { display: none; } .rail button { position: relative; } .rail button span { position: absolute; right: calc(100% + 14px); padding: 4px 9px; border-radius: 8px; background: #081a33; opacity: 0; pointer-events: none; } .rail button:hover span { opacity: 1; color: #fff; } }

/* a short window: drop the small print so nothing is cut off */
@media (max-height: 680px) { .panel .small { display: none; } .panel .plain { padding-block: 8px; } }
/* a phone: the heading and the plain words are enough; the details live on the Services page */
@media (max-width: 820px) {
  .panel[data-chapter]:not([data-chapter="0"]):not([data-chapter="9"]) .lead, .panel p:not(.lead):not(.kicker):not(.chip):not(.plain):not(.actions):not(.hint), .panel .small, .panel[data-chapter="9"] .plain, .panel[data-chapter="9"] .btn.ghost[href^="mailto"] { display: none; }
  .panel .plain { font-size: 14px; padding: 10px 12px; }
  .panel h2 { font-size: 24px; }
}

/* phones: room for the notch and the home bar; very small phones keep only the menu button */
@media (max-width: 820px) { .panel { bottom: calc(14px + env(safe-area-inset-bottom)); } .card { bottom: calc(10px + env(safe-area-inset-bottom)); } }
@media (max-width: 400px) { .bar .cta { display: none; } .bar .menu-toggle { margin-left: auto; } }
/* a phone held sideways: little height, so only the heading and the main sentence stay */
@media (min-width: 821px) and (max-height: 500px) {
  .bar { padding-block: 6px; } .brand img { height: 30px; } .menu a { padding: 5px 12px; } .cta { padding: 7px 14px; }
  .panel { top: calc(50% + 22px); max-height: calc(100vh - 62px); gap: 7px; }
  .panel .plain, .panel .facts, .panel .hint, .panel .small, .panel p:not(.lead):not(.kicker):not(.actions):not(.chip) { display: none; }
  h1 { font-size: 30px; } h2 { font-size: 23px; } .lead { font-size: 14px; line-height: 1.4; } .btn { padding: 8px 16px; font-size: 14px; }
  .board, .connect { top: 52px; bottom: 8px; gap: 3px; } .row { gap: 1px; } .row h3 { font-size: 9px; } .face.front { padding: 3px 7px; } .face.front small { display: none; } .tile .face.back span { display: none; }
  .rail { display: none; }
  .card { top: calc(50% + 22px); max-height: calc(100vh - 62px); padding: 14px 18px; gap: 8px; } .card .narr { font-size: 14px; line-height: 1.4; } .card h3 { font-size: 20px; }
  .stage img { display: none; } .stage .words { padding: 10px 14px; gap: 5px; } .stage .words h3 { font-size: 18px; } .stage .words p { font-size: 13px; line-height: 1.35; }
}

/* a small phone: only what fits */
@media (max-width: 820px) and (max-height: 700px) {
  .panel { max-height: 58vh; gap: 7px; padding: 14px; }
  h1 { font-size: 30px; } .panel h2 { font-size: 21px; } .lead { font-size: 14.5px; line-height: 1.4; }
  .panel .facts, .panel .hint, .panel[data-chapter="9"] .lead, .panel[data-chapter="9"] .btn.ghost { display: none; }
  .panel .plain { font-size: 13px; line-height: 1.4; padding: 8px 10px; }
  .btn { padding: 10px 18px; font-size: 14px; }
  .stage img { display: none; } .card .narr { font-size: 14px; line-height: 1.45; } .card h3 { font-size: 22px; }
}

/* ---------- the opening film ---------- */
.opening { display: none; position: fixed; inset: 0; z-index: 60; overflow: hidden; color: #fff; text-align: center; }
body.opening-held .opening, .opening.playing { display: block; }
.opening.released { pointer-events: none; }
.opening > * { position: absolute; }
.opening-black { inset: 0; background: #01040c; pointer-events: none; }
.opening.skipped .opening-black { transition: opacity .55s ease; }
.opening.skipped > :not(.opening-black) { display: none; }
.opening-flash { inset: 0; opacity: 0; pointer-events: none; background: radial-gradient(circle at 50% 50%, #fff 0%, #c9fff6 28%, #38bdf8 62%, rgba(14, 74, 122, .85) 100%); }
.opening-grain { inset: -50%; opacity: .07; pointer-events: none; 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%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); animation: openingGrain .6s steps(4) infinite; }
.opening.released .opening-grain { opacity: 0; transition: opacity .6s; }
@keyframes openingGrain { 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -4%); } 75% { transform: translate(4%, 3%); } 100% { transform: translate(-2%, -2%); } }
.opening-word { inset: 0; display: flex; align-items: center; justify-content: center; margin: 0; padding: 0 20px; opacity: 0; pointer-events: none; font-family: var(--head, Sora, sans-serif); font-weight: 800; font-size: clamp(38px, 8vw, 110px); letter-spacing: -.01em; text-shadow: 0 0 44px rgba(94, 234, 212, .65); }
.opening-word.low { align-items: flex-end; padding-bottom: calc(clamp(38px, 11vh, 120px) + 34px); font-family: var(--text, Inter, sans-serif); font-weight: 600; font-size: clamp(14px, 1.7vw, 22px); text-transform: uppercase; text-shadow: 0 2px 18px rgba(0, 0, 0, .95); }
.opening-title { inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; pointer-events: none; }
.opening-title::before { content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; background: radial-gradient(60% 46% at 50% 50%, rgba(2, 8, 20, .86), rgba(2, 8, 20, .5) 55%, transparent 100%); }
.opening-title.in::before { opacity: 1; }
.opening-title img { position: relative; width: min(68vw, 460px); height: auto; visibility: hidden; }
.opening-title.in img, .opening-title img[style] { visibility: visible; }
.opening-title p { position: relative; margin: 0; opacity: 0; font-size: clamp(13px, 1.45vw, 19px); letter-spacing: .08em; color: #d7f7f2; transform: translateY(10px); transition: opacity .4s ease, transform .4s ease; }
.opening-title.in p { opacity: 1; transform: none; transition: opacity .7s ease .5s, transform .7s ease .5s; }
.opening-band { left: 0; right: 0; height: clamp(38px, 11vh, 120px); background: #01040c; transition: transform 1s cubic-bezier(.7, 0, .2, 1); }
.opening-band.top { top: 0; } .opening-band.bottom { bottom: 0; }
.opening.released .opening-band.top { transform: translateY(-100%); } .opening.released .opening-band.bottom { transform: translateY(100%); }
.opening-skip { right: clamp(16px, 3vw, 40px); bottom: calc(clamp(38px, 11vh, 120px) / 2 - 18px); height: 36px; padding: 0 16px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; color: #dbe7f5; background: rgba(255, 255, 255, .06); font: 500 13px var(--text, Inter, sans-serif); cursor: pointer; }
.opening-skip:hover { color: #fff; background: rgba(255, 255, 255, .16); }
.opening-skip:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.opening.released .opening-skip { display: none; }

/* what waits behind the film, and how it arrives */
.vignette { transition: opacity 1.2s ease; }
body.opening-held .vignette { opacity: 0; }
body.opening-brand .bar .brand img { visibility: hidden; }
body.opening-held .bar .menu, body.opening-held .bar .cta, body.opening-held .menu-toggle, body.opening-held .rail { opacity: 0; pointer-events: none; }
body.opening-arrive .bar .menu { animation: openingDrop .8s ease .05s both; }
body.opening-arrive .bar .cta, body.opening-arrive .menu-toggle { animation: openingDrop .8s ease .2s both; }
body.opening-arrive .rail { animation: openingFade 1s ease .35s both; }
@keyframes openingDrop { from { opacity: 0; transform: translateY(-14px); } }
@keyframes openingFade { from { opacity: 0; } }
@media (max-width: 820px) { .opening-grain { display: none; } }

/* ---------- Digital Connections: cards that leave the hub one after another, then hover like a drone ---------- */
.connect.live { pointer-events: auto; }
.net > .node, .net > .hub { --dx: 0; --dy: 0; transform: translate(calc(var(--dx) * -70%), calc(var(--dy) * -70%)) scale(.35); transition: opacity .55s ease, transform .9s cubic-bezier(.2, 1.25, .35, 1); }
.net > :nth-child(2) { --dx: -1; --dy: -1; } .net > :nth-child(3) { --dy: -1; } .net > :nth-child(4) { --dx: 1; --dy: -1; } .net > :nth-child(5) { --dx: -1; } .net > :nth-child(7) { --dx: 1; } .net > :nth-child(8) { --dx: -1; --dy: 1; } .net > :nth-child(9) { --dy: 1; } .net > :nth-child(10) { --dx: 1; --dy: 1; }
.connect.live .net > .node, .connect.live .net > .hub { opacity: 1; transform: none; }
.connect.live .net > .node { animation: droneHover 6s ease-in-out infinite; animation-delay: 1.2s; }
.connect.live .net > :nth-child(3n) { animation-duration: 7s; animation-delay: 1.5s; } .connect.live .net > :nth-child(3n+1) { animation-duration: 5.2s; animation-delay: 1.8s; }
@keyframes droneHover { 50% { translate: 0 -7px; } }
.node { transition: opacity .55s ease, transform .9s cubic-bezier(.2, 1.25, .35, 1), box-shadow .25s, border-color .25s; }
.connect.live .net > .node:hover { transform: translateY(-6px) scale(1.04); box-shadow: 0 24px 40px -18px var(--accent); z-index: 2; }
.node b { font-size: clamp(16px, 1.4vw, 22px); } .node span { font-size: clamp(14px, 1.1vw, 16px); }
.net line { opacity: 0; transition: opacity .8s ease .5s; } .connect.live .net line { opacity: .85; }
.flowsay { opacity: 0; transition: opacity .8s ease 1s; } .connect.live .flowsay { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .connect.live .net > .node { animation: none; } }

/* ---------- the butterfly shuffle: every section's content enters like a deck being riffled together, one half from each side, interleaving as it lands ---------- */
.panel > * { transform-origin: 50% 100%; transform: translate3d(var(--shx), 28px, 0) rotate(var(--shr)) scale(.94); transition: opacity .35s ease, transform .35s ease; }
.panel > :nth-child(odd) { --shx: -54px; --shr: -7deg; } .panel > :nth-child(even) { --shx: 54px; --shr: 7deg; }
.panel.live > * { opacity: 1; transform: none; transition: opacity .45s ease, transform .85s cubic-bezier(.2, 1.3, .35, 1); }
.panel.live > :nth-child(1) { transition-delay: 0s; } .panel.live > :nth-child(2) { transition-delay: .08s; } .panel.live > :nth-child(3) { transition-delay: .16s; } .panel.live > :nth-child(4) { transition-delay: .24s; } .panel.live > :nth-child(5) { transition-delay: .32s; } .panel.live > :nth-child(6) { transition-delay: .4s; } .panel.live > :nth-child(7) { transition-delay: .48s; }
body.plain .panel > * { opacity: 1; transform: none; }
/* the connection cards shuffle in the same way: reading order, alternating sides */
.net > .node:nth-child(odd) { transform: translate(-70px, 24px) rotate(-8deg) scale(.88); } .net > .node:nth-child(even) { transform: translate(70px, 24px) rotate(8deg) scale(.88); }
.connect.live .net > .node { transform: none; }
.connect.live .net > .node:nth-child(2) { transition-delay: 0s; } .connect.live .net > .node:nth-child(3) { transition-delay: .07s; } .connect.live .net > .node:nth-child(4) { transition-delay: .14s; } .connect.live .net > .node:nth-child(5) { transition-delay: .21s; } .connect.live .net > .hub { transition-delay: .28s; } .connect.live .net > .node:nth-child(7) { transition-delay: .35s; } .connect.live .net > .node:nth-child(8) { transition-delay: .42s; } .connect.live .net > .node:nth-child(9) { transition-delay: .49s; } .connect.live .net > .node:nth-child(10) { transition-delay: .56s; }
@media (max-width: 820px) { .panel > :nth-child(odd) { --shx: -30px; } .panel > :nth-child(even) { --shx: 30px; } }

/* ---------- the opening deck: the six services, shuffled in one at a time during the turn around the world ---------- */
.opening-deck { left: clamp(20px, 6vw, 96px); top: 50%; width: min(400px, 84vw); height: 178px; margin-top: -89px; opacity: 0; transition: opacity .5s ease; pointer-events: none; }
.opening-deck.show { opacity: 1; }
.dk { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 16px 22px 16px 86px; text-align: left; border: 1px solid var(--accent); border-top-width: 3px; border-radius: 18px; background: rgba(6, 20, 42, .94); box-shadow: 0 24px 50px -22px #000; --side: -1; --depth: 0; opacity: 0; transform: translate(calc(var(--side) * 150px), 36px) rotate(calc(var(--side) * 16deg)) scale(.88); transition: transform .9s cubic-bezier(.2, 1.25, .35, 1), opacity .5s ease; }
.dk:nth-child(even) { --side: 1; }
.dk.on { opacity: calc(1 - var(--depth) * .22); transform: translate(calc(var(--depth) * -15px), calc(var(--depth) * -13px)) rotate(calc(var(--side) * var(--depth) * 1.8deg)) scale(calc(1 - var(--depth) * .02)); }
.dk.top { opacity: 1; transform: none; }
.dk i { position: absolute; left: 20px; top: 50%; width: 50px; height: 50px; margin-top: -25px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #04122a; font: 800 19px var(--display); font-style: normal; }
.dk small { font: 700 11px/1.2 var(--text); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.dk b { font: 800 clamp(20px, 2vw, 26px)/1.1 var(--display); color: #fff; }
.dk span { font: 400 15px/1.4 var(--text); color: #dbe6f2; }
@media (max-width: 820px) { .opening-deck { left: 50%; top: auto; bottom: calc(clamp(38px, 11vh, 120px) + 74px); margin: 0 0 0 calc(min(400px, 84vw) / -2); height: 150px; } .dk { padding: 12px 14px 12px 70px; } .dk i { left: 14px; width: 42px; height: 42px; margin-top: -21px; font-size: 16px; } .dk span { font-size: 13px; } }

/* ---------- Intelligence: why AI, how we help, and how the data stays safe (real page text, so it stays sharp) ---------- */
.panel[data-chapter="7"] { width: min(460px, 34vw); }
.trust { position: fixed; z-index: 9; top: 88px; bottom: 26px; right: 72px; left: calc(clamp(20px, 5vw, 72px) + min(460px, 34vw) + 28px); max-width: 1040px; margin-left: auto; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 14px; opacity: 0; visibility: hidden; pointer-events: none; }
.trust.live { pointer-events: auto; }
.trust-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.trust article { position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 0; overflow: hidden; border: 1px solid var(--accent, var(--teal)); border-top-width: 3px; border-radius: 18px; background: #0a1f3d; box-shadow: 0 18px 38px -22px #000; opacity: 0; transition: opacity .5s ease, transform .9s cubic-bezier(.2, 1.3, .35, 1), box-shadow .25s; }
.trust .why { padding: clamp(14px, 2.4vh, 24px) clamp(14px, 1.3vw, 22px); transform: translate(-60px, 26px) rotate(-7deg) scale(.9); }
.trust .why:nth-child(even) { transform: translate(60px, 26px) rotate(7deg) scale(.9); }
.trust .why svg { width: 34px; height: 34px; margin-bottom: 4px; padding: 7px; border-radius: 12px; color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, transparent); box-sizing: content-box; }
.trust small { font: 700 11.5px/1.2 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--accent, var(--teal)); }
.trust .why b { font: 800 clamp(18px, 1.6vw, 24px)/1.15 var(--display); color: #fff; }
.trust .why span { font: 400 clamp(14px, 1.1vw, 16px)/1.5 var(--text); color: #dbe6f2; }
.trust .safe { --accent: #5eead4; justify-content: center; gap: 12px; padding: clamp(14px, 2.4vh, 26px) clamp(16px, 1.6vw, 28px); background: linear-gradient(135deg, #07403f, #0a1f3d 70%); transform: translateY(34px) scale(.96); }
.trust .safe header { display: flex; align-items: center; gap: 14px; }
.trust .safe header svg { flex: none; width: 40px; height: 40px; padding: 8px; border-radius: 14px; color: #5eead4; background: rgba(94, 234, 212, .14); box-sizing: content-box; }
.trust .safe header b { display: block; margin-top: 3px; font: 800 clamp(19px, 1.7vw, 26px)/1.15 var(--display); color: #fff; }
.trust ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 22px; }
.trust li { position: relative; padding-left: 26px; font: 500 clamp(14px, 1.1vw, 16px)/1.4 var(--text); color: #eaf6f4; }
.trust li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; font-size: 12px; font-weight: 800; color: #04122a; background: #5eead4; }
.trust .honest { margin: 0; padding-top: 10px; border-top: 1px solid rgba(94, 234, 212, .25); font: 400 14px/1.45 var(--text); color: #bff3ec; }
.trust.live article { opacity: 1; transform: none; }
.trust.live .why:nth-child(1) { transition-delay: 0s; } .trust.live .why:nth-child(2) { transition-delay: .1s; } .trust.live .why:nth-child(3) { transition-delay: .2s; } .trust.live .safe { transition-delay: .32s; }
.trust.live .why:hover { transform: translateY(-6px); box-shadow: 0 24px 40px -18px var(--accent); }
@media (max-width: 1099px) { .trust ul { grid-template-columns: 1fr; } }
@media (max-width: 820px) {
  .trust { top: 62px; bottom: auto; left: 10px; right: 10px; max-height: 47vh; gap: 6px; }
  .trust-grid { grid-template-columns: 1fr; gap: 5px; }
  .trust .why { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; padding: 6px 10px; border-radius: 12px; }
  .trust .why svg { grid-row: 1 / 4; width: 18px; height: 18px; padding: 5px; margin: 0; } .trust .why small { display: none; } .trust .why b { font-size: 14px; } .trust .why span { font-size: 11.5px; line-height: 1.25; }
  .trust .safe { gap: 4px; padding: 7px 10px; border-radius: 12px; } .trust .safe header svg { width: 18px; height: 18px; padding: 5px; } .trust .safe header b { font-size: 14px; margin: 0; } .trust .safe header small { display: none; } .trust li { font-size: 11.5px; padding-left: 20px; } .trust li::before { width: 14px; height: 14px; font-size: 9px; } .trust ul { gap: 2px; } .trust .honest { display: none; }
}
@media (prefers-reduced-motion: reduce) { .trust article { transition: none; } }

/* the film holds the page still: no scrolling until it is over */
html { scrollbar-gutter: stable; }
body.opening-lock { overflow: hidden; }
.opening { touch-action: none; }
.trust.live .why, .trust.live .why:nth-child(even), .trust.live .safe { transform: none; }
.trust.live .why:hover { transform: translateY(-6px); }
.trust .why { padding-block: clamp(12px, 2vh, 20px); } .trust .safe { gap: 10px; }
@media (max-height: 820px) { .trust .honest { display: none; } }
@media (max-width: 820px) { .panel[data-chapter="7"] .plain { display: none; } .trust { max-height: 44vh; } }

/* ---------- Infrastructure: the journey of the data in four steps, with a light that runs along the route ---------- */
.panel[data-chapter="6"] { width: min(460px, 34vw); }
.vault { position: fixed; z-index: 9; top: 88px; bottom: 26px; right: 72px; left: calc(clamp(20px, 5vw, 72px) + min(460px, 34vw) + 28px); max-width: 1040px; margin-left: auto; display: flex; flex-direction: column; justify-content: center; gap: 18px; opacity: 0; visibility: hidden; pointer-events: none; }
.vault.live { pointer-events: auto; }
.vault-title, .vault-note { margin: 0; text-align: center; font: 600 clamp(15px, 1.2vw, 18px)/1.4 var(--text); color: #fff; text-shadow: 0 1px 10px #000; opacity: 0; transition: opacity .8s ease .9s; }
.vault-title { font: 700 12px/1 var(--text); letter-spacing: .22em; text-transform: uppercase; color: var(--teal); }
.vault.live .vault-title, .vault.live .vault-note { opacity: 1; }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 22px); }
.route { position: absolute; z-index: 0; left: 6%; right: 6%; top: 30px; height: 3px; border-radius: 3px; background: rgba(125, 211, 252, .25); overflow: hidden; transform: scaleX(0); transform-origin: left; transition: transform 1.4s cubic-bezier(.6, 0, .2, 1) .3s; }
.route::after { content: ''; position: absolute; top: 0; bottom: 0; width: 22%; background: linear-gradient(90deg, transparent, #5eead4, #fff, #5eead4, transparent); animation: routeLight 2.6s linear infinite; }
@keyframes routeLight { from { left: -25%; } to { left: 100%; } }
.vault.live .route { transform: none; }
.step { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 8px; padding: 56px clamp(12px, 1.2vw, 20px) clamp(14px, 2.4vh, 22px); border: 1px solid var(--accent); border-top-width: 3px; border-radius: 18px; background: #0a1f3d; box-shadow: 0 18px 38px -22px #000; opacity: 0; transform: translate(-60px, 30px) rotate(-7deg) scale(.9); transition: opacity .5s ease, transform .9s cubic-bezier(.2, 1.3, .35, 1), box-shadow .25s; }
.step:nth-of-type(even) { transform: translate(60px, 30px) rotate(7deg) scale(.9); }
.vault.live .step, .vault.live .step:nth-of-type(even) { opacity: 1; transform: none; }
.vault.live .step:nth-of-type(1) { transition-delay: 0s; } .vault.live .step:nth-of-type(2) { transition-delay: .12s; } .vault.live .step:nth-of-type(3) { transition-delay: .24s; } .vault.live .step:nth-of-type(4) { transition-delay: .36s; }
.vault.live .step:hover { transform: translateY(-6px); box-shadow: 0 24px 40px -18px var(--accent); }
.step .num { position: absolute; left: 50%; top: -3px; width: 58px; height: 58px; margin-left: -29px; margin-top: -27px; display: grid; place-items: center; border-radius: 50%; border: 3px solid #07152b; background: var(--accent); color: #04122a; font: 800 22px var(--display); }
.step svg { width: 30px; height: 30px; align-self: center; color: var(--accent); }
.step b { text-align: center; font: 800 clamp(19px, 1.7vw, 25px)/1.1 var(--display); color: #fff; }
.step p { margin: 0; text-align: center; font: 400 clamp(14px, 1.1vw, 16px)/1.5 var(--text); color: #dbe6f2; }
@media (max-width: 1099px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; } .route { display: none; } }
@media (max-width: 820px) {
  .vault { top: 62px; bottom: auto; left: 10px; right: 10px; max-height: 44vh; gap: 6px; justify-content: flex-start; }
  .vault-title, .vault-note { display: none; } .steps { grid-template-columns: 1fr; gap: 5px; row-gap: 5px; }
  .step { display: grid; grid-template-columns: 34px 1fr; column-gap: 10px; align-items: center; padding: 6px 10px 6px 8px; border-radius: 12px; border-top-width: 1px; }
  .step .num { position: static; margin: 0; width: 30px; height: 30px; font-size: 14px; grid-row: 1 / 3; border-width: 2px; } .step svg { display: none; } .step b { text-align: left; font-size: 14px; } .step p { text-align: left; font-size: 11.5px; line-height: 1.25; }
}
@media (max-height: 700px) and (min-width: 821px) { .step p { font-size: 13.5px; } .vault-note { display: none; } }
@media (prefers-reduced-motion: reduce) { .route::after { animation: none; } .step { transition: none; } }
@media (max-width: 820px) { .trust { max-height: 50vh; } .trust li { font-size: 11px; line-height: 1.25; } .trust .safe header b { font-size: 13px; } }
@media (max-width: 820px) { .panel[data-chapter="6"] .plain { display: none; } .trust { max-height: 54vh; } .trust .why span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .trust .why { padding-block: 5px; } .trust ul { gap: 1px; } }
@media (max-width: 820px) and (max-height: 700px) { .trust .safe li:nth-child(n+4) { display: none; } }


/* ---------- follow us: Facebook, Instagram, TikTok ---------- */
.socials { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 4px 0 0; }
.socials a { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .05); color: #fff; font: 600 14px var(--text); text-decoration: none; transition: transform .25s cubic-bezier(.2, 1.3, .35, 1), background .2s, border-color .2s; }
.socials a:hover { transform: translateY(-3px); background: rgba(94, 234, 212, .14); border-color: var(--teal); }
.socials a:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.socials svg { width: 20px; height: 20px; color: var(--teal); }
.end .socials { justify-content: center; }
@media (max-width: 820px) { .socials { gap: 8px; } .socials a { height: 36px; padding: 0 12px 0 10px; font-size: 13px; } }
@media (max-width: 400px) { .socials a span { display: none; } .socials a { padding: 0 10px; } }
@media (max-height: 700px) and (min-width: 821px) { .socials a { height: 34px; } }

/* ---------- Digital Experience: a coverflow. The middle card is lit and shows a real example ---------- */
.panel[data-chapter="8"] { width: min(460px, 34vw); }
.orbit { position: fixed; z-index: 9; top: 88px; bottom: 26px; right: 72px; left: calc(clamp(20px, 5vw, 72px) + min(460px, 34vw) + 28px); max-width: 1040px; margin-left: auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; --cw: 280px; --ch: 250px; opacity: 0; visibility: hidden; pointer-events: none; touch-action: pan-y; }
.orbit.live { pointer-events: auto; }
.flow { position: relative; width: 100%; height: calc(var(--ch) * 1.22); perspective: 1500px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.cf { position: absolute; left: 50%; top: 50%; width: var(--cw); height: var(--ch); margin: calc(var(--ch) / -2) 0 0 calc(var(--cw) / -2); display: flex; flex-direction: column; gap: 5px; padding: 16px 18px; overflow: hidden; border: 1px solid var(--accent); border-top-width: 4px; border-radius: 18px; background: #0a1f3d; box-shadow: 0 20px 44px -22px #000; cursor: pointer; user-select: none; transition: box-shadow .35s, background .35s; }
.cf.front { background: linear-gradient(160deg, #0d2a4f, #0a1f3d); box-shadow: 0 0 0 1px var(--accent), 0 0 46px -6px var(--accent), 0 26px 50px -18px #000; cursor: default; }
.cf small { font: 700 11px/1.2 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.cf > b { font: 800 clamp(17px, calc(var(--cw) * .072), 23px)/1.15 var(--display); color: #fff; }
.cf > span { font: 400 14px/1.35 var(--text); color: #cfdbea; }
.ex { display: flex; flex-direction: column; gap: 5px; flex: 1; min-height: 0; margin-top: 6px; padding: 9px 11px; border-radius: 12px; background: rgba(255, 255, 255, .06); font: 500 13px/1.35 var(--text); color: #eaf1f8; }
.ex strong { font: 700 10.5px/1 var(--text); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.ex .post { margin: 0; font-style: italic; color: #fff; } .ex em { margin-top: auto; font: 600 12px var(--text); font-style: normal; color: var(--accent); }
.ex ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 3px; } .ex li { display: flex; gap: 8px; align-items: baseline; } .ex li b { flex: none; min-width: 52px; font-weight: 700; color: #fff; } .ex li s { margin-left: auto; text-decoration: none; font-weight: 700; color: #5eead4; } .ex li s.wait { color: #fbbf24; }
.meter { display: grid; gap: 6px; } .meter span { display: grid; grid-template-columns: 70px 1fr; align-items: center; gap: 8px; font-size: 12.5px; } .meter i { display: block; height: 9px; border-radius: 5px; background: linear-gradient(90deg, var(--accent), #fff6); width: var(--w); }
.flowbar { display: flex; align-items: center; gap: 14px; }
.flowbar > button { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: rgba(255, 255, 255, .06); color: #fff; font: 600 22px/1 var(--text); cursor: pointer; transition: background .2s, transform .2s; } .flowbar > button:hover { background: rgba(94, 234, 212, .18); transform: scale(1.08); }
.dots { display: flex; gap: 8px; } .dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .3); cursor: pointer; transition: width .3s, background .3s; } .dots button.on { width: 26px; border-radius: 5px; background: var(--teal); }
.ringhint { margin: 0; font: 500 14px var(--text); color: var(--soft); opacity: 0; transition: opacity .8s ease 1s; } .orbit.live .ringhint { opacity: 1; }
@media (max-width: 820px) { .orbit { top: 62px; bottom: auto; left: 10px; right: 10px; height: 46vh; gap: 8px; } .cf { padding: 10px 12px; gap: 3px; } .cf > span { font-size: 12.5px; } .ex { font-size: 12px; padding: 6px 9px; margin-top: 3px; } .ex li:nth-child(n+3) { display: none; } .ringhint { display: none; } .flowbar > button { width: 34px; height: 34px; } .panel[data-chapter="8"] .plain { display: none; } }
/* the closing steps: the vault style, three cards low on the right, so the north star stays visible above */
.nextup { justify-content: flex-end; }
.nextup .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1099px) { .nextup .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 0; } .nextup .route { display: block; } }
@media (max-width: 820px) { .nextup { display: none; } }

/* ---------- Automation: one real example, by hand and automated, with a light running along the automated route ---------- */
.panel[data-chapter="5"], .panel[data-chapter="9"] { width: min(460px, 34vw); }
.lanes { display: grid; gap: 8px; }
.lane-name { margin: 0; font: 700 12px/1 var(--text); letter-spacing: .2em; text-transform: uppercase; color: #9fb2c8; opacity: 0; transition: opacity .6s ease .3s; } .lane-name.auto { margin-top: 10px; color: var(--teal); }
.autolane.live .lane-name { opacity: 1; }
.lane { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.1vw, 16px); }
.lane .route { top: 50%; left: 4%; right: 4%; margin-top: -1px; z-index: 0; }
.autolane.live .lane .route { transform: none; }
.lc { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 6px; padding: clamp(10px, 1.6vh, 16px) clamp(10px, 1vw, 14px); border-radius: 16px; border: 1px solid #3b5572; background: #0d2038; box-shadow: 0 14px 30px -20px #000; opacity: 0; transform: translate(-50px, 24px) rotate(-6deg) scale(.9); transition: opacity .5s ease, transform .85s cubic-bezier(.2, 1.3, .35, 1), box-shadow .25s; }
.lc:nth-child(even) { transform: translate(50px, 24px) rotate(6deg) scale(.9); }
.lc.auto { border-color: #2dd4bf; border-top-width: 3px; background: linear-gradient(160deg, #0a3a42, #0a1f3d); }
.autolane.live .lc, .autolane.live .lc:nth-child(even) { opacity: 1; transform: none; }
.autolane.live .lane.hand .lc { opacity: .82; }
.autolane.live .lc:nth-of-type(1) { transition-delay: .0s; } .autolane.live .lc:nth-of-type(2) { transition-delay: .1s; } .autolane.live .lc:nth-of-type(3) { transition-delay: .2s; } .autolane.live .lc:nth-of-type(4) { transition-delay: .3s; }
.autolane.live .lane.auto .lc { transition-delay: calc(.5s + var(--n, 0) * .1s); } .autolane.live .lane.auto .lc:nth-of-type(1) { --n: 0; } .autolane.live .lane.auto .lc:nth-of-type(2) { --n: 1; } .autolane.live .lane.auto .lc:nth-of-type(3) { --n: 2; } .autolane.live .lane.auto .lc:nth-of-type(4) { --n: 3; }
.autolane.live .lc.auto:hover { transform: translateY(-5px); box-shadow: 0 20px 36px -18px #2dd4bf; }
.lc i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; color: #9fb2c8; background: rgba(255, 255, 255, .07); } .lc.auto i { color: #04122a; background: #5eead4; } .lc svg { width: 19px; height: 19px; }
.lc b { font: 800 clamp(15px, 1.25vw, 19px)/1.15 var(--display); color: #fff; } .lc p { margin: 0; font: 400 clamp(13.5px, 1vw, 15px)/1.4 var(--text); color: #cfdbea; } .lc.hand p { color: #aab9cb; }
@media (max-width: 1099px) { .lane { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 10px; } .lane .route { display: none; } }
@media (max-height: 760px) and (min-width: 821px) { .lc p { font-size: 13px; } .lc i { width: 28px; height: 28px; } .lane-name { font-size: 11px; } }
@media (max-width: 820px) {
  .autolane { top: 62px; bottom: auto; max-height: 50vh; justify-content: flex-start; }
  .autolane .vault-title { display: block; font-size: 10.5px; } .lane-name, .lane.hand { display: none; } .lanes { gap: 0; }
  .lane.auto { grid-template-columns: 1fr; gap: 5px; } .lane .route { display: none; }
  .lc.auto { display: grid; grid-template-columns: 30px 1fr; column-gap: 9px; align-items: center; padding: 6px 10px; border-radius: 12px; } .lc.auto i { grid-row: 1 / 3; width: 28px; height: 28px; } .lc.auto b { font-size: 14px; } .lc.auto p { font-size: 11.5px; line-height: 1.25; }
  .panel[data-chapter="5"] .plain { display: none; }
}
@media (max-height: 820px) { .panel[data-chapter="9"] .plain { display: none; } }
