/* Randitech — dark = lamp off, light = lamp on.
   Layout: split hero (headline | lit stage with photo, orbiting tools, floor lamp, walking helper), then full-width sections on a 1200px wrap. */
:root {
  --bg: #0F1222; --surface: #1B1F38; --surface-2: #242948; --fg: #FFFFFF; --muted: #C9CCE0; --line: #2E3458;
  --lime: #C6F432; --on-lime: #0F1222; --accent-text: #C6F432; --glow: rgba(255, 214, 120, 0); --floor: #2E3458;
  --shade: #2A2F52; --bulb: #3A3F63; --wa: #25D366; --danger: #FF6B6B; --ok: #3DDC84; --veil: rgba(15, 18, 34, .2);
  --display: "Sora", "Segoe UI", system-ui, sans-serif; --body: "Manrope", "Segoe UI", system-ui, sans-serif; --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --radius: 20px; color-scheme: dark;
}
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) {
  --bg: #F2F4F9; --surface: #FFFFFF; --surface-2: #E6E9F2; --fg: #0F1222; --muted: #4A5070; --line: #D5D9E6;
  --accent-text: #4F6E00; --glow: rgba(255, 214, 120, .42); --floor: #CBD0DF; --shade: #0F1222; --bulb: #FFE9A8; --danger: #C62828; --ok: #1B7F3B; --veil: rgba(242, 244, 249, .88); color-scheme: light; } }
:root[data-theme="light"] {
  --bg: #F2F4F9; --surface: #FFFFFF; --surface-2: #E6E9F2; --fg: #0F1222; --muted: #4A5070; --line: #D5D9E6;
  --accent-text: #4F6E00; --glow: rgba(255, 214, 120, .42); --floor: #CBD0DF; --shade: #0F1222; --bulb: #FFE9A8; --danger: #C62828; --ok: #1B7F3B; --veil: rgba(242, 244, 249, .88); color-scheme: light; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 16px; line-height: 1.6; transition: background .5s ease, color .5s ease; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.1; letter-spacing: -.02em; text-wrap: balance; margin: 0; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: 1200px; margin: 0 auto; padding-inline: 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--lime); color: var(--on-lime); padding: 8px 14px; border-radius: 8px; z-index: 99; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }

/* ---------- nav ---------- */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; backdrop-filter: blur(12px); background: color-mix(in srgb, var(--bg) 84%, transparent); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--fg); }
.links { display: flex; gap: 28px; font-weight: 600; font-size: 15px; }
.links a { text-decoration: none; color: var(--muted); padding-block: 6px; border-bottom: 2px solid transparent; }
.links a:hover, .links a[aria-current="page"] { color: var(--fg); border-color: var(--lime); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); display: grid; place-items: center; cursor: pointer; }
.menu-btn { display: none; }
@media (max-width: 820px) {
  .menu-btn { display: grid; }
  .links { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 20px 16px; display: none; }
  .links.open { display: flex; }
  .links a { padding-block: 12px; border-bottom: 1px solid var(--line); }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 700 15px var(--body); text-decoration: none; padding: 13px 22px; min-height: 48px; border-radius: 999px; border: 2px solid transparent; cursor: pointer; transition: transform .2s ease, background .3s, border-color .3s; }
.btn:hover { transform: translateY(-2px); }
.btn-lime { background: var(--lime); color: var(--on-lime); }
.btn-ghost { border-color: var(--line); color: var(--fg); background: transparent; }
.btn-ghost:hover { border-color: var(--lime); }

