/* Keep content readable before animations load, when offline and without JS. */
html:not(.animations-ready) .hero-title-line,
html:not(.animations-ready) .reveal-text-inner,
html:not(.animations-ready) .fade-up,
html:not(.animations-ready) .fade-in,
html:not(.animations-ready) .hero-text,
html:not(.animations-ready) .hero-side,
html:not(.animations-ready) .reveal-fade { opacity: 1 !important; transform: none !important; }
:focus-visible { outline: 2px solid var(--primary, #00f3ff); outline-offset: 5px; }
html { scroll-padding-top: 110px; }
.nav-menu-wrapper { visibility: visible; }
.hero-artwork { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .22; pointer-events: none; }
html[data-theme="light"] .hero-artwork { opacity: .1; }
.portfolio-image, .bento-image img { filter: none; }



.ncni-grid > *, .bento-grid > *, .footer-grid > * { min-width: 0; }

@media (max-width: 980px) {
    .nav-menu-wrapper { visibility: hidden; max-height: 100dvh; overflow-y: auto; }
    .nav-menu-wrapper.open { visibility: visible; }
    html.no-js .nav { position: relative; }
    html.no-js .nav-inner { flex-wrap: wrap; gap: 24px; }
    html.no-js .nav-menu-wrapper { position: static; visibility: visible; opacity: 1; pointer-events: auto; height: auto; width: 100%; padding: 24px 0; background: none; }
}
@media (max-width: 640px) {

    .ncni-info, .ncni-card-container { min-width: 0; }
    .ncni-info > div { max-width: 100%; overflow-wrap: anywhere; }
    .ncni-info > a { flex-wrap: wrap; }
    .ncni-interactive-card { padding: 24px !important; overflow-wrap: anywhere; }
    .ncni-interactive-card > div { flex-wrap: wrap; gap: 16px; }
    .footer-links a { overflow-wrap: anywhere; }
    .services-menu { position: absolute; top: 100%; left: 0; width: 100%; background: #080808; padding: 28px; flex-direction: column; gap: 24px; border-bottom: 1px solid #222; }
    .services-menu:not(.open) { display: none; }
    .services-menu.open, html.no-js .services-menu { display: flex; }
}
@media (min-width: 641px) and (max-width: 767px) {
    .services-menu { position: absolute; top: 100%; left: 0; width: 100%; background: #080808; padding: 28px; flex-direction: column; gap: 24px; }
    .services-menu:not(.open) { display: none; }
    .services-menu.open, html.no-js .services-menu { display: flex; }
}
@media (max-width: 767px) { html.no-js body[data-services] nav { position: relative; flex-wrap: wrap; } html.no-js .services-menu { position: static; } }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .hero-title-line, .reveal-text-inner, .fade-up, .fade-in, .hero-text, .hero-side, .reveal-fade { opacity: 1 !important; transform: none !important; }
}
.services-toggle { display: none; background: none; color: #f4f1ec; border: 1px solid #333; border-radius: 8px; font-size: 24px; padding: 4px 12px; }
@media (max-width: 767px) { .services-toggle { display: block; } html.no-js .services-toggle { display: none; } }

.bento-item > img { width: 100%; height: auto; }
/* One visual language, with a different composition on each page. */
body { position: relative; isolation: isolate; }
body::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; background-image: radial-gradient(ellipse at 85% 15%, rgba(0,243,255,.075), transparent 55%), radial-gradient(ellipse at 10% 85%, rgba(83,110,255,.05), transparent 55%), linear-gradient(rgba(0,243,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(0,243,255,.025) 1px, transparent 1px); background-size: auto, auto, 88px 88px, 88px 88px; }
body[data-page="onas"]::before { background-image: radial-gradient(ellipse at 15% 35%, rgba(0,243,255,.11), transparent 60%), radial-gradient(ellipse at 95% 80%, rgba(87,113,255,.08), transparent 55%), linear-gradient(rgba(0,243,255,.028) 1px, transparent 1px), linear-gradient(90deg, rgba(0,243,255,.028) 1px, transparent 1px); background-size: auto, auto, 64px 64px, 64px 64px; }
body[data-page="oferta"]::before, body[data-page="services"]::before { background-position: center, center, 24px 24px, 24px 24px; background-size: auto, auto, 104px 104px, 104px 104px; }
body[data-page="portfolio"]::before { background-image: radial-gradient(ellipse at 20% 20%, rgba(0,243,255,.1), transparent 60%), radial-gradient(ellipse at 80% 70%, rgba(179,136,84,.055), transparent 50%), linear-gradient(rgba(0,243,255,.02) 1px, transparent 1px), linear-gradient(90deg, rgba(0,243,255,.02) 1px, transparent 1px); background-size: auto, auto, 120px 120px, 120px 120px; }
body[data-page="de"]::before { background-position: center, center, 32px 32px, 32px 32px; background-size: auto, auto, 72px 72px, 72px 72px; }
body[data-page="eng"]::before { background-size: auto, auto, 96px 96px, 96px 96px; }
body::after { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: var(--page-art) center / cover no-repeat; opacity: .055; }
body[data-page="index"], body[data-page="eng"] { --page-art: url('ai.webp'); }
body[data-page="onas"], body[data-page="de"] { --page-art: url('vr.webp'); }
body[data-page="oferta"], body[data-page="services"] { --page-art: url('video.webp'); }
body[data-page="portfolio"] { --page-art: url('strategy.webp'); }
html[data-theme="light"] body::after { opacity: .035; }
.hero-artwork { opacity: .28; }
body[data-page="onas"] .hero-artwork { object-position: 65% center; opacity: .2; }
body[data-page="oferta"] .hero-artwork { object-position: center 35%; }
body[data-page="portfolio"] .hero-artwork { object-position: 70% center; opacity: .2; }
.service-item > div { min-width: 0; }
.service-visual { margin: 0; min-width: 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; align-self: center; }
.service-visual img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 980px) { .service-item { grid-template-columns: 1.15fr .85fr; gap: 48px; } }
.network-optional-photo { opacity: 0; }
.profile-media.has-photo .network-optional-photo { opacity: 1; }
.profile-media.has-photo .network-placeholder { visibility: hidden; }
.ncni-project .portfolio-image { object-fit: cover; object-position: top; filter: none; }
.project-preview-link { display: block; min-width: 0; }
.project-visit { display: inline-block; color: var(--primary); margin: 0 0 24px; font-size: 14px; }
@media (min-width: 981px) { .ncni-project .project-preview-link { width: 60%; flex-shrink: 0; } .ncni-project .project-preview-link .portfolio-image { width: 100%; } }
html.no-js .hamburger, html.no-js #theme-toggle { display: none; }
/* Serif italics need space for descenders and overhanging strokes. */
h1, h2, h3, h4, h5, h6 { overflow: visible; overflow-wrap: anywhere; }
.hero-title { overflow: visible; line-height: 1.14; padding-bottom: .16em; padding-right: .05em; }
.hero-title-line { line-height: 1.14; }
.big-title, .profile-name, .bento-title, .service-title, .portfolio-title, .cta-title, .text-hero { line-height: 1.18; padding-bottom: .12em; }
.reveal-mask { overflow: visible; padding-bottom: .16em; }
.reveal-text-inner { line-height: 1.18; }
.capability-visual { position: relative; margin: 0 0 28px; overflow: hidden; border: 1px solid var(--border, #333); border-radius: 12px; background: #080808; }
.capability-visual img { width: 100%; height: auto; display: block; object-fit: cover; }
.avatar-flow-arrow { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #080808; border: 1px solid #00f3ff; color: #00f3ff; font-size: 26px; }
.avatar-flow-labels { display: grid; grid-template-columns: 1fr 1fr; padding: 12px; gap: 16px; color: #f4f1ec; text-align: center; font-size: 12px; }
.agent-visual img { aspect-ratio: 3 / 2; }
.service-visual.capability-visual { margin: 0; aspect-ratio: auto; }
.service-visual.capability-visual img { height: auto; }
.vr-preview { margin-top: 28px; }
.vr-preview-stage { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: #080808; border: 1px solid var(--border, #333); border-radius: 12px; perspective: 700px; }
.vr-preview-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vr-training { opacity: 1; }
.vr-headset { opacity: 0; }
.vr-preview.is-playing .vr-headset { animation: vr-enter 12s ease-in-out infinite; }
.vr-preview.is-playing .vr-training { animation: vr-room 12s ease-in-out infinite; }
.vr-preview.is-paused img { animation-play-state: paused; }
.vr-preview-caption { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 12px; font-size: 11px; color: var(--muted, #aaa); }
.vr-preview-toggle { background: transparent; color: var(--primary, #00f3ff); border: 1px solid var(--border, #333); border-radius: 999px; padding: 6px 12px; font: inherit; cursor: pointer; }
@keyframes vr-enter { 0%, 8% { opacity: 1; transform: rotateY(-18deg) rotateZ(-5deg) scale(.85); } 30% { opacity: 1; transform: rotateY(0) rotateZ(0) scale(1.05); } 43% { opacity: 1; transform: scale(1.8); } 52%, 88% { opacity: 0; transform: scale(2.3); } 100% { opacity: 1; transform: rotateY(-18deg) rotateZ(-5deg) scale(.85); } }
@keyframes vr-room { 0%, 32% { opacity: 0; transform: scale(.96); } 49%, 82% { opacity: 1; transform: scale(1.04); } 95%, 100% { opacity: 0; transform: scale(1.04); } }
@media (prefers-reduced-motion: reduce) { .vr-preview-toggle { display: none; } .vr-preview .vr-headset { opacity: 0; animation: none !important; } .vr-preview .vr-training { opacity: 1; transform: none; animation: none !important; } }
html.no-js .vr-preview-toggle { display: none; }
.vr-preview.is-paused img { animation-play-state: paused !important; }
.vr-video-card { min-height: 430px; }
.vr-video-card.has-vr-film .vr-preview { display: none; }
.vr-film-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; background: #080808; opacity: 0; visibility: hidden; transition: opacity .55s ease; z-index: 3; }
.vr-film-overlay video { display: block; width: 100%; flex: 1; min-height: 0; object-fit: contain; }
.vr-film-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px; color: #f4f1ec; font-size: 12px; }
.vr-film-footer button { font: inherit; color: #00f3ff; background: none; border: 1px solid #333; padding: 6px 12px; border-radius: 999px; cursor: pointer; }
.vr-video-card.show-vr-film .vr-film-overlay { visibility: visible; opacity: 1; }

/* Keep hero text within the same gutters as the page content. */
.container.hero-inner { width: min(var(--container, 1280px), calc(100% - 48px)); }
@media (max-width: 768px) { .container.hero-inner { width: min(var(--container, 1280px), calc(100% - 28px)); } }

.portfolio-item.portfolio-film { flex-direction: column; }
.portfolio-film video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; background: #020608; }
.portfolio-film .portfolio-content { width: 100%; margin-top: 0; padding: clamp(24px, 4vw, 48px); }

.portfolio-modeling { scroll-margin-top: 120px; }
.modeling-project-link { display: inline-block; margin-top: 20px; color: var(--primary, #00f3ff); text-decoration: underline; text-underline-offset: 5px; }

.avatar-film-stage { position: relative; aspect-ratio: 3 / 2; overflow: hidden; }
.avatar-film-stage > img { width: 100%; height: 100%; object-fit: cover; }
.avatar-film-stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #080808; opacity: 0; visibility: hidden; }
.is-film-visible .avatar-film-stage video { opacity: 1; visibility: visible; }
.avatar-visual.is-film-visible .avatar-flow-arrow { display: none; }
.avatar-film-toggle { position: absolute; right: 10px; top: 10px; z-index: 2; padding: 8px 12px; border: 1px solid #00f3ff; border-radius: 999px; background: #080808e8; color: #00f3ff; cursor: pointer; font: 12px/1.3 sans-serif; }

.bento-image-wrapper .avatar-film-stage { height: 100%; min-height: 250px; aspect-ratio: auto; }
.inline-film-visual .avatar-film-stage > img { position: absolute; inset: 0; }
.inline-film-visual .avatar-film-stage video { object-fit: cover; }
.service-visual.inline-film-visual .avatar-film-stage { aspect-ratio: 4 / 3; }

/* Project journey and readable contact. */
.project-link{display:inline-block;border:1px solid var(--accent,#00d6de);color:var(--text);padding:12px 18px;border-radius:8px;text-decoration:none;font:inherit;line-height:1.5;background:transparent;cursor:pointer}.project-link:hover{background:rgba(0,243,255,.08)}.project-link:focus-visible{outline:2px solid var(--text);outline-offset:4px}.service-contact-link{margin-top:20px;align-self:start;grid-column:1/-1;justify-self:start}.studio-process h2,.studio-contact h2{font-family:var(--font-display,serif);font-size:clamp(2rem,5vw,3.5rem);line-height:1.3;margin-bottom:28px}.process-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}.process-grid article{border-top:1px solid var(--border-soft,#333);padding-top:20px}.process-number{color:var(--accent,#00d6de);font-size:14px}.process-grid h3,.contact-direct h3,.ncni-case-parts h3{font-size:1.2rem;line-height:1.5;margin:12px 0}.process-grid p,.contact-direct p,.ncni-case-parts p{line-height:1.75;color:var(--muted);font-size:1rem}.contact-grid{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:48px}.studio-contact form{display:grid;gap:10px}.studio-contact input,.studio-contact select,.studio-contact textarea{box-sizing:border-box;width:100%;min-width:0;background:var(--bg);color:var(--text);border:1px solid var(--border-soft,#555);border-radius:8px;padding:12px;font:inherit}.studio-contact select option{background:var(--bg);color:var(--text)}.studio-contact label{margin-top:8px}.studio-contact textarea{resize:vertical}.contact-note{font-size:.85rem;line-height:1.7;color:var(--muted)}.contact-direct a{display:block;color:var(--text);margin-bottom:16px;overflow-wrap:anywhere}.ncni-case-parts{margin:24px 0}.portfolio-film video{display:block;width:100%;max-height:420px;object-fit:contain;background:#080808}.studio-contact,.studio-process{scroll-margin-top:100px}@media(max-width:900px){.process-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.process-grid,.contact-grid{grid-template-columns:minmax(0,1fr)}.contact-grid{gap:28px}.project-link{max-width:100%;box-sizing:border-box}.portfolio-film video{max-height:320px}}

/* Persistent mobile navigation, including iPhone safe area. */
.studio-bottom-nav { display: none; }
@media (max-width: 980px) {
 body { padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px)); }
 html { scroll-padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
 .studio-bottom-nav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; inset: auto 0 0; z-index: 10000; padding: 8px max(8px, env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px)); background: rgba(8, 12, 15, .94); border-top: 1px solid rgba(0,243,255,.18); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); transform: none !important; }
 .studio-bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-height: 52px; padding: 4px 2px; border-radius: 10px; color: #a7b2ba; text-decoration: none; font: 500 10px/1.3 'DM Sans', sans-serif; letter-spacing: .02em; }
 .studio-bottom-nav svg { width: 22px; height: 22px; flex: none; }
 .studio-bottom-nav a[aria-current="page"] { color: #00f3ff; background: rgba(0,243,255,.075); }
 #mobile-toggle, .services-toggle, #mobile-menu .nav-links { display: none !important; }
 html body .nav-menu-wrapper { position: static; display: flex; width: auto; height: auto; max-height: none; padding: 0; background: none; visibility: visible; opacity: 1; pointer-events: auto; overflow: visible; transform: none; }
 .nav-menu-wrapper .nav-actions-container { margin: 0; }
 body[data-services] .services-menu { display: none !important; }
 html[data-theme="light"] .studio-bottom-nav { background: rgba(246,249,250,.95); border-top-color: rgba(0,120,140,.2); }
 html[data-theme="light"] .studio-bottom-nav a { color: #546570; }
 html[data-theme="light"] .studio-bottom-nav a[aria-current="page"] { color: #007e8b; background: rgba(0,126,139,.09); }
}

.studio-orbit{display:inline-block;width:36px;height:36px;vertical-align:middle;margin-right:10px}.studio-example{margin-top:24px;padding:22px;border:1px solid var(--border-soft);border-radius:16px;background:rgba(0,243,255,.035)}.studio-example ol{padding-left:20px;line-height:1.8}.electronics-symbol{display:grid;place-items:center;min-height:240px;background:radial-gradient(circle,#073d40,#081316);border:1px solid #00f3ff33;border-radius:18px;color:#00f3ff}.electronics-symbol svg{width:150px;height:150px}.privacy-link{font-size:12px;color:inherit;text-decoration:underline;margin-left:12px}@media(max-width:480px){.studio-orbit{width:28px;height:28px;margin-right:6px}}
/* The offer uses dark visual panels in both themes. Keep their text readable. */
.concept-services .service-item { color: #f4f1ec; }
.concept-services .service-title { color: #f4f1ec; }
.concept-services .service-desc { color: #d4d8da; }
.concept-services .studio-example { color: #d4d8da; border-color: #53656a; }
.concept-services .vr-preview-caption { color: #d4d8da; }
html[data-theme="light"] .hero-text { color: #414950; font-weight: 400; }
html[data-theme="light"] .hero-artwork { opacity: .07; }
