/* UltroDynamics brand layer. Loads after tokens.css and site.css (both copied from diegoarivada.dev)
   and only changes what makes this the UltroDynamics brand: electric blue to indigo instead of blue to red. */
:root { --grad: linear-gradient(120deg, #0a66c2, #4f46e5); }
.orb-red { background: #4f46e5; }
.grad-text { background-image: linear-gradient(90deg, #9cc7ff, #c4b5fd); }
.dash-btn:hover { box-shadow: 0 6px 18px rgba(79, 70, 229, .3); }

/* Logo */
.brand-mark { width: 38px; height: 34px; flex: none; display: block; object-fit: contain; padding: 3px; border-radius: 10px; background: #fff; transition: transform .3s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.05); }
.hero-mark {
  justify-self: center; width: min(340px, 70vw); aspect-ratio: 1; display: grid; place-items: center;
  border-radius: 32px; padding: 2.2rem; background: linear-gradient(140deg, #fff, #e6edfb);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .35);
}
.hero-mark img { width: 100%; height: auto; display: block; animation: ud-float 6s ease-in-out infinite alternate; }
@keyframes ud-float { from { transform: translateY(-6px); } to { transform: translateY(6px); } }

/* Service and plan cards */
.price { display: block; margin-top: .9rem; font-weight: 700; color: var(--blue); }
.plan { display: flex; flex-direction: column; }
.plan .amount { font-size: 2.2rem; font-weight: 700; line-height: 1.1; margin: .5rem 0 0; color: var(--text); }
.plan .amount small { font-size: .9rem; font-weight: 500; color: var(--muted); }
.plan.featured { border-color: var(--blue); box-shadow: var(--shadow-lg); }

/* Project cards */
.work-card { display: flex; flex-direction: column; }
.work-card .shot { display: block; width: calc(100% + 3rem); max-width: none; height: auto; margin: -1.5rem -1.5rem 1.2rem; border-bottom: 1px solid var(--line); }
.work-head { display: flex; align-items: center; gap: .8rem; }
.work-head h3 { margin: 0; }
.work-card .links-row { margin-top: auto; }
.work-card .tag-row { margin-bottom: .4rem; }

/* Process steps */
.step-num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--grad); color: #fff; font-weight: 700; }

/* Contact band */
.cta-band { position: relative; overflow: hidden; isolation: isolate; color: #fff; background: #0d2a52; border-radius: var(--radius); padding: clamp(2rem, 5vw, 3.5rem); text-align: center; }
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0 0 .5rem; }
.cta-band p { margin: 0 auto 1.5rem; max-width: 36rem; color: rgba(255, 255, 255, .86); }
.cta-band .btn-row { justify-content: center; }

@media (prefers-reduced-motion: reduce) { .hero-mark img { animation: none; } }
@media (max-width: 960px) { .hero-mark { width: min(220px, 60vw); padding: 1.5rem; } }

/* Demo bot: brand colors, the logo as its face, glass panel */
.ud-bot { position: fixed; right: 1rem; bottom: 1rem; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: .7rem; }
.bot-face { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 11px; background: linear-gradient(140deg, #fff, #dfe8fb); box-shadow: 0 2px 6px rgba(11, 21, 48, .25); }
.bot-face img { width: 24px; height: auto; display: block; }
.bot-toggle { display: inline-flex; align-items: center; gap: .6rem; padding: .45rem 1.1rem .45rem .45rem; border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; background: var(--grad); color: #fff; font: inherit; font-weight: 600; cursor: pointer; box-shadow: var(--shadow-lg); transition: transform .2s var(--ease); }
.bot-toggle:hover { transform: translateY(-2px); }
.bot-toggle:focus-visible, .bot-chip:focus-visible, .bot-log:focus-visible, .bot-close:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.bot-panel { width: min(380px, calc(100vw - 2rem)); max-height: min(600px, calc(100vh - 6rem)); display: flex; flex-direction: column; background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 24px 60px rgba(11, 21, 48, .35); overflow: hidden; transform-origin: bottom right; animation: ud-bot-in .28s var(--ease); }
.bot-panel[hidden] { display: none; }
@keyframes ud-bot-in { from { opacity: 0; transform: translateY(12px) scale(.96); } }
.bot-head { position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: center; gap: .75rem; padding: 1rem 1rem 1.1rem; color: #fff; background: #0d2a52; }
.bot-head::before, .bot-head::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(34px); opacity: .9; }
.bot-head::before { width: 190px; height: 190px; left: -60px; top: -90px; background: #0a66c2; }
.bot-head::after { width: 170px; height: 170px; right: -50px; bottom: -110px; background: #4f46e5; }
.bot-head .bot-face { width: 42px; height: 42px; border-radius: 13px; }
.bot-head .bot-face img { width: 30px; }
.bot-title { flex: 1; min-width: 0; }
.bot-title strong { display: block; font-size: 1.02rem; letter-spacing: -.01em; }
.bot-title span { display: flex; align-items: center; gap: .4rem; font-size: .78rem; color: rgba(255, 255, 255, .82); }
.bot-title span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #6ee7d8; box-shadow: 0 0 8px #6ee7d8; }
.bot-close { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; }
.bot-close:hover { background: rgba(255, 255, 255, .22); }
.bot-close .i { width: 18px; height: 18px; }
.bot-log { flex: 1; min-height: 180px; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .7rem; background: radial-gradient(420px 220px at 100% 0, var(--tint), transparent 70%), var(--bg); }
.bot-msg { display: flex; align-items: flex-end; gap: .5rem; max-width: 92%; animation: ud-msg-in .3s var(--ease); }
@keyframes ud-msg-in { from { opacity: 0; transform: translateY(8px); } }
.bot-msg .bot-face { width: 28px; height: 28px; border-radius: 9px; }
.bot-msg .bot-face img { width: 20px; }
.bot-bubble { padding: .65rem .85rem; border-radius: 16px; font-size: .92rem; line-height: 1.5; }
.bot-bubble p { margin: 0; }
.bot-bubble .more { margin-top: .45rem; }
.bot-msg.bot { align-self: flex-start; }
.bot-msg.bot .bot-bubble { background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 5px; box-shadow: var(--shadow); }
.bot-msg.user { align-self: flex-end; }
.bot-msg.user .bot-bubble { background: var(--grad); color: #fff; border-bottom-right-radius: 5px; box-shadow: 0 6px 16px rgba(79, 70, 229, .28); }
.bot-dots { display: inline-flex; gap: 4px; padding: .2rem 0; }
.bot-dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); animation: ud-dot 1s ease-in-out infinite; }
.bot-dots span:nth-child(2) { animation-delay: .15s; }
.bot-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes ud-dot { 0%, 60%, 100% { transform: none; opacity: .4; } 30% { transform: translateY(-5px); opacity: 1; } }
.bot-chips { display: flex; flex-wrap: wrap; gap: .4rem; padding: .7rem 1rem .2rem; border-top: 1px solid var(--line); }
.bot-chip { font: inherit; font-size: .78rem; font-weight: 600; padding: .3rem .7rem; border-radius: 999px; border: 1px solid transparent; background: var(--tint); color: var(--blue); cursor: pointer; transition: transform .15s ease, border-color .15s ease; }
.bot-chip:hover { border-color: var(--blue); transform: translateY(-1px); }
.bot-form { display: flex; gap: .5rem; padding: .7rem 1rem .5rem; }
.bot-input { flex: 1; min-width: 0; font: inherit; font-size: .95rem; padding: .65rem .9rem; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--text); }
.bot-input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--tint); }
.bot-send { padding: 0; width: 44px; height: 44px; border-radius: 50%; justify-content: center; flex: none; }
.bot-note { margin: 0; padding: 0 1rem .8rem; font-size: .72rem; color: var(--muted); text-align: center; }
@media (max-width: 560px) { .bot-toggle > span:last-child { display: none; } .bot-toggle { padding: .45rem; } }
@media (prefers-reduced-motion: reduce) { .bot-panel, .bot-msg, .bot-dots span { animation: none; } }
@media print { .ud-bot { display: none; } }

/* Animated logo in the hero */
.hero-mark.video { padding: 6px; background: linear-gradient(140deg, rgba(255, 255, 255, .6), rgba(255, 255, 255, .08)); }
.hero-video { width: 100%; height: 100%; object-fit: cover; border-radius: 27px; display: block; }
@media (max-width: 960px) { .hero-mark.video { width: min(280px, 70vw); padding: 6px; } }

/* ---------- Visual effects (all off under prefers-reduced-motion) ---------- */
.hero-fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

/* Capability strip under the hero */
.marquee { overflow: hidden; background: var(--card); border-bottom: 1px solid var(--line); padding: .8rem 0; }
.marquee-track { display: flex; width: max-content; animation: ud-marquee 40s linear infinite; }
.marquee-track span { display: inline-flex; align-items: center; gap: 2.2rem; padding-left: 2.2rem; font-weight: 700; font-size: .95rem; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.marquee-track span::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); opacity: .5; }
@keyframes ud-marquee { to { transform: translateX(-25%); } }

/* Cursor spotlight on cards */
.card::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s ease; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(79, 70, 229, .14), transparent 70%); }
.card:hover::after { opacity: 1; }
[data-theme="dark"] .card::after { background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(122, 167, 255, .16), transparent 70%); }

/* Icon tiles and step numbers react on hover */
.ico, .step-num { transition: transform .3s var(--ease); }
.card:hover .ico, .card:hover .step-num { transform: rotate(-6deg) scale(1.1); }

/* Featured plan: slowly rotating gradient border */
@property --ud-ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.plan.featured { border: 2px solid transparent; background: linear-gradient(var(--card), var(--card)) padding-box, conic-gradient(from var(--ud-ang), #0a66c2, #4f46e5, #7aa7ff, #0a66c2) border-box; animation: ud-spin 6s linear infinite; }
@keyframes ud-spin { to { --ud-ang: 360deg; } }

/* Shimmer on the gradient headline word */
.hero .grad-text { background-image: linear-gradient(90deg, #9cc7ff, #c4b5fd, #ffffff, #9cc7ff); background-size: 300% 100%; animation: ud-shimmer 7s ease-in-out infinite alternate; }
@keyframes ud-shimmer { to { background-position: 100% 0; } }

/* Glow behind the animated logo */
.hero-mark.video { animation: ud-glow 4s ease-in-out infinite alternate; }
@keyframes ud-glow { from { box-shadow: 0 30px 60px rgba(0, 0, 0, .35), 0 0 0 rgba(122, 167, 255, 0); } to { box-shadow: 0 30px 60px rgba(0, 0, 0, .35), 0 0 70px rgba(122, 167, 255, .45); } }

/* Logo animation gallery */
.motion-card .motion-clip { display: block; width: calc(100% + 3rem); max-width: none; height: auto; aspect-ratio: 1; object-fit: cover; margin: -1.5rem -1.5rem 1.2rem; background: #0b1530; border-bottom: 1px solid var(--line); }
.motion-card h3 { margin-top: 0; }

/* Demo bot button pulse */
.bot-toggle[aria-expanded="false"] { animation: ud-pulse 3s ease-out infinite; }
@keyframes ud-pulse { 0% { box-shadow: var(--shadow-lg), 0 0 0 0 rgba(79, 70, 229, .5); } 70%, 100% { box-shadow: var(--shadow-lg), 0 0 0 14px rgba(79, 70, 229, 0); } }

@media (prefers-reduced-motion: reduce) {
  .marquee-track, .plan.featured, .hero .grad-text, .hero-mark.video, .bot-toggle[aria-expanded="false"] { animation: none; }
  .marquee-track { flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee-track span:nth-child(n+9) { display: none; }
  .card:hover .ico, .card:hover .step-num { transform: none; }
  .hero-fx { display: none; }
}

/* ---------- Client portal ---------- */
.portal-gate { max-width: 34rem; margin: 0 auto; text-align: center; padding: 2.5rem 2rem; }
.portal-gate .ico { margin: 0 auto; width: 56px; height: 56px; border-radius: 16px; background: var(--grad); color: #fff; }
.portal-gate h2 { font-size: 1.5rem; margin: 1rem 0 .4rem; }
.portal-gate > p { color: var(--muted); margin: 0 0 1.2rem; }
.portal-gate .btn-row { justify-content: center; }
.portal-gate .form-note { margin-top: 1rem; }
.btn[hidden], .form-note[hidden], .form-error[hidden] { display: none; }
#portal-dash .stat strong { font-size: 1.8rem; }
.portal-grid { align-items: start; }
.portal-grid h3 { margin-top: 0; }
.portal-form { display: grid; gap: .6rem; }
.portal-form label, .portal-form legend { font-size: .85rem; font-weight: 600; }
.portal-form input[type="text"], .portal-form textarea, .portal-form select { font: inherit; width: 100%; padding: .65rem .8rem; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--bg); color: var(--text); }
.portal-form textarea { resize: vertical; }
.portal-form input:focus, .portal-form textarea:focus, .portal-form select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--tint); }
.portal-form .btn { justify-self: start; margin-top: .4rem; border: 0; cursor: pointer; }
.portal-form .btn:disabled { opacity: .6; cursor: progress; }
.portal-types { border: 0; padding: 0; margin: 0 0 .3rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.portal-types legend { padding: 0; margin-bottom: .5rem; }
.portal-types label { position: relative; cursor: pointer; }
.portal-types input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.portal-types span { display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .9rem; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); font-weight: 600; font-size: .9rem; transition: border-color .15s ease, background .15s ease; }
.portal-types span .i { width: 16px; height: 16px; }
.portal-types input:checked + span { background: var(--grad); color: #fff; border-color: transparent; }
.portal-types input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.req-list { display: grid; gap: .8rem; }
.req { padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); animation: ud-msg-in .3s var(--ease); }
.req-top { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.req h3 { font-size: 1rem; margin: .6rem 0 .25rem; }
.req-details { margin: 0; color: var(--muted); font-size: .92rem; overflow-wrap: anywhere; }
.req-meta { margin: .5rem 0 0; font-size: .78rem; color: var(--muted); }
#portal-signout { border-width: 1px; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .req { animation: none; } }

/* ---------- Launch content: socials, project filters, abilities, FAQ ---------- */
.hero-social { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; margin: 1.1rem 0 0; font-size: .92rem; color: rgba(255, 255, 255, .8); }
.hero-social a { display: inline-flex; align-items: center; gap: .35rem; color: #fff; font-weight: 600; text-decoration: none; }
.hero-social a:hover { text-decoration: underline; }
.hero-social .i { width: 18px; height: 18px; }
.hero-social span { font-size: .82rem; opacity: .85; }

.work-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.2rem; }
.filter-btn { font: inherit; font-size: .9rem; font-weight: 600; padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--text); cursor: pointer; transition: border-color .15s ease, transform .15s ease; }
.filter-btn:hover { border-color: var(--blue); transform: translateY(-1px); }
.filter-btn[aria-pressed="true"] { background: var(--grad); color: #fff; border-color: transparent; }
.filter-btn:focus-visible, .contact-card:focus-visible, .faq summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.work-card[hidden] { display: none; }

#skills .chip-list li { font-size: .82rem; }

.faq { display: grid; gap: .7rem; max-width: 52rem; }
.faq details { padding: 1rem 1.3rem; }
.faq summary { margin: 0; font-size: 1.02rem; list-style-position: outside; }
.faq details p { margin: .6rem 0 0; color: var(--muted); }

.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; max-width: 46rem; margin: 1.8rem auto 0; }
.contact-card { display: flex; align-items: center; gap: .8rem; padding: .9rem 1rem; border-radius: var(--radius-sm); border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); color: #fff; font: inherit; text-align: left; text-decoration: none; cursor: pointer; transition: background .15s ease, transform .15s ease; }
.contact-card:hover { background: rgba(255, 255, 255, .16); transform: translateY(-2px); }
.contact-card .i { width: 26px; height: 26px; flex: none; }
.contact-card > span { display: flex; flex-direction: column; min-width: 0; font-size: .85rem; color: rgba(255, 255, 255, .85); overflow-wrap: anywhere; }
.contact-card strong { font-size: 1rem; color: #fff; }
.cta-band .cta-note { margin: 1rem auto 0; font-size: .82rem; color: rgba(255, 255, 255, .7); }
.site-footer nav a { display: inline-flex; align-items: center; gap: .3rem; }
.site-footer nav .i { width: 15px; height: 15px; }
@media (max-width: 720px) { .contact-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .filter-btn, .contact-card { transition: none; } .filter-btn:hover, .contact-card:hover { transform: none; } }

/* ======================================================================
   Polish layer (Nov 12, 2026). Motion uses transform, translate, and opacity only.
   ====================================================================== */

/* Staggered reveal. Uses the `translate` property so it never fights the card tilt transform. */
.reveal { transform: none; translate: 0 22px; opacity: 0; transition: opacity .7s var(--ease), translate .7s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.reveal.is-visible { translate: none; opacity: 1; }

/* Headline: each word rises in on load */
.hero-title .line { display: block; }
.hero-title .word { display: inline-block; animation: ud-rise .7s var(--ease) both; }
.hero-title .line:nth-child(1) .word:nth-child(1) { animation-delay: 0s; }
.hero-title .line:nth-child(1) .word:nth-child(2) { animation-delay: .05s; }
.hero-title .line:nth-child(2) .word:nth-child(1) { animation-delay: .1s; }
.hero-title .line:nth-child(2) .word:nth-child(2) { animation-delay: .15s; }
.hero-title .line:nth-child(3) .word:nth-child(1) { animation-delay: .2s; }
.hero-title .line:nth-child(3) .word:nth-child(2) { animation-delay: .25s; }
@keyframes ud-rise { from { opacity: .01; translate: 0 .5em; filter: blur(6px); } }
.hero .lead, .hero .btn-row, .hero-social, .hero-stats, .hero .eyebrow { animation: ud-fade-up .8s var(--ease) both; }
.hero .lead { animation-delay: .25s; }
.hero .btn-row { animation-delay: .32s; }
.hero-social { animation-delay: .38s; }
.hero-stats { animation-delay: .44s; }
@keyframes ud-fade-up { from { opacity: .01; translate: 0 14px; } }

/* Hero stats as glass tiles */
.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; max-width: 34rem; }
@media (max-width: 480px) { .hero-stats { grid-template-columns: 1fr 1fr; } }
.hero-stats > div { padding: .8rem 1rem; border-radius: 16px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(8px); }

/* Hero logo leans toward the cursor */
.hero-mark { transform: perspective(900px) rotateY(calc(var(--hx, 0) * 14deg)) rotateX(calc(var(--hy, 0) * -14deg)); transition: transform .5s var(--ease); }

/* Header: stronger shadow after scrolling; active link from scroll spy */
.topbar { transition: box-shadow .25s ease, background .25s ease; }
.topbar.is-scrolled { box-shadow: 0 8px 30px rgba(11, 21, 48, .12); }
.nav a { position: relative; }
.nav a.is-active { color: var(--text); background: var(--tint); }
.nav a.is-active::after { content: ""; position: absolute; left: 30%; right: 30%; bottom: 2px; height: 2px; border-radius: 2px; background: var(--grad); }

/* Cards: 3D tilt with a border glow that follows the cursor */
.card.lift { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0)); transition: transform .45s var(--ease), box-shadow .25s ease; }
.card.lift:hover { --lift: -4px; transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift)); }
.card.lift.is-tilting { transition: transform .12s linear, box-shadow .25s ease; }
.card.lift::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .3s ease;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), #7aa7ff, #4f46e5 40%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.card.lift:hover::before { opacity: 1; }

/* Buttons: magnetic pull and a light sweep */
.btn-light, .btn-solid, .dash-btn { position: relative; overflow: hidden; translate: var(--mx-btn, 0) var(--my-btn, 0); transition: translate .2s var(--ease), transform .15s var(--ease), box-shadow .15s ease, background .15s ease; }
.btn-light::after, .btn-solid::after, .dash-btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); translate: -120% 0; pointer-events: none; }
.btn-light:hover::after, .btn-solid:hover::after, .dash-btn:hover::after { translate: 120% 0; transition: translate .7s var(--ease); }

/* Services as a bento grid: wide cards alternate sides */
@media (min-width: 961px) {
  .svc-bento { grid-auto-flow: dense; }
  .svc-bento > :nth-child(1), .svc-bento > :nth-child(4), .svc-bento > :nth-child(6) { grid-column: span 2; }
  .svc-bento > :nth-child(1) .ico, .svc-bento > :nth-child(4) .ico, .svc-bento > :nth-child(6) .ico { width: 52px; height: 52px; }
}
.svc-bento .card > .ico + h3 { font-size: 1.25rem; }

/* "Why it pays off" as a full-width navy band with a glow, for rhythm between light sections */
#why { position: relative; isolation: isolate; color: #fff; margin-top: 4rem; padding-bottom: 4rem;
  border-image: linear-gradient(160deg, #0d2a52, #1b1f5e) fill 0 / / 0 100vw; }
#why::before { content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; left: -200px; top: -120px; border-radius: 50%; background: #0a66c2; filter: blur(90px); opacity: .5; pointer-events: none; }
#why h2 { color: #fff; }
#why .block-head p { color: rgba(255, 255, 255, .78); }
#why .kicker { color: #9cc7ff; }
#why .card { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: #fff; box-shadow: none; }
#why .card h3 { color: #fff; }
#why .card > p { color: rgba(255, 255, 255, .8); }
#why .ico { background: rgba(255, 255, 255, .12); color: #cfe0ff; }
[data-theme="dark"] #why { border-image: linear-gradient(160deg, #0a1426, #15183f) fill 0 / / 0 100vw; }

/* Project cards: screenshot zooms on hover */
.work-card { overflow: hidden; }
.work-card .shot { transition: transform .6s var(--ease), filter .4s ease; transform-origin: center top; }
.work-card:hover .shot { transform: scale(1.04); filter: saturate(1.15); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }

/* Process: numbered steps joined by a line that draws in */
.steps .step-num { position: relative; z-index: 1; box-shadow: 0 6px 16px rgba(79, 70, 229, .3); }
.steps .card::before { content: ""; position: absolute; left: calc(1.5rem + 56px); right: 1.5rem; top: calc(1.5rem + 21px); height: 2px; border-radius: 2px; background: var(--grad); opacity: .35; transform-origin: left; transform: scaleX(var(--draw, 1)); transition: transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 120ms + .2s); }
.steps .card.reveal { --draw: 0; }
.steps .card.reveal.is-visible { --draw: 1; }

/* FAQ: plus marker that turns into an x */
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--tint); color: var(--blue); font-weight: 700; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details[open] p { animation: ud-fade-up .35s var(--ease); }

