/* GIANHX · CEO profile — the business card come alive, through the Matrix.
   Card vocabulary (black, lime brackets, lime + violet halftone, bold uppercase name, lime rule,
   dot QR with Gian) plus code rain, a terminal wake-up and a choice of pills. */
@font-face { font-family: 'CEO Grotesk'; src: url('/fonts/space-grotesk-latin.woff2') format('woff2'); font-weight: 300 700; font-display: swap; }
body:has(.ceo) { margin: 0; background: #000; overflow-x: hidden; }
.ceo { --bk: #000; --lime: #c8ff3d; --code: #9dff4f; --orange: #ff8a00; --violet: #985dff; --fg: #f2f5ef; --muted: #96a39f; --line: #1f2a26;
  --display: 'CEO Grotesk', 'Space Grotesk', system-ui, sans-serif; --mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1); --spring: cubic-bezier(.34, 1.56, .64, 1); --enter: 5.35s;
  position: relative; min-height: 100vh; color: var(--fg); font: 400 16px/1.6 'DM Sans', system-ui, sans-serif; overflow: hidden; }
.ceo *, .ceo *::before, .ceo *::after { box-sizing: border-box; }
:where(.ceo) a { color: inherit; text-decoration: none; }
.ceo :focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }
.ceo h1, .ceo h2, .ceo p { margin: 0; }
.ceo canvas { display: block; }

/* ── wake-up terminal ── */
.ceo-boot { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; background: #000; cursor: pointer;
  animation: ceo-boot-out .6s var(--ease) 3.4s forwards; }
.ceo-boot.skip { animation: ceo-boot-out .35s var(--ease) forwards; }
.ceo-boot-rain { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; animation: ceo-fade-in .6s linear 1.6s forwards; }
/* A dark plate under the lines keeps them readable once the rain floods in. */
.ceo-boot-term { position: relative; width: min(90vw, 540px); padding: 18px 22px; border-radius: 14px; background: rgba(0, 0, 0, .78); box-shadow: 0 0 0 1px rgba(157, 255, 79, .14), 0 0 60px 30px rgba(0, 0, 0, .7);
  font: 500 clamp(16px, 4.4vw, 22px)/1.6 var(--mono); color: var(--code); text-shadow: 0 0 6px rgba(157, 255, 79, .4); }