/* ---------- hero (always fits one screen) ---------- */
.hero { overflow-x: clip; position: relative; --stage-h: clamp(380px, calc(100svh - 150px), 560px); }
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: #0F1222 url("../img/hero-poster.webp") center / cover no-repeat; }
.hero-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 70%, var(--bg)), var(--veil); transition: background .5s ease; }
.hero .wrap { position: relative; z-index: 1; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; padding-block: 20px 0; min-height: calc(100svh - 72px); max-height: 760px; }
.hero .copy { padding-bottom: 28px; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; font: 500 13px var(--mono); letter-spacing: .04em; color: var(--muted); border: 1px solid var(--line); background: var(--surface); padding: 7px 14px; border-radius: 999px; }
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--wa); box-shadow: 0 0 0 4px color-mix(in srgb, var(--wa) 25%, transparent); }
.hero h1 { font-weight: 800; font-size: clamp(34px, min(5.4vw, 8.4svh), 70px); line-height: 1.03; letter-spacing: -.03em; margin: 18px 0 16px; }
.hero h1 .rot { display: block; color: var(--accent-text); min-height: 1.05em; }
.caret { display: inline-block; width: .08em; height: .9em; background: currentColor; margin-left: .06em; vertical-align: -.08em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.lede { font-size: 18px; color: var(--muted); max-width: 33em; margin: 0 0 24px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.trust { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 28px; font-size: 14px; color: var(--muted); }
.trust strong { display: block; font-family: var(--display); font-size: 22px; color: var(--fg); }
.trust-link { text-decoration: none; border-bottom: 2px solid transparent; }
.trust-link:hover { border-color: var(--lime); }

.stage { position: relative; height: var(--stage-h); align-self: end; }
.floor { position: absolute; left: -20px; right: -20px; bottom: 0; height: 2px; background: var(--floor); }
.disc { position: absolute; left: 40%; bottom: calc(var(--stage-h) * .17); width: calc(var(--stage-h) * .68); aspect-ratio: 1; translate: -50% 0; border-radius: 50%; background: var(--lime); }
.me { position: absolute; left: 40%; bottom: 2px; width: calc(var(--stage-h) * .72); height: auto; translate: -50% 0; z-index: 2; filter: drop-shadow(0 24px 30px rgba(0,0,0,.25)); }
.chip { position: absolute; left: 0; top: 0; font: 700 14px var(--body); padding: 9px 15px; border-radius: 999px; background: var(--surface); color: var(--fg); border: 1px solid var(--line); box-shadow: 0 10px 24px rgba(0,0,0,.18); white-space: nowrap; will-change: transform; }
.chip.hot { background: var(--fg); color: var(--bg); border-color: transparent; }
.lamp { position: absolute; right: 0; bottom: 2px; width: 140px; height: 260px; padding: 0; border: 0; background: none; cursor: pointer; z-index: 4; }
.lamp svg { overflow: visible; display: block; }
.lamp .cone { fill: var(--glow); transition: fill .4s ease; }
.lamp .bulb { fill: var(--bulb); transition: fill .3s; }
.lamp .shade { fill: var(--shade); transition: fill .4s; }
.lamp .pole, .lamp .chain { stroke: var(--muted); }
.lamp .base { fill: var(--muted); }
.lamp .bead { fill: var(--lime); stroke: var(--on-lime); stroke-width: 1.5; }
.lamp .chain-g { transition: transform .18s ease; }
.lamp.tug .chain-g { transform: translateY(12px); }
.lamp-tip { position: absolute; right: 22px; bottom: 278px; z-index: 4; font: 700 14px var(--body); color: var(--on-lime); background: var(--lime); padding: 8px 14px; border-radius: 14px; white-space: nowrap; pointer-events: none; box-shadow: 0 8px 20px rgba(0,0,0,.18); animation: bob 2.4s ease-in-out infinite; }
.lamp-tip::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 14px; height: 14px; background: var(--lime); translate: -50% 0; rotate: 45deg; border-radius: 2px; }
@keyframes bob { 50% { transform: translateY(-5px); } }
.stage.ran .lamp-tip { display: none; }
.walker { position: absolute; bottom: 2px; left: 0; width: 65px; height: 120px; pointer-events: none; visibility: hidden; z-index: 5; }
.walker svg { width: 100%; height: 100%; overflow: visible; }
.walker .limb { transform-box: view-box; }
.walker .legF, .walker .legB { transform-origin: 35px 80px; }
.walker .armF { transform-origin: 35px 47px; transition: rotate .3s ease, translate .2s ease; } .walker .armB { transform-origin: 35px 47px; }
.walker.walking .legF { animation: swing .5s ease-in-out infinite; } .walker.walking .legB { animation: swing .5s ease-in-out infinite reverse; }
.walker.walking .armF { animation: swing2 .5s ease-in-out infinite reverse; } .walker.walking .armB { animation: swing2 .5s ease-in-out infinite; }
.walker.walking .bodyg { animation: bob2 .25s ease-in-out infinite alternate; }
.walker.reach .armF { rotate: 162deg; } .walker.pull .armF { rotate: 150deg; translate: 0 10px; }
@keyframes swing { 0%, 100% { rotate: 24deg; } 50% { rotate: -24deg; } }
@keyframes swing2 { 0%, 100% { rotate: 20deg; } 50% { rotate: -20deg; } }
@keyframes bob2 { to { translate: 0 -2px; } }
@media (max-width: 900px) {
  .hero { --stage-h: 420px; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); min-height: 0; max-height: none; padding-block: 32px 0; gap: 12px; }
  .hero .copy { padding-bottom: 8px; order: 2; }
  .hero .stage { order: 1; }   /* phones & tablets: photo first, then the headline */
  .hero h1 { font-size: clamp(34px, 9vw, 56px); }
  .disc, .me { left: 42%; }
}
@media (max-width: 480px) { .hero { --stage-h: 380px; } .disc, .me { left: 36%; } .lamp { right: -8px; } }