/* Contact band: slow moving gradient */
.cta-band { background: linear-gradient(120deg, #0d2a52, #1e2a78, #0d2a52); background-size: 200% 200%; animation: ud-pan 14s ease-in-out infinite alternate; }
@keyframes ud-pan { to { background-position: 100% 50%; } }

/* ---------- Site guide (bot) lives in the bottom left ---------- */
.ud-bot { right: auto; left: 1rem; align-items: flex-start; }
.bot-panel { transform-origin: bottom left; }
.bot-chip.primary { background: var(--grad); color: #fff; }
.bot-go { font: inherit; font-size: .8rem; font-weight: 600; display: inline-flex; align-items: center; margin: .5rem .35rem 0 0; padding: .35rem .75rem; border-radius: 999px; border: 1px solid var(--blue); background: transparent; color: var(--blue); cursor: pointer; transition: background .15s ease, color .15s ease; }
.bot-go:hover { background: var(--blue); color: #fff; }
.bot-go:disabled { opacity: .5; cursor: default; background: transparent; color: var(--blue); }
.bot-go:focus-visible, .bot-hint button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.bot-go-row { display: flex; flex-wrap: wrap; }
.bot-hint { max-width: 260px; padding: .85rem 1rem; border-radius: 16px 16px 16px 4px; background: var(--card); color: var(--text); border: 1px solid var(--line); box-shadow: var(--shadow-lg); animation: ud-bot-in .35s var(--ease); }
.bot-hint[hidden] { display: none; }
.bot-hint p { margin: 0 0 .6rem; font-size: .9rem; }
.bot-hint-row { display: flex; gap: .5rem; }
.bot-hint button { font: inherit; font-size: .82rem; font-weight: 600; padding: .4rem .8rem; border-radius: 999px; cursor: pointer; border: 1px solid var(--line); background: transparent; color: var(--muted); }
.bot-hint .bot-hint-go { background: var(--grad); color: #fff; border-color: transparent; }

/* Where the guide lands: a ring pulses around the section */
.guide-flash { animation: ud-flash 2.2s var(--ease); border-radius: var(--radius); }
@keyframes ud-flash { 0% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0); } 15% { box-shadow: 0 0 0 4px rgba(79, 70, 229, .45); } 100% { box-shadow: 0 0 0 18px rgba(79, 70, 229, 0); } }

@media (prefers-reduced-motion: reduce) {
  .reveal { translate: none; opacity: 1; transition: none; }
  .hero-title .word, .hero .lead, .hero .btn-row, .hero-social, .hero-stats, .hero .eyebrow, .faq details[open] p, .bot-hint, .cta-band, .guide-flash { animation: none; }
  .card.lift, .card.lift:hover, .hero-mark { transform: none; }
  .btn-light::after, .btn-solid::after, .dash-btn::after { display: none; }
  .work-card:hover .shot { transform: none; }
  .steps .card::before { transition: none; transform: none; }
  .guide-flash { outline: 3px solid var(--blue); outline-offset: 4px; }
}
.work-head img.app-logo { object-fit: contain; }