.ceo-boot-term p { min-height: 1.6em; white-space: nowrap; overflow: hidden; }
.ceo-boot-term p.hot { margin-top: .25em; font-weight: 800; font-size: 1.12em; letter-spacing: .01em; color: #ffa53a; text-shadow: 0 0 1px #ffd9a8, 0 0 8px rgba(255, 138, 0, .45); }
.ceo-boot-term p.typing::after { content: '█'; margin-left: 2px; animation: ceo-caret .6s steps(1) infinite; }
@keyframes ceo-caret { 50% { opacity: 0; } }
@keyframes ceo-fade-in { to { opacity: 1; } }
@keyframes ceo-boot-out { to { opacity: 0; visibility: hidden; transform: scale(1.04); } }

/* ── then the printed card flips front → back (as on the team profiles) ── */
.ceo-cardintro { position: fixed; inset: 0; z-index: 9998; display: grid; place-items: center; background: #000; pointer-events: none; animation: ceo-boot-out .55s var(--ease) 4.9s forwards; }
.ceo-cardintro.skip { animation: ceo-boot-out .3s var(--ease) forwards; }
.ceo-flip-wrap { width: min(84vw, 440px); aspect-ratio: 1.75; perspective: 1400px; animation: ceo-card-in .45s var(--ease) 3.45s both, ceo-card-away .5s var(--ease) 4.85s forwards; }
.ceo-flip { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; animation: ceo-card-flip .75s cubic-bezier(.65, 0, .35, 1) 4s both; }
.ceo-face { position: absolute; inset: 0; border-radius: 16px; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: #000;
  box-shadow: 0 40px 90px -30px rgba(200, 255, 61, .25), 0 0 0 1px rgba(255, 255, 255, .08); }
.ceo-front { display: grid; grid-template-columns: 46% 1fr; align-items: center; }
.ceo-front-gian { width: 118%; max-width: none; margin-left: -12%; align-self: end; height: auto; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .6)); }
.ceo-front-word { padding-right: 9%; }
.ceo-front-word b { display: block; font: 700 clamp(30px, 9vw, 50px)/.9 var(--display); letter-spacing: -.03em; color: #fff; }
.ceo-front-word b span { color: var(--lime); }
.ceo-front-word small { display: block; margin-top: 6px; font: 700 clamp(7px, 1.9vw, 10px)/1.2 'DM Sans', sans-serif; letter-spacing: .02em; color: #fff; text-transform: uppercase; }
.ceo-front .ceo-br { width: 28px; height: 28px; }
.ceo-front .ceo-br.tl { top: 8%; left: auto; right: 6%; border-left-width: 0; border-right-width: 4px; }
.ceo-front .ceo-br.br { bottom: 8%; right: 6%; }
.ceo-back { transform: rotateY(180deg); display: grid; place-items: center; }
.ceo-back .ceo-dots { width: 60%; height: 80%; }
.ceo-back-id { position: relative; z-index: 2; text-align: left; padding-left: 16px; border-left: 4px solid var(--lime); }
.ceo-back-id b { display: block; font: 700 clamp(22px, 6.5vw, 34px)/.95 var(--display); letter-spacing: -.02em; text-transform: uppercase; color: #fff; }
.ceo-back-id b span { display: block; }
.ceo-back-id small { display: block; margin-top: 6px; font: 700 11px/1 'DM Sans', sans-serif; letter-spacing: .04em; text-transform: uppercase; color: #fff; }
@keyframes ceo-card-in { from { opacity: 0; transform: translateY(30px) scale(.86) rotateX(14deg); } }
@keyframes ceo-card-flip { from { transform: rotateY(0); } to { transform: rotateY(180deg); } }
@keyframes ceo-card-away { to { transform: scale(1.9); opacity: 0; } }

/* ── halftone dots ── */
.ceo-dots { position: absolute; pointer-events: none; width: 340px; height: 340px; --dx: 0px; --dy: 0px; translate: var(--dx) var(--dy); transition: translate .8s var(--ease); z-index: 1; }
.ceo-dots.lime { left: -40px; top: -40px; background: radial-gradient(circle, var(--lime) 1.7px, transparent 2.2px) 0 0 / 13px 13px;
  -webkit-mask: radial-gradient(circle at 0 0, #000 0, rgba(0, 0, 0, .7) 30%, transparent 68%); mask: radial-gradient(circle at 0 0, #000 0, rgba(0, 0, 0, .7) 30%, transparent 68%); }
.ceo-dots.violet { right: -40px; bottom: -40px; background: radial-gradient(circle, var(--violet) 2px, transparent 2.6px) 0 0 / 14px 14px;
  -webkit-mask: radial-gradient(circle at 100% 100%, #000 0, rgba(0, 0, 0, .7) 30%, transparent 68%); mask: radial-gradient(circle at 100% 100%, #000 0, rgba(0, 0, 0, .7) 30%, transparent 68%); }

/* ── top bar ── */
.ceo-top { position: relative; z-index: 4; display: flex; align-items: center; justify-content: space-between; width: min(1140px, calc(100% - 32px)); margin: 0 auto; padding: 18px 0;
  animation: ceo-rise .7s var(--ease) calc(var(--enter) + .05s) both; }
.ceo-word { font: 700 22px/1 var(--display); letter-spacing: -.03em; }
.ceo-word span { color: var(--lime); }
.ceo-dir { display: inline-flex; gap: 6px; align-items: center; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; font: 600 13px/1 'DM Sans', sans-serif; color: var(--muted); transition: color .3s, border-color .3s; }
.ceo-dir:hover { color: var(--fg); border-color: var(--lime); }
@keyframes ceo-rise { from { opacity: 0; transform: translateY(18px); } }

.ceo-main { position: relative; z-index: 2; width: min(1140px, calc(100% - 32px)); margin: 0 auto; }

/* ── hero ── */
.ceo-hero { position: relative; display: grid; gap: 30px; padding: 16px 0 6px; }
.ceo-rain { position: absolute; left: 50%; top: -90px; width: 100vw; height: calc(100% + 130px); translate: -50% 0; opacity: .32; pointer-events: none; z-index: 0;
  -webkit-mask: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%); mask: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%); }
.ceo-hero > .ceo-dots.lime { left: -110px; top: -70px; }
.ceo-hero > .ceo-dots.violet { right: -120px; bottom: -160px; }

.ceo-br { position: absolute; width: 38px; height: 38px; border: 0 solid var(--lime); pointer-events: none; z-index: 3; }
.ceo-br.tl { top: 0; left: 0; border-top-width: 4px; border-left-width: 4px; }
.ceo-br.tr { top: 0; right: 0; border-top-width: 4px; border-right-width: 4px; }
.ceo-br.bl { bottom: 0; left: 0; border-bottom-width: 4px; border-left-width: 4px; }
.ceo-br.br { bottom: 0; right: 0; border-bottom-width: 4px; border-right-width: 4px; }
.ceo-frame { position: relative; z-index: 2; width: min(78vw, 370px); padding: 16px; transition: transform .6s var(--ease); }
.ceo-frame .ceo-br { animation: ceo-lock .8s var(--spring) both; }
.ceo-frame .ceo-br.tl { --fx: -34px; --fy: -34px; animation-delay: calc(var(--enter) + .1s); }
.ceo-frame .ceo-br.tr { --fx: 34px; --fy: -34px; animation-delay: calc(var(--enter) + .18s); }
.ceo-frame .ceo-br.bl { --fx: -34px; --fy: 34px; animation-delay: calc(var(--enter) + .26s); }
.ceo-frame .ceo-br.br { --fx: 34px; --fy: 34px; animation-delay: calc(var(--enter) + .34s); }
@keyframes ceo-lock { from { opacity: 0; transform: translate(var(--fx), var(--fy)) scale(1.3); } }
.ceo-frame.is-locked .ceo-br { animation: ceo-relock 5s var(--ease) infinite; }
@keyframes ceo-relock { 0%, 86%, 100% { transform: none; } 92% { transform: scale(.82); } }
.ceo-portrait { position: relative; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: #020602; box-shadow: inset 0 0 60px rgba(157, 255, 79, .12);
  animation: ceo-focus 1s var(--ease) calc(var(--enter) + .25s) both; }
@keyframes ceo-focus { from { filter: blur(14px) brightness(.5); transform: scale(1.06); } }
.ceo-rain-in { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .75; }
.ceo-mono { position: absolute; inset: 0; display: grid; place-items: center; padding-bottom: 28%; font: 700 clamp(96px, 26vw, 150px)/1 var(--display); letter-spacing: -.06em; color: var(--lime);
  text-shadow: 0 0 24px rgba(200, 255, 61, .65), 0 0 2px #fff; animation: ceo-flicker 6s steps(1) calc(var(--enter) + 2s) infinite; }
@keyframes ceo-flicker { 0%, 96%, 100% { opacity: 1; } 97% { opacity: .35; } 98% { opacity: 1; } 99% { opacity: .5; } }
/* The portrait, framed high so Gian can peek over the bottom edge without covering the face. */
.ceo-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
.ceo-portrait::after { content: ''; position: absolute; inset: auto 0 0; height: 34%; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .55)); pointer-events: none; }
.ceo-gian { position: absolute; z-index: 2; left: 50%; bottom: 0; width: 50%; height: auto; translate: -50% 24%; filter: drop-shadow(0 -6px 22px rgba(0, 0, 0, .8));
  animation: ceo-gian-up .9s var(--spring) calc(var(--enter) + .7s) both; }
@keyframes ceo-gian-up { from { transform: translateY(70%); } }
.ceo-scan { position: absolute; left: 0; right: 0; top: -30%; height: 30%; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(180deg, transparent, rgba(200, 255, 61, .3), rgba(200, 255, 61, .7) 52%, transparent 54%);
  animation: ceo-scan 1.1s var(--ease) calc(var(--enter) + .5s) both, ceo-scan 1.1s var(--ease) calc(var(--enter) + 7s) infinite; }
@keyframes ceo-scan { from { top: -30%; } to { top: 100%; } }
.ceo-badge { position: absolute; left: 26px; top: 26px; z-index: 4; display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 6px; background: rgba(0, 0, 0, .78);
  border: 1px solid rgba(200, 255, 61, .4); font: 600 11px/1 var(--mono); color: var(--code); backdrop-filter: blur(6px); animation: ceo-rise .5s var(--ease) calc(var(--enter) + .8s) both; }
.ceo-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 8px var(--lime); animation: ceo-caret 1.4s steps(1) infinite; }

.ceo-id { position: relative; z-index: 2; display: grid; gap: 12px; align-content: center; }
.ceo-rule { display: block; width: 56px; height: 5px; background: var(--lime); transform-origin: 0 50%; animation: ceo-rule .7s var(--ease) calc(var(--enter) + .4s) both; box-shadow: 0 0 14px rgba(200, 255, 61, .5); }
@keyframes ceo-rule { from { transform: scaleX(0); } }
.ceo-kicker { font: 600 14px/1.3 var(--mono); color: var(--code); animation: ceo-rise .6s var(--ease) calc(var(--enter) + .45s) both; }
.ceo-name { font: 700 clamp(44px, 12.6vw, 104px)/.88 var(--display); letter-spacing: -.035em; }
.ceo-line { display: block; white-space: nowrap; }
.ceo-ch { display: inline-block; min-width: .2em; }
.ceo-ch.decoding { color: var(--code); text-shadow: 0 0 12px rgba(157, 255, 79, .8); font-family: var(--mono); font-weight: 500; }
.ceo-ch.locked { animation: ceo-lockin .5s var(--ease); }
@keyframes ceo-lockin { from { color: #fff; text-shadow: 0 0 22px var(--lime); } }
.ceo-ch:hover { color: var(--lime); }
.ceo-role { font: 700 clamp(14px, 3.6vw, 18px)/1.2 'DM Sans', sans-serif; letter-spacing: .06em; text-transform: uppercase; animation: ceo-rise .6s var(--ease) calc(var(--enter) + 1s) both; }
.ceo-phone, .ceo-site { display: inline-flex; align-items: center; gap: 12px; width: fit-content; animation: ceo-rise .6s var(--ease) calc(var(--enter) + 1.1s) both; }
.ceo-phone { margin-top: 6px; font: 700 clamp(28px, 7vw, 40px)/1 var(--display); color: var(--lime); }
.ceo-site { font: 600 18px/1 'DM Sans', sans-serif; animation-delay: calc(var(--enter) + 1.18s); }
.ceo-ico { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--lime); color: #000; transition: transform .45s var(--spring); }
.ceo-ico svg { width: 20px; height: 20px; }
.ceo-phone:hover .ceo-ico { animation: ceo-ring .45s ease-in-out 2; }
.ceo-site:hover .ceo-ico { transform: rotate(-12deg) scale(1.08); }
@keyframes ceo-ring { 25% { transform: rotate(-18deg); } 75% { transform: rotate(18deg); } }

/* ── actions ── */
.ceo-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 30px; position: relative; z-index: 2; }
.ceo-act { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 12px 16px; border-radius: 14px; cursor: pointer;
  border: 1px solid #263330; background: #070c0a; color: var(--fg); font: 700 15px/1.2 'DM Sans', sans-serif; overflow: hidden; isolation: isolate; -webkit-tap-highlight-color: transparent;
  transition: transform .35s var(--spring), border-color .3s, color .3s; }
.ceo-actions .ceo-act { animation: ceo-act-in .55s var(--spring) both; animation-delay: calc(var(--enter) + 1.2s + var(--n, 0) * 55ms); }
@keyframes ceo-act-in { from { opacity: 0; transform: translateY(14px) scale(.92); } }
.ceo-act svg { width: 20px; height: 20px; flex: none; transition: transform .45s var(--spring); }
.ceo-act:hover { transform: translateY(-3px); border-color: var(--lime); }
.ceo-act:active { transform: scale(.95); }
.ceo-act::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--lime); transform: translateY(101%); transition: transform .45s var(--ease); }
.ceo-wa { grid-column: 1 / -1; min-height: 60px; font-size: 16px; background: var(--lime); color: #000; border-color: var(--lime); box-shadow: 0 0 34px rgba(200, 255, 61, .25); }
.ceo-wa::before { background: #fff; }
.ceo-wa:hover svg, .ceo-wa.tap svg { animation: ceo-wiggle .6s var(--spring); }
@keyframes ceo-wiggle { 25% { transform: rotate(-16deg) scale(1.15); } 50% { transform: rotate(12deg) scale(1.15); } }
.ceo-save { background: #f2f5ef; color: #000; border-color: #f2f5ef; }
.ceo-save-ico { position: relative; width: 20px; height: 20px; perspective: 200px; }
.ceo-save-ico svg { position: absolute; inset: 0; backface-visibility: hidden; transition: transform .55s var(--spring); }
.ceo-save-ico .b { transform: rotateY(180deg); }
.ceo-save:hover::before, .ceo-save.done::before { transform: none; }
.ceo-save:hover .a, .ceo-save.done .a { transform: rotateY(180deg); }
.ceo-save:hover .b, .ceo-save.done .b { transform: none; }
.ceo-call:hover svg, .ceo-call.tap svg { animation: ceo-ring .45s ease-in-out 2; }
.ceo-mail .flap { transform-origin: 12px 6px; transition: transform .45s var(--spring); }
.ceo-mail:hover .flap, .ceo-mail.tap .flap { transform: scaleY(-1); }
.ceo-share:hover svg, .ceo-share.tap svg { animation: ceo-launch .6s var(--ease); }
@keyframes ceo-launch { 45% { transform: translateY(-7px); opacity: 0; } 46% { transform: translateY(7px); opacity: 0; } }
.ceo-qr:hover svg, .ceo-qr.tap svg { transform: scale(1.15) rotate(90deg); }
.ceo-call:hover, .ceo-mail:hover, .ceo-share:hover, .ceo-qr:hover { color: #000; }
.ceo-call:hover::before, .ceo-mail:hover::before, .ceo-share:hover::before, .ceo-qr:hover::before { transform: none; }

/* ── about as terminal output ── */
.ceo-term { position: relative; z-index: 2; margin-top: 64px; border: 1px solid #1f3a24; border-radius: 16px; overflow: hidden; background: #010401;
  box-shadow: 0 0 0 1px rgba(157, 255, 79, .05), 0 30px 70px -40px rgba(157, 255, 79, .4); }
.ceo-term-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid #13241a; background: #050b07; }
.ceo-term-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--orange); }
.ceo-term-bar i:nth-child(2) { background: var(--violet); }
.ceo-term-bar i:nth-child(3) { background: var(--lime); }
.ceo-term-bar span { margin-left: 8px; font: 500 12px/1 var(--mono); color: var(--muted); }
.ceo-term-body { padding: 22px clamp(18px, 4vw, 30px) 26px; }
.ceo-cmd { font: 500 14px/1.7 var(--mono); color: var(--code); }
.ceo-cmd span { color: var(--orange); }
.ceo-about-h { margin: 10px 0 12px; font: 700 clamp(26px, 5.4vw, 40px)/1.05 var(--display); letter-spacing: -.035em; max-width: 22ch; }
.ceo-about-p { max-width: 64ch; color: #c9d4cf; font-size: 17px; margin-bottom: 18px; }
.ceo-ls { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 4px 0 16px; padding: 0; list-style: none; font: 500 14px/1.6 var(--mono); color: var(--fg); }
.ceo-ls li::before { content: '▸ '; color: var(--lime); }
.ceo-cursor::after { content: '█'; color: var(--code); animation: ceo-caret 1s steps(1) infinite; }
html.ceo-js .ceo-term .ceo-term-body > * { opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s var(--ease); }
html.ceo-js .ceo-term.on .ceo-term-body > * { opacity: 1; transform: none; }
html.ceo-js .ceo-term.on .ceo-term-body > :nth-child(2) { transition-delay: .25s; }
html.ceo-js .ceo-term.on .ceo-term-body > :nth-child(3) { transition-delay: .45s; }
html.ceo-js .ceo-term.on .ceo-term-body > :nth-child(4) { transition-delay: .7s; }
html.ceo-js .ceo-term.on .ceo-term-body > :nth-child(5) { transition-delay: .85s; }
html.ceo-js .ceo-term.on .ceo-term-body > :nth-child(6) { transition-delay: 1.05s; }

/* ── pills ── */
.ceo-pills { position: relative; z-index: 2; margin-top: 64px; }
.ceo-h { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font: 700 clamp(26px, 5vw, 36px)/1.05 var(--display); letter-spacing: -.03em; }
.ceo-h::before { content: ''; width: 5px; height: .9em; background: var(--lime); flex: none; }
.ceo-pill-row { display: grid; gap: 12px; }
.ceo-pill { --c: var(--lime); position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 4px 16px; align-items: center; padding: 18px; border-radius: 18px; overflow: hidden; isolation: isolate;
  border: 1px solid color-mix(in srgb, var(--c) 35%, #1d2623); background: #060a08; transition: transform .45s var(--spring), border-color .3s, box-shadow .45s var(--ease); }
.ceo-pill.orange { --c: var(--orange); }
.ceo-pill.violet { --c: var(--violet); }
.ceo-pill::after { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(500px circle at 0 50%, color-mix(in srgb, var(--c) 18%, transparent), transparent 60%); opacity: 0; transition: opacity .4s; }
.ceo-pill:hover { transform: translateY(-4px); border-color: var(--c); box-shadow: 0 22px 44px -24px var(--c); }
.ceo-pill:hover::after { opacity: 1; }
.ceo-capsule { grid-row: 1 / span 2; position: relative; width: 26px; height: 58px; border-radius: 999px; overflow: hidden; transform: rotate(-24deg);
  background: linear-gradient(180deg, var(--c) 0 50%, #f2f5ef 50% 100%); box-shadow: 0 0 22px color-mix(in srgb, var(--c) 55%, transparent), inset -4px -6px 10px rgba(0, 0, 0, .25);
  transition: transform .6s var(--spring); }
.ceo-capsule i { position: absolute; left: 6px; top: 7px; width: 6px; height: 16px; border-radius: 999px; background: rgba(255, 255, 255, .7); }
.ceo-pill:hover .ceo-capsule { transform: rotate(18deg) scale(1.08); }
.ceo-pill-t { font: 700 clamp(19px, 3.8vw, 23px)/1.15 var(--display); letter-spacing: -.02em; }
.ceo-pill-d { grid-column: 2; color: var(--muted); font-size: 14px; }
.ceo-pill-a { grid-row: 1 / span 2; grid-column: 3; font-size: 22px; color: var(--c); transition: transform .45s var(--spring); }
.ceo-pill:hover .ceo-pill-a { transform: rotate(45deg); }
html.ceo-js .ceo-pills.on .ceo-pill { animation: ceo-act-in .6s var(--spring) both; animation-delay: calc(var(--k) * 90ms); }

/* ── live card back ── */
.ceo-card { position: relative; z-index: 2; display: grid; gap: 22px; margin-top: 72px; padding: 26px; border-radius: 22px; background: #000; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 40px 80px -40px rgba(152, 93, 255, .5); transition: transform .6s var(--ease); scroll-margin-top: 20px; }
.ceo-rain-card { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .16; }
.ceo-card .ceo-dots { width: 240px; height: 240px; }
.ceo-card .ceo-dots.lime { left: -20px; top: -20px; }
.ceo-card .ceo-dots.violet { right: -20px; bottom: -20px; }
.ceo-qr-tile { position: relative; z-index: 2; width: min(100%, 300px); justify-self: center; border-radius: 6px; overflow: hidden; box-shadow: 0 18px 40px -16px rgba(200, 255, 61, .4); }
.ceo-qr-tile svg { display: block; width: 100%; height: auto; }
.ceo-qr-scan { position: absolute; left: 0; right: 0; top: -24%; height: 24%; background: linear-gradient(180deg, transparent, rgba(200, 255, 61, .55), transparent); animation: ceo-scan 2.8s var(--ease) infinite; pointer-events: none; }
.ceo-card-id { position: relative; z-index: 2; display: flex; gap: 16px; align-items: stretch; }
.ceo-card-id .ceo-rule { width: 5px; height: auto; animation: none; }
.ceo-card-name { font: 700 clamp(28px, 7vw, 40px)/.92 var(--display); letter-spacing: -.02em; text-transform: uppercase; }
.ceo-card-name span { display: block; }
.ceo-card-role { margin-top: 6px; font: 700 13px/1.2 'DM Sans', sans-serif; letter-spacing: .05em; text-transform: uppercase; }
.ceo-card-line { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-weight: 700; }
.ceo-card-line span { color: var(--lime); font-size: 10px; }
.ceo-card-line.lime { color: var(--lime); font: 700 22px/1 var(--display); }
.ceo-card-actions { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 10px; }
.ceo-dl { background: var(--lime); color: #000; border-color: var(--lime); flex: 1 1 auto; }
.ceo-dl::before { background: #fff; }
.ceo-dl:hover::before { transform: none; }
.ceo-save-alt { flex: 1 1 auto; }
.ceo-save-alt:hover { color: #000; }
.ceo-save-alt:hover::before { transform: none; }

/* ── footer: follow the orange cat ── */
.ceo-foot { position: relative; z-index: 2; display: grid; justify-items: center; gap: 10px; margin-top: 70px; padding: 0 16px 34px; text-align: center; }
.ceo-peek { width: 150px; height: 92px; padding: 0; border: 0; background: none; cursor: pointer; overflow: hidden; -webkit-tap-highlight-color: transparent; }
.ceo-peek img { display: block; width: 150px; height: auto; transform: translateY(70%); transition: transform .8s var(--spring); }
.ceo-foot.in .ceo-peek img { transform: translateY(8%); }
.ceo-peek.jump img { animation: ceo-jump .7s var(--spring); }
@keyframes ceo-jump { 35% { transform: translateY(-10%) rotate(-6deg); } 70% { transform: translateY(12%); } }
.ceo-bubble { padding: 10px 16px; border-radius: 14px; background: var(--lime); color: #000; font-weight: 700; font-size: 14px; opacity: 0; transform: translateY(8px) scale(.95); transition: opacity .3s, transform .45s var(--spring); pointer-events: none; }
.ceo-bubble a { text-decoration: underline; text-underline-offset: 3px; }
.ceo-bubble.on { opacity: 1; transform: none; pointer-events: auto; }
.ceo-foot-line { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; color: var(--muted); font-size: 14px; }
.ceo-foot-line a:hover { color: var(--lime); }
.ceo-foot-line.small { font-size: 13px; }
.ceo-foot-line.small a { color: var(--lime); }

/* reveals, toast, taps */
html.ceo-js [data-ceo-reveal] { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
html.ceo-js [data-ceo-reveal].on { opacity: 1; transform: none; }
.ceo-toast { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 60; padding: 12px 20px; border-radius: 999px; background: var(--lime); color: #000; font-weight: 700;
  white-space: nowrap; transform: translate(-50%, 24px); opacity: 0; visibility: hidden; transition: transform .45s var(--spring), opacity .3s, visibility 0s .45s; pointer-events: none; }
.ceo-toast.on { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition: transform .45s var(--spring), opacity .3s, visibility 0s; }
.ceo-tap { position: fixed; z-index: 70; pointer-events: none; font: 600 15px/1 var(--mono); color: var(--code); text-shadow: 0 0 8px var(--code); animation: ceo-tapglyph .7s var(--ease) forwards; }
@keyframes ceo-tapglyph { from { opacity: 1; transform: translate(-50%, -50%) scale(1); } to { opacity: 0; transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(.6); } }

/* ── desktop: the card back — portrait | lime rule | name ── */
@media (min-width: 900px) {
  .ceo-hero { grid-template-columns: auto 1fr; gap: 56px; align-items: center; min-height: min(74vh, 660px); padding-top: 30px; }
  .ceo-frame { width: 370px; }
  .ceo-id { padding-left: 34px; }
  .ceo-id .ceo-rule { position: absolute; left: 0; top: 4px; bottom: 4px; width: 5px; height: auto; transform-origin: 50% 0; animation-name: ceo-rule-v; }
  @keyframes ceo-rule-v { from { transform: scaleY(0); } }
  .ceo-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 780px; margin-left: auto; margin-right: auto; }
  .ceo-term, .ceo-pills, .ceo-card { max-width: 880px; margin-left: auto; margin-right: auto; }
  .ceo-pills .ceo-h { justify-content: center; }
  .ceo-pill-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ceo-pill { grid-template-columns: 1fr auto; grid-template-rows: auto auto 1fr; align-items: start; gap: 10px; padding: 22px; min-height: 210px; }
  .ceo-capsule { grid-row: 1; grid-column: 1; margin: 6px 0 10px 8px; }
  .ceo-pill-t { grid-column: 1 / -1; }
  .ceo-pill-d { grid-column: 1 / -1; }
  .ceo-pill-a { grid-row: 1; grid-column: 2; }
  .ceo-card { grid-template-columns: 300px 1fr; align-items: center; gap: 34px; padding: 34px; }
  .ceo-card-actions { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .ceo-boot, .ceo-cardintro { display: none; }
  .ceo { --enter: 0s; }
  .ceo *, .ceo *::before, .ceo *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html.ceo-js [data-ceo-reveal], html.ceo-js .ceo-term .ceo-term-body > * { opacity: 1; transform: none; }
  .ceo-peek img { transform: translateY(8%); }
}