/* ---------- sections ---------- */
.section { padding-block: 80px; }
.section.alt { background: var(--surface); border-block: 1px solid var(--line); }
.kicker { font: 500 13px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
.section h2 { font-size: clamp(30px, 4vw, 46px); margin: 10px 0 14px; max-width: 18em; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 36px; }
.section-head p { margin: 0; color: var(--muted); max-width: 34em; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.svc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 10px; align-content: start; transition: transform .25s ease, border-color .25s; min-width: 0; }
.section.alt .svc { background: var(--bg); }
.svc:hover { transform: translateY(-4px); border-color: var(--lime); }
.svc .ic { width: 46px; height: 46px; border-radius: 13px; background: var(--lime); color: var(--on-lime); display: grid; place-items: center; }
.svc h3 { font-size: 20px; margin-top: 4px; }
.svc p { margin: 0; color: var(--muted); font-size: 15px; }
.svc .tools { font: 500 12px var(--mono); color: var(--muted); }

/* work cards */
.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.work-card { display: grid; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .25s ease, border-color .25s; min-width: 0; }
.work-card:hover { transform: translateY(-4px); border-color: var(--lime); }
.work-card .thumb { aspect-ratio: 16 / 10; background: var(--surface-2); overflow: hidden; max-width: 100%; }
.work-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.work-card:hover .thumb img { transform: scale(1.04); }
.work-card .body { padding: 18px 20px 22px; display: grid; gap: 6px; }
.work-card .cat { font: 500 12px var(--mono); color: var(--accent-text); text-transform: uppercase; letter-spacing: .06em; }
.work-card h3 { font-size: 20px; }
.work-card p { margin: 0; color: var(--muted); font-size: 15px; }
.empty { border: 2px dashed var(--line); border-radius: var(--radius); padding: 40px 24px; text-align: center; color: var(--muted); }

/* process */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; counter-reset: step; }
.step { border-top: 2px solid var(--line); padding-top: 18px; }
.step::before { counter-increment: step; content: "0" counter(step); font: 500 13px var(--mono); color: var(--accent-text); }
.step h3 { font-size: 22px; margin: 8px 0 6px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* quotes */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.quote { margin: 0; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; gap: 16px; align-content: space-between; }
.quote blockquote { margin: 0; font-size: 17px; }
.quote figcaption { font: 500 13px var(--mono); color: var(--muted); }
.quote .stars { color: var(--accent-text); letter-spacing: 2px; }

/* CTA band */
.cta-band { background: var(--lime); color: var(--on-lime); border-radius: 28px; padding: 48px clamp(24px, 5vw, 64px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { color: var(--on-lime); margin: 0; font-size: clamp(28px, 3.6vw, 42px); max-width: 16em; }
.cta-band .btn { background: var(--on-lime); color: #FFFFFF; }

/* page hero (inner pages) */
.page-hero { padding-block: 64px 24px; }
.page-hero h1 { font-size: clamp(38px, 5.5vw, 64px); font-weight: 800; letter-spacing: -.03em; margin: 12px 0 14px; }
.page-hero p { color: var(--muted); font-size: 19px; max-width: 36em; margin: 0; }

/* filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter { font: 700 14px var(--body); padding: 10px 16px; min-height: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); cursor: pointer; }
.filter[aria-pressed="true"] { background: var(--lime); color: var(--on-lime); border-color: transparent; }

/* about */
.about-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.about-photo { position: relative; aspect-ratio: 1; max-width: 460px; width: 100%; }
.about-photo .disc { width: 86%; height: auto; aspect-ratio: 1; left: 50%; bottom: 10%; }
.about-photo .me { width: 100%; left: 50%; bottom: 0; }
.prose p { color: var(--muted); font-size: 17px; margin: 0 0 16px; max-width: 38em; }
.prose strong { color: var(--fg); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-top: 24px; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.fact strong { display: block; font-family: var(--display); font-size: 22px; }
.fact span { color: var(--muted); font-size: 14px; }
a.fact { text-decoration: none; transition: border-color .2s; } a.fact:hover { border-color: var(--lime); }
.profiles-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid var(--line); background: var(--surface); border-radius: 28px; padding: 32px clamp(24px, 4vw, 48px); margin-bottom: 20px; }
.profiles-band h2 { font-size: clamp(24px, 3vw, 32px); margin: 0 0 6px; }
.profiles-band p { margin: 0; }
.tool-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tool-cloud span { font: 600 14px var(--body); padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
@media (max-width: 860px) { .about-grid { grid-template-columns: minmax(0, 1fr); } }

/* project detail */
.project-cover { border-radius: 24px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.project-cover img { width: 100%; }
.project-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 40px; margin-top: 36px; }
.project-meta { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 16px; align-content: start; }
.project-meta dt { font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.project-meta dd { margin: 4px 0 0; font-weight: 600; }
.videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px; margin-top: 32px; }
.videos.one { grid-template-columns: minmax(0, 1fr); max-width: 980px; }
.videos video { width: 100%; border-radius: 16px; border: 1px solid var(--line); background: #000; display: block; max-height: 80vh; }
.video-embed { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.work-card .thumb { position: relative; }
.work-card .thumb .preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s ease; }
.work-card .thumb .preview.on { opacity: 1; }
.play-badge { position: absolute; z-index: 2; right: 12px; bottom: 12px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: var(--on-lime); font-size: 15px; padding-left: 3px; box-shadow: 0 6px 18px rgba(0,0,0,.3); transition: transform .25s ease, opacity .25s ease; }
.work-card:hover .play-badge { transform: scale(1.12); }
.work-card.previewing .play-badge { opacity: 0; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 32px; }
.gallery img { border-radius: 16px; border: 1px solid var(--line); width: 100%; }
@media (max-width: 860px) { .project-layout { grid-template-columns: minmax(0, 1fr); } }

/* forms */
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 700; font-size: 14px; }
.field input, .field select, .field textarea { font: 500 16px var(--body); color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 13px 14px; width: 100%; min-height: 48px; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 3px color-mix(in srgb, var(--lime) 30%, transparent); }
.field .hint { font-size: 13px; color: var(--muted); }
.hp { position: absolute; left: -9999px; }
.alert { border-radius: 14px; padding: 14px 16px; font-weight: 600; border: 1px solid; }
.alert.ok { border-color: var(--ok); color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); }
.alert.err { border-color: var(--danger); color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, transparent); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 18px; }
.contact-line { display: flex; gap: 14px; align-items: center; text-decoration: none; }
.contact-line .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--lime); color: var(--on-lime); display: grid; place-items: center; flex: none; }
.contact-line small { display: block; color: var(--muted); font-size: 13px; }
.contact-line strong { word-break: break-word; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }

/* footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr)); gap: 32px; padding-block: 48px 24px; }
.footer-grid h4 { font-size: 15px; margin-bottom: 12px; }
.footer-grid a:not(.brand) { display: block; color: var(--muted); text-decoration: none; padding-block: 4px; word-break: break-word; }
.footer-grid a:not(.brand):hover { color: var(--fg); }
.footer-brand p { color: var(--muted); max-width: 30em; }
.footer-base { border-top: 1px solid var(--line); padding-block: 20px calc(100px + env(safe-area-inset-bottom, 0px)); color: var(--muted); font-size: 14px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

/* whatsapp */
.wa { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 50; display: flex; align-items: center; gap: 10px; text-decoration: none; }
.wa-bubble { width: 60px; height: 60px; border-radius: 50%; background: var(--wa); color: #FFFFFF; display: grid; place-items: center; box-shadow: 0 12px 28px rgba(37, 211, 102, .4); position: relative; }
.wa-bubble::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: ring 2.2s ease-out infinite; }
@keyframes ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }
.wa-label { background: var(--surface); color: var(--fg); border: 1px solid var(--line); font: 700 14px var(--body); padding: 10px 14px; border-radius: 12px; opacity: 0; translate: 8px 0; transition: .25s ease; box-shadow: 0 10px 24px rgba(0,0,0,.15); }
.wa:hover .wa-label, .wa:focus-visible .wa-label { opacity: 1; translate: 0 0; }

