/* ===== Omneix extras: service icons, dynamic portfolio, search, laptop ===== */

/* Service card icons (replace the 01–09 numbers) */
.icon svg { width: 55%; height: 55%; stroke: #0b0b0c; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Portfolio media and light tiles */
.work-media, .pf-card .work-media {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; z-index: 0;
}
.work-light span, .pf-card.work-light h3 { color: #111; }
.work-light::after, .pf-card.work-light::after { display: none; }
.pf-card.work-light p { color: #333; }
.pf-card.work-light .pf-type { color: #3d6b00; }


/* ===== Static pages: show page content inside <main class="page-main"> ===== */
body.route-open main.page-main { display: block; }
.service[hidden] { display: none; }
.service h3 a { color: inherit; }

/* ===== Footer links (crawlable navigation) ===== */
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.foot-links a { font-size: 12px; color: var(--muted); font-weight: 500; }
.foot-links a:hover { color: #111; }

/* ===== Services search bar (Google style) ===== */
.svc-search {
  position: relative; display: flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 14px; margin-top: 16px;
  background: #fff; border: 1px solid #dfe3e8; border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0,0,0,.04); transition: box-shadow .2s, border-color .2s;
}
.svc-search:hover { box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.svc-search:focus-within { border-color: #8fe020; box-shadow: 0 6px 20px rgba(143,224,32,.25); }
.svc-search .ss-ico { width: 18px; height: 18px; flex-shrink: 0; stroke: #6b7280; fill: none; stroke-width: 2; stroke-linecap: round; }
.svc-search input {
  flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent;
  font: inherit; font-size: 14px; color: #111; -webkit-appearance: none; appearance: none;
}
.svc-search input::-webkit-search-cancel-button { display: none; }
.svc-search input::placeholder { color: #8a929a; }
.ss-clear {
  border: 0; background: #f1f3f5; color: #444; width: 24px; height: 24px; border-radius: 50%;
  cursor: pointer; font-size: 15px; line-height: 1; flex-shrink: 0;
}
.ss-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; list-style: none;
  background: #fff; border: 1px solid #e6e9ee; border-radius: 18px; padding: 6px;
  box-shadow: 0 18px 40px rgba(0,0,0,.14);
}
.ss-list[hidden], .ss-clear[hidden], .ss-empty[hidden] { display: none; }
.ss-list li {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px;
  font-size: 13px; font-weight: 500; cursor: pointer;
}
.ss-list li svg { width: 15px; height: 15px; stroke: #8a929a; fill: none; stroke-width: 2; stroke-linecap: round; flex-shrink: 0; }
.ss-list li.on, .ss-list li:hover { background: #eef7e1; }
.ss-empty { margin-top: 14px; font-size: 13px; color: var(--muted); }
.ss-empty a { color: #111; font-weight: 600; text-decoration: underline; }

/* ===== Hero laptop: "Omneix Studio" live screen ===== */
.hero-visual { perspective: 900px; }
.laptop {
  isolation: isolate; transition: transform .2s ease-out;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  animation: lapfloat 6s ease-in-out infinite;
}
.laptop::after {
  content: ""; position: absolute; left: 10%; right: 10%; bottom: -14px; height: 16px; z-index: -1;
  background: radial-gradient(ellipse at center, rgba(143,224,32,.55), transparent 70%); filter: blur(6px);
}
@keyframes lapfloat { 0%,100% { translate: 0 0; } 50% { translate: 0 -5px; } }

.hero-visual .screen {
  --u: 1; display: block; position: relative; overflow: hidden; padding: 0; gap: 0;
  font-size: 12px; font-weight: 500; text-align: left;
  background: radial-gradient(120% 90% at 15% 0%, #12261c 0%, #0b0b0c 55%, #0a1519 100%);
}
@media (min-width: 720px) { .hero-visual .screen { --u: 1.45; } }
.hero-visual .screen::before { /* webcam */
  content: ""; position: absolute; left: 50%; top: 3px; width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%; background: #1d4d3a; z-index: 5;
}
.hero-visual .screen::after { /* glass glare sweep */
  content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.09) 50%, transparent 60%);
  transform: translateX(-120%); animation: glare 7s ease-in-out 2s infinite;
}
@keyframes glare { 0% { transform: translateX(-120%); } 28%,100% { transform: translateX(120%); } }

.os-bar {
  position: absolute; left: 0; right: 0; top: 0; height: calc(22px * var(--u)); z-index: 3;
  display: flex; align-items: center; gap: 4px; padding: 0 calc(8px * var(--u));
  background: rgba(255,255,255,.04); border-bottom: 1px solid rgba(255,255,255,.07);
}
.os-bar i { width: calc(6px * var(--u)); height: calc(6px * var(--u)); border-radius: 50%; background: #3a3f46; }
.os-bar i:nth-child(1) { background: #ff5f57; } .os-bar i:nth-child(2) { background: #febc2e; } .os-bar i:nth-child(3) { background: #28c840; }
.os-bar b {
  margin: 0 auto; transform: translateX(calc(-9px * var(--u))); font-size: calc(9px * var(--u)); font-weight: 500; letter-spacing: .3px;
  color: #aab2ba; background: rgba(255,255,255,.06); padding: 2px calc(10px * var(--u)); border-radius: 999px;
}
.os-bar em { font-style: normal; font-size: calc(8px * var(--u)); color: #8fe020; font-weight: 600; animation: blink 1.6s steps(2, jump-none) infinite; }
@keyframes blink { 50% { opacity: .25; } }

.stage { position: absolute; left: 0; right: 0; top: calc(22px * var(--u)); bottom: calc(22px * var(--u)); }
.scene { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .45s, visibility .45s; display: flex; align-items: center; justify-content: center; }
.scene.on { opacity: 1; visibility: visible; }

.os-dock {
  position: absolute; left: 0; right: 0; bottom: 0; height: calc(22px * var(--u)); z-index: 3;
  display: flex; align-items: center; justify-content: center; gap: calc(14px * var(--u));
  background: rgba(255,255,255,.04); border-top: 1px solid rgba(255,255,255,.07);
}
.os-dock span { font-size: calc(9px * var(--u)); font-weight: 600; color: #6e767e; position: relative; padding: 2px 0; transition: color .3s; }
.os-dock span.on { color: #fff; }
.os-dock span.on::after {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; border-radius: 2px;
  background: linear-gradient(90deg, #8fe020, #22b8f0); transform-origin: left; animation: dockbar 3.4s linear both;
}
@keyframes dockbar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* boot */
.sc-boot { flex-direction: column; gap: calc(6px * var(--u)); color: #fff; font-weight: 700; font-size: calc(18px * var(--u)); }
.sc-boot svg { width: calc(46px * var(--u)); height: calc(46px * var(--u)); }
.sc-boot .ring { stroke-dasharray: 150; stroke-dashoffset: 150; }
.sc-boot.on .ring { animation: draw 1.1s .1s ease-out forwards; }
.sc-boot.on span { animation: rise .6s .7s both; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ideas: mind map */
.sc-ideas svg { width: 92%; height: 92%; }
.sc-ideas .ln { stroke: #8fe020; stroke-width: 1.4; stroke-dasharray: 120; stroke-dashoffset: 120; opacity: .7; }
.sc-ideas.on .ln { animation: draw .7s var(--d, .3s) ease-out forwards; }
.sc-ideas .nd { transform-box: fill-box; transform-origin: center; opacity: 0; }
.sc-ideas.on .nd { animation: pop .45s var(--d, 0s) cubic-bezier(.2,1.4,.4,1) both; }
.sc-ideas .nd rect { fill: #161a1e; stroke: #2f6d3f; stroke-width: 1; }
.sc-ideas .nd text { fill: #e8edf2; font: 600 9px Poppins, sans-serif; text-anchor: middle; }
.sc-ideas .core circle { fill: #8fe020; }
.sc-ideas .core text { fill: #0b0b0c; font: 700 9px Poppins, sans-serif; text-anchor: middle; }
.sc-ideas.on .core circle.pulse { animation: pulse 1.6s 1s ease-out infinite; }
.sc-ideas .core circle.pulse { fill: none; stroke: #8fe020; stroke-width: 1; opacity: 0; transform-box: fill-box; transform-origin: center; }
@keyframes pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }
@keyframes pulse { 0% { opacity: .7; transform: scale(1); } 100% { opacity: 0; transform: scale(2.2); } }

/* strategy: roadmap */
.sc-str { flex-direction: column; gap: calc(10px * var(--u)); padding: 0 calc(14px * var(--u)); }
.sc-str ol { list-style: none; display: flex; width: 100%; justify-content: space-between; }
.sc-str li { flex: 1; text-align: center; position: relative; color: #8b939b; font-size: calc(8.5px * var(--u)); font-weight: 600; }
.sc-str li::before { /* connector */
  content: ""; position: absolute; top: calc(8px * var(--u)); left: -50%; width: 100%; height: 2px; background: #252a30; z-index: 0;
}
.sc-str li:first-child::before { display: none; }
.sc-str li b {
  position: relative; z-index: 1; display: flex; margin: 0 auto calc(5px * var(--u)); width: calc(17px * var(--u)); height: calc(17px * var(--u));
  border-radius: 50%; align-items: center; justify-content: center; background: #1b1f24; border: 1px solid #333a42; color: transparent; font-size: calc(9px * var(--u));
}
.sc-str.on li b { animation: tick .35s calc(.4s + var(--i) * .65s) both; }
.sc-str.on li { animation: lit .3s calc(.4s + var(--i) * .65s) both; }
.sc-str.on li::before { animation: wire .4s calc(.1s + var(--i) * .65s) both; }
@keyframes tick { to { background: #8fe020; border-color: #8fe020; color: #0b0b0c; } }
@keyframes lit { to { color: #fff; } }
@keyframes wire { to { background: #8fe020; } }
.sc-str .bar { width: 100%; height: calc(5px * var(--u)); border-radius: 99px; background: #1b1f24; overflow: hidden; }
.sc-str .bar u { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, #8fe020, #22b8f0); }
.sc-str.on .bar u { animation: dockbar 2.9s .3s ease-in-out both; }
.sc-str p { font-size: calc(8.5px * var(--u)); color: #9aa3ab; }
.sc-str p em { font-style: normal; color: #8fe020; }

/* impact: growth */
.sc-imp { gap: calc(14px * var(--u)); padding: 0 calc(16px * var(--u)); }
.sc-imp .kpi { flex: 0 0 auto; }
.sc-imp .kpi strong {
  display: block; font-size: calc(26px * var(--u)); line-height: 1; font-weight: 800; letter-spacing: -1px;
  background: linear-gradient(90deg, #8fe020, #22b8f0); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sc-imp .kpi span { display: block; margin-top: 4px; font-size: calc(8.5px * var(--u)); color: #aab2ba; line-height: 1.3; }
.sc-imp .bars { flex: 1; height: 78%; display: flex; align-items: flex-end; gap: calc(5px * var(--u)); border-bottom: 1px solid #2a3036; }
.sc-imp .bars i { flex: 1; height: var(--h); border-radius: 4px 4px 0 0; background: linear-gradient(#8fe020, #22b8f0); transform-origin: bottom; transform: scaleY(0); }
.sc-imp.on .bars i { animation: grow .7s calc(.15s + var(--i) * .12s) cubic-bezier(.2,1.2,.4,1) both; }
@keyframes grow { to { transform: scaleY(1); } }

/* floating status chips */
.chip {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 6px; white-space: nowrap;
  font-size: 10px; font-weight: 600; line-height: 1; padding: 7px 10px; border-radius: 999px;
  background: #fff; color: #0b0b0c; box-shadow: 0 10px 22px rgba(0,0,0,.16);
  animation: chipf 5s ease-in-out infinite;
}
.chip i { width: 7px; height: 7px; border-radius: 50%; background: #8fe020; box-shadow: 0 0 0 3px rgba(143,224,32,.25); }
.chip.c1 { left: -24px; top: 30px; }
.chip.c2 { right: 18px; top: -12px; background: #0b0b0c; color: #fff; animation-delay: -1.7s; }
.chip.c3 { left: 40px; bottom: -16px; animation-delay: -3.2s; }
@keyframes chipf { 0%,100% { translate: 0 0; } 50% { translate: 0 -5px; } }
@media (min-width: 720px) { .chip { font-size: 12px; } .chip.c1 { left: -34px; top: 50px; } .chip.c3 { left: 70px; bottom: -20px; } }

/* laptop base: hinge notch + keyboard lip */
.base { position: relative; }
.base::before { content: ""; position: absolute; left: 50%; top: 0; width: 22%; height: 4px; margin-left: -11%; border-radius: 0 0 8px 8px; background: #9097a0; }

@media (prefers-reduced-motion: reduce) {
  .laptop, .chip, .hero-visual .screen::after, .os-bar em { animation: none; }
  .laptop { transition: none; }
  .scene * , .scene { animation: none !important; transition: none; }
  .sc-boot .ring, .sc-ideas .ln { stroke-dashoffset: 0; } .sc-ideas .nd { opacity: 1; }
  .sc-str li b { background: #8fe020; border-color: #8fe020; color: #0b0b0c; } .sc-str li { color: #fff; }
  .sc-str .bar u, .sc-imp .bars i { transform: none; }
}

/* ===== Colourful service icons (brand lime / blue family) ===== */
.service .icon {
  --ic1: #8fe020; --ic2: #22b8f0; --icfg: #0b0b0c;
  background: linear-gradient(135deg, var(--ic1), var(--ic2));
  border: 0;
  box-shadow: 0 6px 14px -6px var(--ic2);
  transition: transform .25s;
}
.service .icon svg { stroke: var(--icfg); }
.service:hover .icon { transform: rotate(-6deg) scale(1.08); }
.services-grid .service:nth-child(1) .icon { --ic1: #22b8f0; --ic2: #1478e8; --icfg: #fff; }
.services-grid .service:nth-child(2) .icon { --ic1: #ffb347; --ic2: #ff7a45; --icfg: #fff; }
.services-grid .service:nth-child(3) .icon { --ic1: #8fe020; --ic2: #3cc86a; --icfg: #0b0b0c; }
.services-grid .service:nth-child(4) .icon { --ic1: #9b7cf6; --ic2: #5b6cf0; --icfg: #fff; }
.services-grid .service:nth-child(5) .icon { --ic1: #1f2937; --ic2: #3b4a5e; --icfg: #8fe020; }
.services-grid .service:nth-child(6) .icon { --ic1: #14d0b4; --ic2: #22b8f0; --icfg: #fff; }
.services-grid .service:nth-child(7) .icon { --ic1: #ff7ab8; --ic2: #c05cf0; --icfg: #fff; }
.services-grid .service:nth-child(8) .icon { --ic1: #b6f04a; --ic2: #8fe020; --icfg: #0b0b0c; }
.services-grid .service:nth-child(9) .icon { --ic1: #ff5d6c; --ic2: #ff9a3c; --icfg: #fff; }
.service .icon svg { stroke-width: 2; }

/* ===== Portfolio board: every category is a column, its projects stack as rows ===== */
.pf-board {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr);
  gap: 14px; align-items: start; margin-top: 16px;
  overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.pf-col { scroll-snap-align: start; min-width: 0; }
.pf-col-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 11px 14px; margin-bottom: 12px; border-radius: 14px;
  background: var(--dark); color: #fff; font-weight: 700; font-size: 14px;
}
.pf-col:nth-child(3n+1) .pf-col-head { box-shadow: inset 0 -3px 0 #8fe020; }
.pf-col:nth-child(3n+2) .pf-col-head { box-shadow: inset 0 -3px 0 #22b8f0; }
.pf-col:nth-child(3n) .pf-col-head { box-shadow: inset 0 -3px 0 #b6f04a; }
.pf-col-head small { font-size: 11px; font-weight: 600; color: #8fe020; }
.pf-rows { display: flex; flex-direction: column; gap: 12px; }
.pf-item {
  position: relative; display: block; border-radius: 16px; overflow: hidden;
  background: #fff; border: 1px solid var(--line); color: var(--text);
  box-shadow: 0 8px 20px rgba(0,0,0,.06); transition: transform .25s, box-shadow .25s;
}
a.pf-item:hover, .pf-item.zoom:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(34,184,240,.18); }
.pf-item .pf-thumb { position: relative; aspect-ratio: 16 / 10; background: #0b0b0c; overflow: hidden; }
.pf-item .pf-thumb img, .pf-item .pf-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-item.zoom .pf-thumb { cursor: zoom-in; }
.pf-item .pf-meta { padding: 11px 14px 13px; }
.pf-item .pf-meta h4 { font-size: 13.5px; font-weight: 700; line-height: 1.3; }
.pf-item .pf-meta p { font-size: 12px; color: var(--muted); line-height: 1.5; margin-top: 3px; }
.pf-item .pf-kind {
  position: absolute; left: 10px; top: 10px; z-index: 2; font-size: 10px; font-weight: 700; letter-spacing: .5px;
  text-transform: uppercase; padding: 4px 9px; border-radius: 999px; background: rgba(11,11,12,.75); color: #8fe020;
}
.pf-item .pf-go { position: absolute; right: 10px; top: 10px; z-index: 2; width: 28px; height: 28px; border-radius: 50%; background: #8fe020; color: #0b0b0c; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.pf-item.tile .pf-thumb { display: flex; align-items: flex-end; padding: 14px; color: #fff; }
.pf-item.tile .pf-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.5), transparent 65%); }
.pf-item.tile .pf-thumb b { position: relative; z-index: 2; font-size: 14px; }
.pf-item.tile.light .pf-thumb { color: #111; }
.pf-item.tile.light .pf-thumb::after { display: none; }
.pf-empty { padding: 22px 14px; border: 1.5px dashed #cdd3da; border-radius: 14px; font-size: 12px; color: var(--muted); text-align: center; }
.pf-more { display: inline-block; margin-top: 12px; font-size: 12px; font-weight: 600; color: #3d6b00; }
.pf-board.compact .pf-item .pf-meta p { display: none; }
@media (min-width: 720px) { .pf-board { grid-auto-columns: minmax(260px, 1fr); } }

/* Lightbox */
.pf-item.zoom { cursor: zoom-in; }
.pf-item.zoom:focus-visible { outline: 3px solid #8fe020; outline-offset: 4px; }
.pf-video-item .pf-thumb { cursor: zoom-in; }
.pf-video-item .pf-thumb video { pointer-events: none; }
.pf-play { position: absolute; z-index: 3; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 54px; height: 54px; display: grid; place-items: center; padding-left: 4px; border-radius: 50%; color: #111; background: #8fe020; box-shadow: 0 4px 22px rgba(0,0,0,.35); font-size: 19px; }
.omx-lb { position: fixed; inset: 0; z-index: 99999; background: rgba(5,6,8,.96); display: flex; align-items: center; justify-content: center; padding: 24px; box-sizing: border-box; }
.omx-lb img, .omx-lb video { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.omx-lb video { width: 100%; height: 100%; }
.omx-lb button { position: absolute; top: max(14px, env(safe-area-inset-top)); right: max(16px, env(safe-area-inset-right)); z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: #111; font-size: 26px; line-height: 1; cursor: pointer; box-shadow: 0 2px 14px rgba(0,0,0,.35); }
@media (max-width: 600px) { .omx-lb { padding: 10px; } .omx-lb img, .omx-lb video { border-radius: 4px; } }