/* logo animation on load */
.brand .mark-dot { animation: pulse 2.8s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes pulse { 50% { transform: scale(1.25); } }

/* ---------- compact header on phones ---------- */
@media (max-width: 820px) {
  .nav .wrap { gap: 10px; }
  .nav-right { gap: 8px; }
  .nav .nav-cta { min-height: 38px; padding: 8px 15px; font-size: 14px; white-space: nowrap; gap: 6px; }
  .nav .icon-btn { width: 40px; height: 40px; }
}
@media (max-width: 380px) { .brand span { font-size: 18px; } .nav .nav-cta { padding: 7px 12px; } }

/* ---------- scroll animations (only when JS adds .anim and motion is allowed) ---------- */
body { overflow-x: clip; }
.section, .page-hero { overflow-x: clip; }
.anim [data-rv] { transition: opacity .7s ease, transform .8s cubic-bezier(.2, .9, .25, 1.15); transition-delay: var(--d, 0ms); }
.anim [data-rv]:not(.in) { opacity: 0; }
.anim [data-rv="up"]:not(.in) { transform: translateY(36px); }
.anim [data-rv="pop"]:not(.in) { transform: translateY(40px) scale(.86) rotate(-3deg); }
.anim [data-rv="slide"]:not(.in) { transform: translateX(-60px) rotate(-2deg); }
.anim [data-rv="swing"] { transform-origin: 50% 0; }
.anim [data-rv="swing"]:not(.in) { transform: perspective(900px) rotateX(-70deg); }
.anim [data-rv="zoom"]:not(.in) { transform: scale(.9); }
.anim .svc.in .ic { animation: icon-pop .7s calc(var(--d, 0ms) + .25s) both; }
@keyframes icon-pop { 0% { transform: scale(0) rotate(-40deg); } 70% { transform: scale(1.18) rotate(8deg); } 100% { transform: scale(1) rotate(0); } }

/* ---------- portfolio cards: fall from the sky, one gets dragged in by the dog ---------- */
.work-grid { position: relative; }
.anim .work-grid .work-card { opacity: 0; }
.anim .work-grid .work-card.landed, .anim .work-grid .work-card.dragged { opacity: 1; }
.anim .work-card.drop { animation: card-fall 1.05s var(--d, 0ms) both; }
.anim .work-card.drop.small { animation-name: card-fall-small; animation-duration: .7s; }
@keyframes card-fall {
  0%   { opacity: 0; transform: translateY(-110vh) rotate(var(--r, 6deg)); animation-timing-function: cubic-bezier(.5, 0, .9, .6); }
  8%   { opacity: 1; }
  58%  { transform: translateY(0) rotate(0) scale(1.02, .95); animation-timing-function: cubic-bezier(.2, .7, .4, 1); }
  72%  { opacity: 1; transform: translateY(-34px) rotate(calc(var(--r, 6deg) * -.25)); animation-timing-function: cubic-bezier(.6, 0, .9, .5); }
  84%  { transform: translateY(0) scale(1.01, .98); }
  92%  { transform: translateY(-8px); }
  100% { opacity: 1; transform: none; }
}
@keyframes card-fall-small {
  0%   { opacity: 0; transform: translateY(-80px) rotate(var(--r, 4deg)); }
  60%  { opacity: 1; transform: translateY(0) rotate(0) scale(1.01, .97); }
  80%  { transform: translateY(-10px); }
  100% { opacity: 1; transform: none; }
}
.work-card.landed.thud { animation: thud .35s ease; }
@keyframes thud { 50% { transform: translateY(3px) scale(1.01, .98); } }

/* the animals (real dog and cat, cut out of green-screen video) */
.critter { position: absolute; z-index: 6; width: 230px; pointer-events: none; will-change: transform; }
.critter.cat { width: 205px; }
.critter img { width: 100%; height: auto; display: block; position: relative; z-index: 1; transform-origin: 50% 100%; transition: transform .2s ease; }
.critter .talk { position: absolute; inset: 0; opacity: 0; }
.critter.talking .walk { opacity: 0; }
.critter.talking .talk { opacity: 1; }
.critter.pulling img { transform: rotate(-2deg); }
.critter.cat.pulling img { transform: rotate(2deg); }
.critter.turned img { transform: scaleX(-1); }
.critter .rope { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; z-index: 0; transition: opacity .25s ease; }
.critter .rope path { fill: none; stroke: #7A5A33; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-width: 3.5px; }
.critter.release .rope { opacity: 0; }
.say { position: absolute; z-index: 2; top: -30px; right: -6px; background: var(--lime); color: var(--on-lime); font: 800 16px var(--display); padding: 6px 13px; border-radius: 14px 14px 14px 4px; box-shadow: 0 6px 16px rgba(0,0,0,.25); transform: scale(0) rotate(-10deg); transform-origin: 10% 100%; transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); white-space: nowrap; }
.critter.cat .say { right: auto; left: -6px; border-radius: 14px 14px 4px 14px; transform-origin: 90% 100%; background: #FFFFFF; color: #0F1222; }
.critter.happy .say { transform: scale(1) rotate(-4deg); }
.critter.cat.happy .say { transform: scale(1) rotate(4deg); }

/* the birds */
.carrier { position: absolute; z-index: 7; height: 0; pointer-events: none; }
.carrier .bird { position: absolute; top: -120px; width: 104px; transition: transform 1.2s cubic-bezier(.5, 0, .8, .4), opacity 1.2s ease; }
.carrier .bird img { width: 100%; height: auto; display: block; }
.carrier .b1 { left: -30px; }
.carrier .b2 { right: -30px; }
.carrier .b2 img { transform: scaleX(-1); }
.carrier .string { position: absolute; top: -30px; width: 2px; height: 32px; background: #8A6A45; transition: opacity .25s ease; }
.carrier .s1 { left: 22px; } .carrier .s2 { right: 22px; }
.carrier.release .string { opacity: 0; }
.carrier.away .b1 { transform: translate(-160px, -520px) rotate(-12deg); opacity: 0; }
.carrier.away .b2 { transform: translate(160px, -520px) rotate(12deg); opacity: 0; }
@media (max-width: 640px) { .critter { width: 160px; } .critter.cat { width: 145px; } .say { font-size: 14px; top: -26px; } .carrier .bird { width: 80px; top: -94px; } .carrier .b1 { left: -20px; } .carrier .b2 { right: -20px; } }

/* ---------- sound toggle ---------- */
.sound-btn .snd-off { display: none; }
.sound-btn[aria-pressed="false"] .snd-on { display: none; }
.sound-btn[aria-pressed="false"] .snd-off { display: block; }
.sound-btn[aria-pressed="false"] { color: var(--muted); }
/* phones: the sound switch moves into the ☰ menu so the header fits */
.nav-sound { display: none; }
@media (max-width: 820px) {
  .nav-sound { display: block; text-align: left; font: 600 15px var(--body); color: var(--muted); background: none; border: 0; border-bottom: 1px solid var(--line); padding: 12px 0; cursor: pointer; }
  .nav-sound b { color: var(--accent-text); }
  .nav-sound[aria-pressed="false"] b { color: var(--muted); }
}
@media (max-width: 480px) {
  .nav .wrap { gap: 8px; padding-inline: 16px; }
  .nav .sound-btn { display: none; }
  .nav .brand { gap: 8px; font-size: 18px; }
  .nav .brand svg { width: 32px; height: 32px; }
  .nav-right { gap: 6px; }
}
@media (max-width: 350px) { .nav .brand span { display: none; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- live Lagos status ---------- */
.live-status.away i { background: #F5A524; box-shadow: 0 0 0 4px color-mix(in srgb, #F5A524 25%, transparent); }
.live-status.online i { animation: pulse-dot 2s ease-in-out infinite; }
@keyframes pulse-dot { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--wa) 10%, transparent); } }
.live-card { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); font-weight: 600; font-size: 15px; line-height: 1.45; margin-bottom: 18px; }
.live-card i { flex: none; width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; background: var(--wa); box-shadow: 0 0 0 4px color-mix(in srgb, var(--wa) 25%, transparent); }

/* ---------- footer easter-egg hint ---------- */
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; }
.egg-hint { opacity: .55; font-size: 13px; }
.egg-hint kbd { font: 600 12px var(--mono); padding: 1px 6px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); }

/* ---------- price calculator ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.calc-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 10px; }
.calc-item { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; align-items: center; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1.5px solid var(--line); cursor: pointer; transition: border-color .2s, transform .2s, background .2s; }
.calc-item:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--lime) 60%, var(--line)); }
.calc-item input { position: absolute; opacity: 0; pointer-events: none; }
.calc-item .tick { grid-row: 1 / 3; width: 24px; height: 24px; border-radius: 8px; border: 2px solid var(--line); display: grid; place-items: center; transition: .2s; }
.calc-item .nm { font-weight: 700; font-size: 15px; line-height: 1.3; }
.calc-item .pr { font: 500 13px var(--mono); color: var(--muted); }
.calc-item:has(input:checked) { border-color: var(--lime); background: color-mix(in srgb, var(--lime) 10%, var(--surface)); }
.calc-item input:checked + .tick { background: var(--lime); border-color: var(--lime); }
.calc-item input:checked + .tick::after { content: ""; width: 10px; height: 6px; border: 3px solid var(--on-lime); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.calc-item input:focus-visible + .tick { outline: 3px solid var(--lime); outline-offset: 2px; }
.calc-total { position: sticky; top: 90px; display: grid; gap: 12px; padding: 24px; border-radius: 22px; background: var(--on-lime); color: #FFFFFF; border: 1px solid var(--line); box-shadow: 0 20px 40px rgba(0,0,0,.18); }
.calc-total .kicker { color: var(--lime); }
.calc-big { font: 800 clamp(30px, 4vw, 42px) / 1.1 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.calc-big.empty { font-size: 24px; opacity: .7; }
.calc-big.bump { animation: bump .35s ease; }
@keyframes bump { 40% { transform: scale(1.06); color: var(--lime); } }
.calc-days { color: #C9CCE0; font-weight: 600; }
.calc-rush { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.06); }
.calc-rush input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--lime); }
.calc-rush small { display: block; color: #C9CCE0; }
.calc-send[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.calc-total small.muted { color: #9DA2C0; }
.calc-mini { display: none; }
@media (max-width: 860px) {
  .calc { grid-template-columns: minmax(0, 1fr); }
  .calc-total { position: static; }
  .calc-mini { position: fixed; left: 12px; right: 84px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 55; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-radius: 16px; background: var(--on-lime); color: #FFFFFF; text-decoration: none; font-weight: 700; box-shadow: 0 12px 28px rgba(0,0,0,.3); transition: transform .3s ease, opacity .3s ease; }
  .calc-mini strong { font: 800 18px var(--display); color: var(--lime); }
  .calc-mini[hidden] { display: flex; transform: translateY(140%); opacity: 0; pointer-events: none; }
}

/* ---------- AI chat ---------- */
.ai-chat { position: fixed; right: 20px; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); z-index: 60; }
.ai-fab { position: relative; width: 60px; height: 60px; border-radius: 50%; padding: 0; border: 3px solid var(--lime); background: var(--lime); cursor: pointer; box-shadow: 0 12px 28px rgba(0,0,0,.28); transition: transform .2s ease; }
.ai-fab:hover { transform: scale(1.06) rotate(-4deg); }
.ai-fab img { width: 100%; height: 100%; border-radius: 50%; display: block; }
.ai-fab-label { position: absolute; left: 50%; bottom: -8px; translate: -50% 0; background: var(--on-lime); color: var(--lime); font: 800 11px var(--display); padding: 2px 8px; border-radius: 999px; white-space: nowrap; letter-spacing: .02em; }
.ai-hello { position: absolute; right: 70px; bottom: 12px; width: max-content; max-width: 220px; background: var(--surface); color: var(--fg); border: 1px solid var(--line); padding: 10px 14px; border-radius: 16px 16px 4px 16px; font-weight: 700; font-size: 14px; box-shadow: 0 10px 24px rgba(0,0,0,.18); cursor: pointer; animation: hello-in .4s cubic-bezier(.3, 1.5, .5, 1); }
@keyframes hello-in { from { opacity: 0; transform: translateY(8px) scale(.9); } }
.ai-panel { position: absolute; right: 0; bottom: 74px; width: min(380px, calc(100vw - 32px)); height: min(580px, calc(100vh - 200px)); display: flex; flex-direction: column; background: var(--surface); color: var(--fg); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 24px 60px rgba(0,0,0,.35); overflow: hidden; transform-origin: 100% 100%; animation: panel-in .28s cubic-bezier(.3, 1.3, .5, 1); }
.ai-panel[hidden] { display: none; }
@keyframes panel-in { from { opacity: 0; transform: scale(.85) translateY(10px); } }
.ai-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--on-lime); color: #FFFFFF; }
.ai-head img { border-radius: 50%; border: 2px solid var(--lime); background: var(--lime); }
.ai-head div { flex: 1; display: grid; line-height: 1.3; }
.ai-head small { display: flex; align-items: center; gap: 6px; color: #C9CCE0; font-size: 12px; }
.ai-head small i { width: 7px; height: 7px; border-radius: 50%; background: var(--wa); }
.ai-new { margin-left: auto; }
.ai-head .ai-new + .ai-x { margin-left: 0; }
.ai-x { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); color: #FFFFFF; cursor: pointer; font-size: 15px; }
.ai-log { flex: 1; min-height: 0; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.ai-msg { max-width: 86%; padding: 10px 14px; border-radius: 18px; font-size: 15px; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; animation: msg-in .25s ease; }
@keyframes msg-in { from { opacity: 0; transform: translateY(6px); } }
.ai-msg.bot { align-self: flex-start; background: var(--surface-2); border-bottom-left-radius: 6px; }
.ai-msg.mine { align-self: flex-end; background: var(--lime); color: var(--on-lime); border-bottom-right-radius: 6px; font-weight: 600; }
.ai-msg .wa-cta { display: inline-block; margin-top: 8px; font-weight: 700; color: var(--accent-text); }
.ai-typing { align-self: flex-start; display: flex; gap: 5px; padding: 14px 16px; background: var(--surface-2); border-radius: 18px; border-bottom-left-radius: 6px; }
.ai-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: typing 1s infinite ease-in-out; }
.ai-typing span:nth-child(2) { animation-delay: .15s; } .ai-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }
.ai-chips { display: flex; gap: 8px; overflow-x: auto; padding: 0 16px 10px; scrollbar-width: none; }
.ai-chips[hidden] { display: none; }
.ai-chips button { flex: none; border: 1px solid var(--line); background: var(--bg); color: var(--fg); font: 600 13px var(--body); padding: 8px 12px; border-radius: 999px; cursor: pointer; }
.ai-chips button:hover { border-color: var(--lime); }
.ai-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }
.ai-form input { flex: 1; min-width: 0; font: 500 16px var(--body); padding: 12px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); }
.ai-form input:focus { outline: 2px solid var(--lime); outline-offset: 1px; }
.ai-form button { width: 46px; height: 46px; flex: none; border-radius: 50%; border: 0; background: var(--lime); color: var(--on-lime); display: grid; place-items: center; cursor: pointer; }
.ai-form button:disabled { opacity: .5; }
.ai-wa { display: block; text-align: center; font-size: 13px; padding: 0 12px 12px; color: var(--muted); text-decoration: none; }
.ai-wa strong { color: var(--accent-text); }
@media (max-width: 560px) {
  .ai-chat { right: 14px; bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
  .ai-fab { width: 54px; height: 54px; }
  .ai-panel { position: fixed; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); width: auto; height: min(78vh, 640px); }
  .ai-hello { right: 64px; }
}

/* ---------- easter-egg runners, confetti, thank-you dog ---------- */
.runner { position: fixed; left: 0; bottom: 6px; z-index: 70; width: 220px; pointer-events: none; }
.runner img { width: 100%; display: block; }
.runner .talk { position: absolute; inset: 0; opacity: 0; }
.runner.talking .walk { opacity: 0; } .runner.talking .talk { opacity: 1; }
.runner .say { top: -26px; }
.runner.talking .say { transform: scale(1) rotate(-4deg); }
.runner.cat .say { right: auto; left: -6px; background: #FFFFFF; color: #0F1222; border-radius: 14px 14px 4px 14px; }
.confetti { position: fixed; inset: 0; z-index: 80; pointer-events: none; }
.thanks-dog { position: fixed; left: 16px; bottom: -260px; z-index: 75; width: 230px; pointer-events: none; transition: bottom .6s cubic-bezier(.3, 1.4, .5, 1); }
.thanks-dog.up { bottom: 0; }
.thanks-dog img { width: 100%; display: block; }
.thanks-dog .say { top: -40px; right: auto; left: 40px; transform: scale(1) rotate(-4deg); }
@media (max-width: 640px) { .runner { width: 160px; } .thanks-dog { width: 170px; } }

/* ---------- client area ---------- */
body.portal .ai-chat, body.portal .wa, body.portal .egg-hint { display: none; }
body.portal .footer-base { padding-bottom: 24px; }
.nav-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--danger); color: #FFFFFF; font: 700 11px var(--body); vertical-align: 2px; }
.auth-wrap { min-height: calc(100svh - 160px); display: grid; place-items: center; padding: 40px 16px 64px; }
.auth-card { width: 100%; max-width: 480px; background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: clamp(22px, 5vw, 36px); display: grid; gap: 16px; box-shadow: 0 24px 60px rgba(0,0,0,.12); }
.auth-card h1 { font-size: clamp(28px, 5vw, 36px); margin: 4px 0 0; }
.auth-card .muted { margin: 0; }
.auth-alt { margin: 0; text-align: center; color: var(--muted); font-size: 15px; }
.auth-alt a { color: var(--accent-text); font-weight: 700; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.portal-top { padding-block: 32px 0; }
.portal-hello { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.portal-hello h1 { font-size: clamp(28px, 4.4vw, 44px); margin-top: 6px; }
.portal-hello form { margin: 0; }
.btn-sm { min-height: 38px; padding: 8px 15px; font-size: 14px; }
.portal-tabs { display: flex; gap: 6px; margin-top: 22px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.portal-tabs a { flex: none; padding: 12px 16px; font-weight: 700; color: var(--muted); text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.portal-tabs a:hover { color: var(--fg); }
.portal-tabs a[aria-current="page"] { color: var(--fg); border-color: var(--lime); }
.verify-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 16px 0 0; padding: 12px 16px; border-radius: 14px; background: color-mix(in srgb, #F5A524 14%, var(--surface)); border: 1px solid color-mix(in srgb, #F5A524 50%, var(--line)); font-weight: 600; font-size: 15px; }
.portal-body { padding-top: 28px; }
.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat-row.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pstat { display: grid; gap: 4px; align-content: start; padding: 18px 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: inherit; }
.pstat span { font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.pstat strong { font: 800 30px var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pstat small { color: var(--muted); font-size: 13px; }
.pstat a { color: var(--accent-text); font-weight: 700; font-size: 14px; }
.pstat.due { border-color: color-mix(in srgb, #F5A524 60%, var(--line)); }
.pstat.link:hover { border-color: var(--lime); }
.portal-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.side-col { display: grid; gap: 18px; }
.panel-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px; min-width: 0; }
.pc-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.pc-head h2 { font-size: 19px; margin: 0; }
.pc-head a { color: var(--accent-text); font-weight: 700; font-size: 14px; }
.empty.small { padding: 26px 18px; }
.proj-row { display: grid; gap: 10px; padding: 16px; border-radius: 16px; border: 1px solid var(--line); text-decoration: none; color: inherit; background: var(--bg); transition: border-color .2s, transform .2s; }
.proj-row + .proj-row { margin-top: 10px; }
.proj-row:hover { border-color: var(--lime); transform: translateY(-2px); }
.pr-top { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.pr-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); }
.bar { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.bar.big { height: 16px; margin-bottom: 10px; }
.bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--lime), #9BE15D); transition: width 1s ease; }
.status { flex: none; font: 700 12px var(--body); padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.status.s-in-progress { background: color-mix(in srgb, var(--lime) 30%, transparent); color: var(--accent-text); }
.status.s-in-review { background: color-mix(in srgb, #4FB3F0 25%, transparent); color: #2178C9; }
.status.s-completed { background: color-mix(in srgb, var(--ok) 20%, transparent); color: var(--ok); }
.status.s-on-hold, .status.s-cancelled { background: color-mix(in srgb, #F5A524 22%, transparent); color: #B97400; }
.mini-msg { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.mini-msg b { color: var(--fg); }
.mini-msg.from-randi b { color: var(--accent-text); }
.row-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.ios-tip { font-size: 14px; margin: 10px 0 0; }
.news-row { display: grid; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.news-row:last-child { border-bottom: 0; }
.news-read { max-width: 760px; }
.sub-h { font-size: 17px; margin: 24px 0 12px; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--line); display: grid; gap: 16px; }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; left: -25px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px var(--surface); }
.timeline time { font: 500 12px var(--mono); color: var(--muted); }
.timeline p { margin: 4px 0 0; }
.money-list { margin: 0 0 14px; display: grid; gap: 8px; }
.money-list div { display: flex; justify-content: space-between; gap: 10px; }
.money-list dt { color: var(--muted); }
.money-list dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.money-list .strong dd { font-size: 20px; }
.pill { flex: none; font: 700 12px var(--body); padding: 4px 10px; border-radius: 999px; }
.pill.paid { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }
.pill.pending { background: color-mix(in srgb, #F5A524 22%, transparent); color: #B97400; }
.pill.rejected { background: color-mix(in srgb, var(--danger) 15%, transparent); color: var(--danger); }
.pay-mini, .pay-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; }
.pay-mini li, .pay-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.pay-list li div { display: grid; }
.pay-list li:last-child, .pay-mini li:last-child { border-bottom: 0; }
.pay-steps { margin: 0 0 16px; padding-left: 20px; color: var(--muted); }
.pay-method { display: grid; gap: 8px; padding: 14px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); margin-bottom: 10px; }
.pay-method small { display: block; }
.copy-row { display: flex; gap: 8px; align-items: center; }
.copy-row code { flex: 1; min-width: 0; overflow-wrap: anywhere; font: 600 14px var(--mono); padding: 10px 12px; border-radius: 10px; background: var(--surface-2); }
.pay-qr { margin: 10px 0; display: grid; justify-items: start; gap: 6px; }
.pay-qr img { width: 180px; height: auto; border-radius: 14px; border: 1px solid var(--line); background: #FFFFFF; padding: 8px; }
.warn { font-weight: 600; font-size: 14px; color: #B97400; }
/* chat thread */
.thread-card { max-width: 860px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; height: min(72svh, 760px); min-height: 420px; }
.thread-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.thread-head img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: top; background: var(--lime); }
.thread-head div { display: grid; }
.thread-head small { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.thread-head small i { width: 8px; height: 8px; border-radius: 50%; background: var(--wa); flex: none; }
.thread-head small.away i { background: #F5A524; }
.thread { flex: 1; min-height: 0; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; background: var(--bg); }
.thread-empty { margin: auto; text-align: center; color: var(--muted); max-width: 26em; }
.bub { max-width: min(78%, 560px); padding: 10px 14px 6px; border-radius: 18px; display: grid; gap: 4px; animation: msg-in .25s ease; }
.bub.theirs { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.bub.mine { align-self: flex-end; background: var(--lime); color: var(--on-lime); border-bottom-right-radius: 6px; }
.bub-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; }
.bub-text a { color: inherit; font-weight: 700; }
.bub time { font-size: 11px; opacity: .65; justify-self: end; }
.bub .seen { font-size: 11px; font-weight: 700; justify-self: end; opacity: .8; }
.bub-img img { max-width: 260px; max-height: 260px; border-radius: 12px; display: block; }
.bub-file { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: rgba(0,0,0,.07); color: inherit; text-decoration: none; font-weight: 700; }
.bub-file span { overflow-wrap: anywhere; } .bub-file small { opacity: .7; font-weight: 500; }
.composer { display: flex; align-items: flex-end; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: var(--surface); }
.composer.busy { opacity: .6; pointer-events: none; }
.composer .attach { width: 46px; height: 46px; flex: none; border-radius: 50%; display: grid; place-items: center; color: var(--muted); cursor: pointer; border: 1px solid var(--line); }
.composer .attach:hover { color: var(--fg); border-color: var(--lime); }
.composer .attach input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.comp-main { flex: 1; min-width: 0; display: grid; gap: 6px; }
.composer textarea { width: 100%; resize: none; font: 500 16px var(--body); line-height: 1.45; padding: 12px 14px; border-radius: 22px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); max-height: 180px; }
.composer textarea:focus { outline: none; border-color: var(--lime); }
.file-chip { display: inline-flex; align-items: center; gap: 6px; justify-self: start; font-size: 13px; font-weight: 700; padding: 6px 10px; border-radius: 999px; background: var(--surface-2); }
.file-chip button { border: 0; background: none; color: var(--muted); cursor: pointer; }
.composer .send { width: 46px; height: 46px; flex: none; border-radius: 50%; border: 0; background: var(--lime); color: var(--on-lime); display: grid; place-items: center; cursor: pointer; }
.comp-err { margin: 0 12px 8px; }
@media (max-width: 900px) { .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stat-row.three { grid-template-columns: minmax(0, 1fr); } .portal-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .thread-card { height: calc(100svh - 230px); border-radius: 18px; } .bub { max-width: 88%; } .pstat strong { font-size: 24px; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

/* ---------- "Install the app" popup ---------- */
.install-pop { position: fixed; left: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 75; width: min(360px, calc(100vw - 32px)); padding: 18px 18px 16px; border-radius: 22px; background: #C6F432; color: #0F1222; box-shadow: 0 22px 50px rgba(0,0,0,.35); transform: translateY(calc(100% + 40px)); opacity: 0; transition: transform .45s cubic-bezier(.2, 1.3, .4, 1), opacity .3s ease; }
.install-pop.in { transform: none; opacity: 1; }
.install-pop p { margin: 12px 0 0; font-size: 15px; line-height: 1.5; }
.ip-head { display: flex; align-items: center; gap: 12px; padding-right: 26px; }
.ip-head img { width: 56px; height: 56px; border-radius: 14px; border: 2px solid #0F1222; box-shadow: 0 6px 16px rgba(15,18,34,.25); flex: none; }
.ip-head strong { display: block; font: 800 18px/1.25 var(--display); }
.ip-head small { display: block; font-size: 13px; opacity: .75; margin-top: 2px; }
.ip-x { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(15,18,34,.08); color: #0F1222; font-size: 15px; cursor: pointer; }
.ip-x:hover { background: rgba(15,18,34,.16); }
.ip-steps { margin: 12px 0 0; padding-left: 22px; font-size: 15px; line-height: 1.55; }
.ip-steps li { margin: 3px 0; }
.ip-steps svg { display: inline-block; vertical-align: -3px; }
.ip-btns { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.install-pop .btn-lime { background: #0F1222; color: #FFFFFF; }
.install-pop .btn-lime:hover { transform: translateY(-1px); }
.install-pop :focus-visible { outline-color: #0F1222; }
.ip-later { border: 0; background: none; color: #0F1222; font: 700 14px var(--body); padding: 10px 8px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 560px) {
  .install-pop { left: 8px; right: 8px; width: auto; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); }
  .ip-btns .btn { flex: 1; min-height: 46px; }
}
@media (prefers-reduced-motion: reduce) { .install-pop { transition: opacity .2s ease; transform: none; } }

/* ---------- password Show/Hide ---------- */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { width: 100%; padding-right: 76px !important; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); min-width: 60px; height: 36px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--surface-2); color: var(--fg); font: 700 13px var(--body); cursor: pointer; }
.pw-eye:hover { background: var(--line); }

/* ---------- full-screen chat (clients + admin) ---------- */
body.chat-page { overflow: hidden; overscroll-behavior: none; }
body.chat-page #main { display: contents; }
.chat-app { position: fixed; left: 0; right: 0; top: 0; height: var(--chat-h, 100dvh); display: flex; flex-direction: column; background: var(--bg); z-index: 20; }
.chat-top { display: flex; align-items: center; gap: 10px; padding: calc(8px + env(safe-area-inset-top, 0px)) 12px 8px 6px; background: var(--surface); border-bottom: 1px solid var(--line); flex: none; }
.chat-back { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 50%; color: var(--fg); }
.chat-back:hover { background: var(--surface-2); }
.chat-avatar { width: 42px; height: 42px; flex: none; border-radius: 50%; object-fit: cover; object-position: top; background: var(--lime); }
.chat-initials { display: grid; place-items: center; font: 800 16px var(--display); color: var(--on-lime); }
.chat-who { flex: 1; min-width: 0; display: grid; }
.chat-who strong { font: 700 17px/1.25 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-who small { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-who small i { width: 8px; height: 8px; border-radius: 50%; background: var(--wa); flex: none; }
.chat-who small.away i { background: #F5A524; }
.chat-who .st-text { overflow: hidden; text-overflow: ellipsis; }
.chat-actions { display: flex; gap: 4px; flex: none; }
.chat-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: var(--fg); }
.chat-icon:hover { background: var(--surface-2); }
.chat-app .chat-thread { flex: 1; min-height: 0; padding: 14px max(12px, calc((100% - 820px) / 2)); gap: 6px;
  background-color: var(--bg); background-image: radial-gradient(color-mix(in srgb, var(--fg) 7%, transparent) 1px, transparent 1.2px); background-size: 22px 22px; }
.chat-app .bub { max-width: min(80%, 560px); box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.chat-app .bub + .bub.mine, .chat-app .bub + .bub.theirs { margin-top: 2px; }
.day-sep { align-self: center; margin: 10px 0 6px; padding: 5px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 700; }
.chat-app .composer { flex: none; padding: 8px max(8px, calc((100% - 836px) / 2)) calc(8px + env(safe-area-inset-bottom, 0px)); gap: 6px; }
.chat-app .composer textarea { max-height: 140px; }
.chat-app .comp-err { margin: 0; border-radius: 0; flex: none; }
.chat-app .thread-empty { background: var(--surface); border: 1px solid var(--line); padding: 16px 18px; border-radius: 16px; }
.chat-app .send { transition: transform .15s ease; }
.chat-app .send:active { transform: scale(.92); }
.jump-down { position: absolute; right: 16px; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--fg); display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.2); cursor: pointer; }
.jump-down b { position: absolute; top: -6px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--lime); color: var(--on-lime); font-size: 11px; display: grid; place-items: center; }
@media (max-width: 560px) { .chat-app .bub { max-width: 86%; } .chat-actions .chat-icon { width: 38px; } }
