/* Cinematic Tech Editorial (V4): pearl-white ground, deep navy counterpoint, glass layers in 3D depth.
   Self-hosted variable fonts (OFL, latin subset, ~75 KB total) give the same identity on every OS;
   unicode-range keeps symbols outside the subset on the system fallback. */
@font-face { font-family: "Geist"; src: url("assets/fonts/geist-latin-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist Mono"; src: url("assets/fonts/geist-mono-latin-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Serif"; src: url("assets/fonts/instrument-serif-latin-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Cinematic Tech Editorial: pearl-white ground, deep navy as the cinematic counterpoint, glass layers in real 3D depth, ambient light that breathes. Local fonts only (Windows). */
:root {
  color-scheme: light;
  --paper: #F6F8FB;
  --paper-2: #EDF2F8;
  --white: #FFFFFF;
  --ink: #06132A;
  --navy: #0A2350;
  --deep: #050F24;
  --blue: #2456C8;
  --blue-2: #3F7BEA;
  --sky: #9EC0F5;
  --ice: #DCE7F8;
  --muted: #4A5770;
  --line: rgba(6, 19, 42, .10);
  --glass: rgba(255, 255, 255, .64);
  --glass-line: rgba(255, 255, 255, .85);

  /* Self-hosted first, then system stacks: Windows → Apple → Android/Linux → generic. */
  --f-display: "Geist", "Segoe UI Variable Display", "Segoe UI", -apple-system, BlinkMacSystemFont, "SF Pro Display", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-text: "Geist", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-accent: "Instrument Serif", "Sitka Banner", "Sitka Display", "Iowan Old Style", "Palatino Linotype", Palatino, "Noto Serif", Georgia, serif;
  --f-mono: "Geist Mono", "Cascadia Mono", "SF Mono", ui-monospace, Menlo, Consolas, "Roboto Mono", "DejaVu Sans Mono", monospace;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --container: 1280px;
  --shadow-xl: 0 50px 100px -40px rgba(6, 19, 42, .38), 0 18px 40px -24px rgba(6, 19, 42, .28);
  --shadow-lg: 0 30px 60px -30px rgba(6, 19, 42, .35);
}

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 var(--f-text);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); text-wrap: balance; }
p { margin: 0; }
em.acc, .acc { font-family: var(--f-accent); font-style: italic; font-weight: 400; letter-spacing: -0.015em; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.wrap { max-width: var(--container); margin-inline: auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
@media (min-width: 760px) { .wrap { padding-left: max(44px, env(safe-area-inset-left, 0px)); padding-right: max(44px, env(safe-area-inset-right, 0px)); } }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; text-decoration: none; border-radius: 8px; }
.skip:focus { top: 12px; }

/* ================= HEADER ================= */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; padding-top: env(safe-area-inset-top, 0px); transition: background .5s var(--ease-out), box-shadow .5s, backdrop-filter .5s; }
.site-header.scrolled { background: rgba(246, 248, 251, .72); backdrop-filter: blur(18px) saturate(160%); box-shadow: 0 1px 0 var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(145deg, var(--navy), var(--blue)); color: #fff; font: italic 400 17px/1 var(--f-accent); box-shadow: 0 8px 20px -8px rgba(36, 86, 200, .7), inset 0 1px 0 rgba(255,255,255,.3); }
.brand b { display: block; font: 650 16px/1.1 var(--f-display); letter-spacing: -0.01em; }
.brand small { display: block; font: 500 10.5px/1.3 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.nav { display: flex; gap: 6px; padding: 5px; border-radius: 999px; background: rgba(255,255,255,.55); border: 1px solid var(--glass-line); backdrop-filter: blur(12px); box-shadow: 0 10px 30px -18px rgba(6,19,42,.35); }
.nav a { position: relative; text-decoration: none; font-size: 14.5px; font-weight: 500; color: var(--muted); padding: 8px 16px; border-radius: 999px; transition: color .35s var(--ease-out), background .35s var(--ease-out); }
.nav a:hover { color: var(--ink); background: rgba(255,255,255,.9); }
.btn { position: relative; display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 26px; border-radius: 999px; font: 600 15px/1 var(--f-text); text-decoration: none; cursor: pointer; border: 0; isolation: isolate; transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), background .4s; will-change: transform; }
.btn .arr { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; transition: transform .5s var(--ease-out), background .4s; }
.btn:hover .arr { transform: translateX(4px) rotate(-45deg); }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%); box-shadow: 0 18px 40px -16px rgba(36, 86, 200, .75), inset 0 1px 0 rgba(255,255,255,.25); overflow: hidden; }
.btn-primary::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-120%); transition: transform 1.1s var(--ease-out); }
.btn-primary:hover::before { transform: translateX(120%); }
.btn-primary:hover { box-shadow: 0 24px 50px -16px rgba(36, 86, 200, .9), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-primary .arr { background: rgba(255,255,255,.16); }
.btn-glass { color: var(--ink); background: rgba(255,255,255,.7); border: 1px solid var(--glass-line); backdrop-filter: blur(12px); box-shadow: 0 14px 30px -20px rgba(6,19,42,.4); }
.btn-glass:hover { background: #fff; }
.btn-glass .arr { background: var(--ice); color: var(--navy); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 14px; }
.menu-btn { display: none; }
@media (max-width: 920px) {
  .nav { display: none; }
  .nav.open { display: flex; flex-direction: column; position: absolute; top: calc(100% - 6px); left: 16px; right: 16px; border-radius: 22px; padding: 10px; background: rgba(255,255,255,.95); }
  .nav.open a { padding: 14px 16px; font-size: 17px; color: var(--ink); }
  .menu-btn { display: inline-flex; }
  .header-cta { display: none; }
}

/* ================= HERO ================= */
.hero { position: relative; min-height: 100svh; padding-top: calc(120px + env(safe-area-inset-top, 0px)); padding-bottom: 0; isolation: isolate; overflow: clip; display: flex; flex-direction: column; }
.ambient { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.aurora { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; will-change: transform; }
.aurora.a1 { width: 56vw; height: 56vw; max-width: 820px; max-height: 820px; top: -18%; right: -12%; background: radial-gradient(circle, #8DB4F6 0%, rgba(141,180,246,0) 65%); animation: drift1 26s var(--ease-io) infinite alternate; }
.aurora.a2 { width: 44vw; height: 44vw; max-width: 640px; max-height: 640px; bottom: -20%; left: -10%; background: radial-gradient(circle, #C9DAF7 0%, rgba(201,218,247,0) 65%); animation: drift2 32s var(--ease-io) infinite alternate; }
.aurora.a3 { width: 30vw; height: 30vw; max-width: 460px; max-height: 460px; top: 30%; left: 38%; background: radial-gradient(circle, rgba(63,123,234,.55) 0%, rgba(63,123,234,0) 65%); animation: breathe 9s ease-in-out infinite; }
@keyframes drift1 { to { transform: translate3d(-8vw, 6vh, 0) scale(1.12); } }
@keyframes drift2 { to { transform: translate3d(10vw, -8vh, 0) scale(1.18); } }
@keyframes breathe { 0%, 100% { opacity: .35; transform: scale(.92); } 50% { opacity: .7; transform: scale(1.08); } }
.gridlines { position: absolute; inset: 0; background-image: linear-gradient(rgba(6,19,42,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(6,19,42,.055) 1px, transparent 1px); background-size: 72px 72px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 20%, transparent 75%); }
#flow { position: absolute; inset: 0; width: 100%; height: 100%; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%, #000 80%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0%, #000 30%, #000 80%, transparent 100%); opacity: .9; }
.grain { position: absolute; inset: 0; opacity: .05; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

.hero-grid { flex: 1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 28px; row-gap: 56px; align-items: center; padding-bottom: 72px; }
.hero-copy { grid-column: 1 / -1; min-width: 0; position: relative; z-index: 2; }
.hero-visual { grid-column: 1 / -1; min-width: 0; position: relative; }
@media (min-width: 1000px) {
  .hero-copy { grid-column: 1 / span 6; }
  .hero-visual { grid-column: 7 / span 6; }
}
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border-radius: 999px; background: rgba(255,255,255,.7); border: 1px solid var(--glass-line); backdrop-filter: blur(10px); box-shadow: 0 10px 24px -18px rgba(6,19,42,.45); font: 500 13px/1 var(--f-text); color: var(--muted); }
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--blue-2); }
.pulse::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1.5px solid var(--blue-2); animation: ping 2.6s var(--ease-out) infinite; }
@keyframes ping { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(1.8); opacity: 0; } }
.eyebrow { margin-top: 30px; color: var(--blue); }
.hero h1 { margin-top: 18px; font-weight: 700; font-size: clamp(2.6rem, 4.7vw, 5.4rem); line-height: .95; letter-spacing: -0.05em; color: var(--ink); }
.hero h1 em { display: inline-block; font-size: 1.06em; letter-spacing: -0.03em; padding-right: .06em; background: linear-gradient(100deg, var(--navy) 0%, var(--blue) 45%, var(--blue-2) 70%, var(--navy) 100%); background-size: 220% 100%; background-position: 100% 0; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 2.4s var(--ease-out) .5s 1 both; }
@keyframes sheen { from { background-position: 0% 0; } to { background-position: 100% 0; } }
.hero .lede { margin-top: 28px; font-size: clamp(1.06rem, 1.35vw, 1.22rem); line-height: 1.6; color: var(--muted); max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.audience { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); max-width: 560px; }
.audience a { text-decoration: none; display: grid; gap: 2px; }
.audience a span { font-size: 14px; color: var(--muted); }
.audience a b { font-size: 15px; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.audience a b i { font-style: normal; transition: transform .4s var(--ease-out); }
.audience a:hover b i { transform: translate(3px, -3px); }

/* 3D stage (shared by hero and cases) */
.stage { perspective: 1600px; perspective-origin: 50% 40%; }
.stage-inner { position: relative; transform-style: preserve-3d; transform: rotateX(calc(var(--rx, 0) * 1deg)) rotateY(calc(var(--ry, 0) * 1deg)); transition: transform 1s var(--ease-out); }
.layer { position: absolute; margin: 0; border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid rgba(255,255,255,.9); box-shadow: var(--shadow-xl); transition: transform 1.1s var(--ease-out), box-shadow 1.1s var(--ease-out); }
.layer .bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: rgba(246,248,251,.95); border-bottom: 1px solid var(--line); }
.layer .bar i { width: 7px; height: 7px; border-radius: 50%; background: #D3DAE5; }
.layer .bar span { margin-left: 8px; font: 500 10.5px/1 var(--f-mono); letter-spacing: .06em; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.layer .shot { overflow: hidden; }
.layer .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.chip { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 14px; background: rgba(255,255,255,.9); border: 1px solid var(--glass-line); box-shadow: 0 20px 40px -22px rgba(6,19,42,.45); transition: transform 1.1s var(--ease-out); white-space: nowrap; }
.chip .ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: linear-gradient(145deg, var(--navy), var(--blue)); color: #fff; flex: none; }
.chip .ic svg { width: 16px; height: 16px; }
.chip b { display: block; font: 600 13.5px/1.2 var(--f-text); }
.chip small { display: block; font-size: 12px; color: var(--muted); }
.float-a { animation: bob 7s ease-in-out infinite; }
.float-b { animation: bob 8.5s ease-in-out infinite -3s; }
.float-c { animation: bob 9.5s ease-in-out infinite -5s; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

/* Hero A composition */
/* Crops: each capture is zoomed into its meaningful region (sidebar removed) so the UI reads at hero size without upscaling. */
.stage-a .stage-inner { aspect-ratio: 1 / .8; }
.stage-a .l-back { top: 0; right: 0; width: 58%; transform: translateZ(-80px); }
.stage-a .l-back .shot { position: relative; aspect-ratio: 16 / 10; }
.stage-a .l-back .shot img { position: absolute; width: 165%; max-width: none; height: auto; left: -27%; top: -18%; object-fit: fill; }
.stage-a .l-back::after { content: ""; position: absolute; inset: 30px 0 0; background: linear-gradient(180deg, rgba(246,248,251,0) 55%, rgba(246,248,251,.55)); pointer-events: none; }
.stage-a .l-front { left: 0; top: 24%; width: 76%; transform: translateZ(60px); }
.stage-a .l-front .shot { position: relative; aspect-ratio: 16 / 10; }
.stage-a .l-front .shot img { position: absolute; width: 168%; max-width: none; height: auto; left: -30.6%; top: -3%; object-fit: fill; }
.stage-a .c1 { left: -3%; top: 9%; transform: translateZ(120px); }
.stage-a .c2 { right: -3%; bottom: 3%; transform: translateZ(140px); }
.stage:hover .l-front { transform: translateZ(90px) translate(-10px, 8px); box-shadow: 0 70px 120px -40px rgba(6,19,42,.45), 0 20px 40px -24px rgba(6,19,42,.3); }
.stage:hover .l-back { transform: translateZ(-120px) translate(16px, -12px); }
.stage-a:hover .c1 { transform: translateZ(170px) translate(-10px, -6px); }
.stage-a:hover .c2 { transform: translateZ(190px) translate(10px, 4px); }
.glow-floor { position: absolute; left: 10%; right: 10%; bottom: -8%; height: 30%; border-radius: 50%; background: radial-gradient(closest-side, rgba(36,86,200,.35), transparent); filter: blur(30px); transform: translateZ(-150px); animation: breathe 8s ease-in-out infinite; }

/* Hero B: portrait composition */
.stage-b { display: none; }
[data-variant="con-foto"] .stage-a { display: none; }
[data-variant="con-foto"] .stage-b { display: block; }
.stage-b .stage-inner { aspect-ratio: 1 / 1.02; }
.portrait { position: absolute; top: 0; right: 6%; width: 64%; aspect-ratio: 4 / 5; margin: 0; border-radius: 320px 320px 28px 28px; overflow: hidden; transform: translateZ(0); box-shadow: var(--shadow-xl); background:
  radial-gradient(70% 55% at 62% 28%, #FFFFFF 0%, rgba(255,255,255,0) 60%),
  radial-gradient(90% 70% at 30% 90%, rgba(36,86,200,.55) 0%, rgba(36,86,200,0) 70%),
  linear-gradient(170deg, #E6EEF9 0%, #B9CCEA 45%, #6F8FC4 78%, #2B4C86 100%);
  transition: transform 1.1s var(--ease-out); }
.portrait::before { content: ""; position: absolute; inset: -40%; background: linear-gradient(115deg, transparent 42%, rgba(255,255,255,.45) 50%, transparent 58%); animation: sweep 7.5s var(--ease-io) infinite; }
@keyframes sweep { 0% { transform: translateX(-40%); } 60%, 100% { transform: translateX(40%); } }
.portrait::after { content: ""; position: absolute; inset: 0; opacity: .08; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); mix-blend-mode: multiply; }
.monogram { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); font: italic 400 clamp(7rem, 15vw, 13rem)/1 var(--f-accent); letter-spacing: -0.06em; color: rgba(255,255,255,.55); text-shadow: 0 30px 60px rgba(10,35,80,.25); user-select: none; }
.portrait .p-label { position: absolute; left: 22px; top: 50%; writing-mode: vertical-rl; transform: translateY(-50%) rotate(180deg); color: rgba(6,19,42,.55); }
.portrait .p-caption { position: absolute; left: 14px; right: 14px; bottom: 14px; padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.62); border: 1px solid var(--glass-line); backdrop-filter: blur(14px); display: grid; gap: 4px; }
.portrait .p-caption b { font: 600 14px/1.3 var(--f-text); }
.portrait .p-caption span { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.portrait .p-caption { left: 31%; }
.stage-b .mini { position: absolute; left: 0; bottom: -2%; width: 44%; transform: translateZ(90px); }
.stage-b .mini .shot { aspect-ratio: 16 / 10; }
.stage-b .sig { right: 0; top: 14%; transform: translateZ(130px); }
.stage-b .sig2 { left: 4%; top: 18%; transform: translateZ(110px); }
.stage-b:hover .portrait { transform: translateZ(-30px); }
.stage-b:hover .mini { transform: translateZ(140px) translate(-10px, 8px); }
.stage-b:hover .sig { transform: translateZ(180px) translate(10px, -6px); }
.stage-b:hover .sig2 { transform: translateZ(160px) translate(-8px, -6px); }

/* Marquee */
.marquee { position: relative; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.55); backdrop-filter: blur(8px); overflow: hidden; }
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { display: inline-flex; align-items: center; gap: 28px; padding: 20px 14px; font: 500 15px/1 var(--f-display); letter-spacing: -0.005em; color: var(--muted); white-space: nowrap; }
.marquee-track span::after { content: ""; width: 6px; height: 6px; transform: rotate(45deg); background: var(--blue); opacity: .6; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ================= SECTIONS ================= */
.section { position: relative; padding-block: clamp(96px, 12vw, 168px); }
.kicker { display: inline-flex; align-items: center; gap: 12px; color: var(--blue); }
.kicker::before { content: ""; width: 28px; height: 1.5px; background: currentColor; }
.h2 { margin-top: 22px; font-weight: 700; font-size: clamp(2.3rem, 5vw, 4.4rem); line-height: 1; letter-spacing: -0.045em; max-width: 18ch; }
.h2 em { color: var(--blue); }
.sub { margin-top: 22px; color: var(--muted); max-width: 56ch; font-size: 18px; }

/* Manifesto */
.manifesto p.big { font: 600 clamp(1.7rem, 3.6vw, 3.2rem)/1.14 var(--f-display); letter-spacing: -0.035em; max-width: 26ch; }
.manifesto .w { color: rgba(6,19,42,.2); transition: color 1s var(--ease-out); transition-delay: calc(var(--i) * 22ms); }
.manifesto.in .w { color: var(--ink); }
.manifesto .w.hl { font-family: var(--f-accent); font-style: italic; font-weight: 400; }
.manifesto.in .w.hl { color: var(--blue); }
/* Process: sticky intro + three phases on a scroll-filled rail, each phase with its own working artifact */
.process { padding-top: clamp(24px, 4vw, 56px); }
.process-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 28px; row-gap: 48px; }
.process-intro { grid-column: 1 / -1; min-width: 0; }
.phases { grid-column: 1 / -1; min-width: 0; position: relative; padding-left: 40px; }
@media (min-width: 1000px) {
  .process-intro { grid-column: 1 / span 4; position: sticky; top: 120px; align-self: start; }
  .phases { grid-column: 6 / span 7; padding-left: 56px; }
}
.process-intro .sub { font-size: 17px; }
.process-intro .h2 { font-size: clamp(2.3rem, 3.5vw, 3.6rem); max-width: 14ch; }
.process-intro .h2 em { font-size: 1em; }
.p-rail { position: absolute; left: 12px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: var(--line); }
.p-rail i { position: absolute; inset: 0 0 auto; height: calc(var(--p, 0) * 100%); border-radius: 2px; background: linear-gradient(180deg, var(--blue-2), var(--navy)); }
@media (min-width: 1000px) { .p-rail { left: 18px; } }
.phase { position: relative; padding-block: 8px clamp(56px, 7vw, 96px); }
.phase:last-child { padding-bottom: 8px; }
.phase .node-dot { position: absolute; left: -36px; top: 14px; width: 18px; height: 18px; border-radius: 50%; background: var(--paper); border: 2px solid var(--rule-dot, #C4CFDE); transition: border-color .6s var(--ease-out), box-shadow .6s var(--ease-out); }
@media (min-width: 1000px) { .phase .node-dot { left: -46px; } }
.phase.active .node-dot { border-color: var(--blue); box-shadow: 0 0 0 6px rgba(63,123,234,.14); }
.ph-num { position: absolute; right: 0; top: -18px; font: 700 clamp(5rem, 11vw, 9rem)/1 var(--f-display); letter-spacing: -0.06em; color: transparent; -webkit-text-stroke: 1.5px rgba(36,86,200,.16); user-select: none; pointer-events: none; transition: -webkit-text-stroke-color .8s var(--ease-out); }
.phase.active .ph-num { -webkit-text-stroke-color: rgba(36,86,200,.38); }
.ph-label { color: var(--blue); }
.phase h3 { margin-top: 14px; font-weight: 700; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.02; letter-spacing: -0.04em; max-width: 15ch; }
.phase > p { margin-top: 16px; color: var(--muted); max-width: 50ch; font-size: 17px; position: relative; }
.artifact { margin-top: 28px; position: relative; }

.questions { display: flex; flex-wrap: wrap; gap: 12px; }
.q { padding: 14px 18px; border-radius: 16px; background: #fff; border: 1px solid var(--glass-line); box-shadow: 0 20px 40px -30px rgba(6,19,42,.45); font: 600 15.5px/1.3 var(--f-display); letter-spacing: -0.01em; transition: transform .7s var(--ease-out); }
.q:nth-child(1) { rotate: -1.5deg; } .q:nth-child(2) { rotate: 1deg; translate: 0 8px; } .q:nth-child(3) { rotate: -.5deg; } .q:nth-child(4) { rotate: 1.5deg; translate: 0 6px; }
.questions:hover .q { rotate: 0deg; translate: 0 0; }
.q span { display: block; margin-bottom: 4px; font: 500 10.5px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.artifact-note { margin-top: 18px; color: var(--muted); font-size: 13px; }

.rules { border-radius: 22px; overflow: hidden; background: var(--deep); color: #DCE7F8; box-shadow: 0 40px 80px -50px rgba(5,15,36,.8); }
.rules-bar { display: flex; justify-content: space-between; gap: 12px; padding: 12px 18px; border-bottom: 1px solid rgba(255,255,255,.08); color: #7F95BA; }
.rule { padding: 18px; display: grid; grid-template-columns: 96px 1fr; gap: 8px 14px; font: 400 13.5px/1.5 var(--f-mono); }
.rule + .rule { border-top: 1px solid rgba(255,255,255,.06); }
.rule .t { grid-column: 1 / -1; font: 600 14px/1.3 var(--f-text); color: #fff; display: flex; align-items: center; gap: 8px; }
.rule .t::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sky); }
.rule .k { color: #7F95BA; }
.rule .v { color: #DCE7F8; min-width: 0; }
.rule .v b { color: var(--sky); font-weight: 500; }

.loop { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.ring { position: relative; width: 164px; height: 164px; flex: none; }
.ring svg { width: 100%; height: 100%; }
.ring .orbit { position: absolute; inset: 0; animation: orbit 14s linear infinite; }
.ring .orbit::before { content: ""; position: absolute; left: 50%; top: 9px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--blue-2); box-shadow: 0 0 0 5px rgba(63,123,234,.18); }
@keyframes orbit { to { transform: rotate(360deg); } }
.ring .center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font: 600 13px/1.25 var(--f-display); color: var(--navy); }
.loop ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.loop li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 15.5px; color: var(--muted); }
.loop li b { color: var(--ink); font-weight: 600; }
.loop li::before { content: ""; width: 14px; height: 14px; margin-top: 5px; border-radius: 4px; border: 1.5px solid var(--blue); background: linear-gradient(var(--blue), var(--blue)) center / 6px 6px no-repeat; }
@media (max-width: 560px) {
  .loop { grid-template-columns: 1fr; }
  .ring { width: 140px; height: 140px; }
  .rule { grid-template-columns: 78px 1fr; font-size: 12.5px; }
  .ph-num { font-size: 4.4rem; top: -6px; }
}

/* Cases */
.cases-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(56px, 7vw, 96px); }
.case { position: relative; border-radius: 36px; padding: clamp(28px, 4vw, 56px); margin-bottom: clamp(28px, 4vw, 44px); background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.6)); border: 1px solid var(--glass-line); box-shadow: 0 40px 80px -60px rgba(6,19,42,.5); overflow: clip; isolation: isolate; }
.case::before { content: ""; position: absolute; z-index: -1; width: 60%; aspect-ratio: 1; right: -20%; top: -30%; border-radius: 50%; background: radial-gradient(circle, rgba(158,192,245,.55), transparent 65%); filter: blur(40px); animation: breathe 11s ease-in-out infinite; }
.case-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 28px; row-gap: 44px; align-items: center; }
.case-copy { grid-column: 1 / -1; min-width: 0; }
.case-visual { grid-column: 1 / -1; min-width: 0; }
@media (min-width: 1000px) {
  .case-copy { grid-column: 1 / span 5; }
  .case-visual { grid-column: 6 / span 7; }
  .case.rev .case-copy { grid-column: 8 / span 5; grid-row: 1; }
  .case.rev .case-visual { grid-column: 1 / span 7; grid-row: 1; }
}
.case-index { display: flex; align-items: center; gap: 14px; color: var(--muted); }
.case-index .n { font: 500 13px/1 var(--f-mono); color: var(--blue); }
.case-index .line { flex: 1; height: 1px; background: var(--line); max-width: 80px; }
.case h3 { margin-top: 20px; font-weight: 700; font-size: clamp(2.1rem, 3.8vw, 3.4rem); line-height: .98; letter-spacing: -0.045em; }
.case .problem { margin-top: 18px; color: var(--muted); font-size: 17.5px; }
.modules { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.modules span { font-size: 13.5px; font-weight: 500; padding: 8px 12px; border-radius: 999px; background: var(--paper-2); color: var(--navy); border: 1px solid rgba(10,35,80,.06); }
.spec { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; margin: 30px 0 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.spec div { min-width: 0; }
.spec dt { font: 500 10.5px/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.spec dd { margin: 6px 0 0; font-size: 14.5px; font-weight: 500; }
.status { color: var(--muted); font-style: italic; font-weight: 400 !important; }
.tlink { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; padding-bottom: 4px; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat; transition: background-size .5s var(--ease-out); }
.tlink:hover { background-size: 30% 1.5px; }
.tlink i { font-style: normal; transition: transform .5s var(--ease-out); }
.tlink:hover i { transform: translateX(6px); }

.stage-pos .stage-inner { aspect-ratio: 1 / .78; }
.stage-pos .l-back { top: 0; right: 0; width: 64%; transform: translateZ(-60px); }
.stage-pos .l-back .shot { aspect-ratio: 1440 / 1000; }
.stage-pos .l-front { left: 0; top: 16%; width: 74%; transform: translateZ(40px); }
.stage-pos .l-front .shot { aspect-ratio: 16 / 10.5; }
.stage-pos .c1 { right: 4%; bottom: 4%; transform: translateZ(130px); }
.stage-pos .c2 { left: -2%; top: 4%; transform: translateZ(110px); }

.stage-aqer .stage-inner { aspect-ratio: 1 / .66; }
.stage-aqer .l-back { top: 0; left: 0; width: 74%; transform: translateZ(-60px); }
.stage-aqer .l-back .shot { aspect-ratio: 1400 / 674; }
.stage-aqer .l-front { left: 22%; top: 26%; width: 78%; transform: translateZ(30px); }
.stage-aqer .l-front .shot { aspect-ratio: 1400 / 676; }
.stage-aqer .c1 { left: -2%; bottom: 4%; transform: translateZ(140px); }
.mobile-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; align-items: end; }
.screen { margin: 0; border-radius: 20px; overflow: hidden; background: #fff; border: 1px solid rgba(255,255,255,.95); box-shadow: 0 30px 60px -36px rgba(6,19,42,.45); transition: transform .9s var(--ease-out), box-shadow .9s var(--ease-out); }
.screen img { width: 100%; height: auto; aspect-ratio: 360 / 640; object-fit: cover; object-position: top center; }
.screen:hover { transform: translateY(-8px); box-shadow: 0 40px 70px -36px rgba(6,19,42,.55); }
.screen.lift { transform: translateY(-18px); }
.screen.lift:hover { transform: translateY(-26px); }
.screen-note { align-self: stretch; border-radius: 20px; padding: 20px; display: grid; align-content: end; gap: 8px; background: linear-gradient(160deg, var(--navy), var(--blue)); color: #E6EEFA; box-shadow: 0 30px 60px -36px rgba(36,86,200,.6); }
.screen-note b { font: 650 18px/1.15 var(--f-display); color: #fff; letter-spacing: -0.02em; }
.screen-note span { font-size: 13px; color: #C2D3EE; line-height: 1.45; }
.screen-note .mono { color: var(--sky); font-size: 10.5px; }
.stage-pos:hover .c1, .stage-aqer:hover .c1 { transform: translateZ(180px) translate(6px, 6px); }
.stage-pos:hover .c2 { transform: translateZ(160px) translate(-8px, -6px); }

/* Omnia cinematic case */
.case.dark { background: radial-gradient(120% 90% at 85% 0%, #14336F 0%, var(--deep) 60%); color: #E6EEFA; border-color: rgba(255,255,255,.08); box-shadow: 0 60px 120px -60px rgba(5,15,36,.85); }
.case.dark::before { background: radial-gradient(circle, rgba(63,123,234,.6), transparent 65%); }
.case.dark h3 { color: #fff; }
.case.dark .problem, .case.dark .case-index { color: #A9BCDD; }
.case.dark .case-index .line { background: rgba(255,255,255,.15); }
.case.dark .case-index .n { color: var(--sky); }
.case.dark .modules span { background: rgba(255,255,255,.06); color: #DCE7F8; border-color: rgba(255,255,255,.1); }
.case.dark .spec { border-top-color: rgba(255,255,255,.12); }
.case.dark .spec dt { color: #8EA6CC; }
.case.dark .status { color: #8EA6CC; }
.case.dark .tlink { color: #fff; }
.pipeline { position: relative; padding: clamp(24px, 3vw, 36px); border-radius: 26px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); }
.pipe-head { display: flex; justify-content: space-between; gap: 12px; color: #8EA6CC; margin-bottom: 26px; }
.nodes { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.rail { position: absolute; left: 6%; right: 6%; top: 34px; height: 2px; background: rgba(255,255,255,.12); overflow: hidden; border-radius: 2px; }
.rail::after { content: ""; position: absolute; top: 0; left: -30%; width: 30%; height: 100%; background: linear-gradient(90deg, transparent, var(--sky), #fff, transparent); animation: travel 4.8s var(--ease-io) infinite; }
@keyframes travel { to { left: 100%; } }
.node { position: relative; display: grid; gap: 10px; justify-items: start; min-width: 0; }
.node .dot { width: 68px; height: 68px; border-radius: 20px; display: grid; place-items: center; background: linear-gradient(160deg, rgba(255,255,255,.12), rgba(255,255,255,.03)); border: 1px solid rgba(255,255,255,.16); color: #fff; position: relative; z-index: 1; animation: nodeglow 4.8s var(--ease-io) infinite; animation-delay: calc(var(--d) * 1.1s); }
.node .dot svg { width: 26px; height: 26px; }
@keyframes nodeglow { 0%, 70%, 100% { box-shadow: 0 0 0 0 rgba(158,192,245,0); border-color: rgba(255,255,255,.16); } 15% { box-shadow: 0 0 40px 4px rgba(158,192,245,.55); border-color: rgba(158,192,245,.9); } }
.node b { font: 600 16px/1.2 var(--f-display); color: #fff; }
.node span { font-size: 13px; color: #A9BCDD; line-height: 1.45; }
.pipe-note { margin-top: 28px; padding-top: 18px; border-top: 1px dashed rgba(255,255,255,.16); font-size: 13.5px; color: #8EA6CC; }
@media (max-width: 640px) { .nodes { grid-template-columns: 1fr 1fr; row-gap: 26px; } .rail { display: none; } }

.others { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 20px; }
.spot { position: relative; overflow: hidden; isolation: isolate; }
.spot::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .5s var(--ease-out); background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(63,123,234,.16), transparent 60%); }
.spot:hover::after { opacity: 1; }
.other { padding: 30px; border-radius: 28px; background: rgba(255,255,255,.72); border: 1px solid var(--glass-line); box-shadow: 0 30px 60px -48px rgba(6,19,42,.5); display: grid; gap: 12px; transition: transform .7s var(--ease-out); }
.other:hover { transform: translateY(-4px); }
.other h4 { font: 700 24px/1.1 var(--f-display); letter-spacing: -0.03em; }
.other p { color: var(--muted); font-size: 15.5px; }
.other .mono { color: var(--blue); font-size: 11px; }

/* Capabilities bento */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; margin-top: clamp(48px, 6vw, 80px); }
.cap { grid-column: span 6; padding: 30px; border-radius: 28px; background: rgba(255,255,255,.75); border: 1px solid var(--glass-line); box-shadow: 0 30px 60px -50px rgba(6,19,42,.5); display: grid; gap: 14px; align-content: start; min-width: 0; transition: transform .7s var(--ease-out), box-shadow .7s var(--ease-out); }
.cap:hover { transform: translateY(-4px); box-shadow: 0 40px 70px -46px rgba(6,19,42,.55); }
.cap .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--ice); color: var(--navy); }
.cap .ico svg { width: 22px; height: 22px; }
.cap h3 { font-size: 22px; font-weight: 650; letter-spacing: -0.025em; }
.cap p { color: var(--muted); font-size: 15.5px; }
.cap .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.cap .tags span { font: 500 11.5px/1 var(--f-mono); padding: 7px 9px; border-radius: 8px; background: var(--paper-2); color: var(--navy); }
.cap.feature { background: linear-gradient(150deg, var(--navy) 0%, #12357A 60%, var(--blue) 130%); color: #E6EEFA; border-color: rgba(255,255,255,.1); }
.cap.feature h3 { color: #fff; font-size: clamp(26px, 2.6vw, 32px); }
.cap.feature p { color: #B8C9E6; }
.cap.feature .ico { background: rgba(255,255,255,.1); color: #fff; }
.cap.feature .tags span { background: rgba(255,255,255,.08); color: #DCE7F8; }
.cap.feature .spot-glow { --mx: 50%; }
.mods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.mods span { padding: 12px; border-radius: 12px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); font-size: 13px; color: #DCE7F8; animation: modpulse 6s ease-in-out infinite; animation-delay: calc(var(--d) * .5s); }
@keyframes modpulse { 0%, 80%, 100% { background: rgba(255,255,255,.07); } 10% { background: rgba(158,192,245,.22); } }
@media (min-width: 700px) { .cap { grid-column: span 3; } }
@media (min-width: 1040px) {
  .cap { grid-column: span 2; }
  .cap.feature { grid-column: span 4; grid-row: span 2; }
}

/* Method */
.method { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: clamp(56px, 7vw, 88px); position: relative; }
.method::before { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 1.5px; background: linear-gradient(90deg, var(--blue), var(--sky)); transform-origin: left; transform: scaleX(0); transition: transform 1.8s var(--ease-out); }
.method.in::before { transform: scaleX(1); }
.step { position: relative; display: grid; gap: 12px; align-content: start; min-width: 0; }
.step .num { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 1.5px solid var(--blue); color: var(--blue); font: 500 13px/1 var(--f-mono); position: relative; z-index: 1; }
.step h3 { font-size: 21px; font-weight: 650; letter-spacing: -0.02em; margin-top: 8px; }
.step p { color: var(--muted); font-size: 15.5px; }
@media (max-width: 860px) { .method { grid-template-columns: 1fr 1fr; row-gap: 40px; } .method::before { display: none; } }
@media (max-width: 480px) { .method { grid-template-columns: 1fr; } }

.journey { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0; margin-top: clamp(64px, 8vw, 104px); border-top: 1px solid var(--line); }
.journey > li { padding: 24px 24px 0 0; display: grid; gap: 6px; }
.journey .mono { color: var(--blue); font-size: 11px; }
.journey b { font: 600 18px/1.25 var(--f-display); letter-spacing: -0.015em; }
.journey span { color: var(--muted); font-size: 14.5px; }

/* Final CTA */
.final { position: relative; margin: 0 clamp(12px, 2vw, 24px) clamp(12px, 2vw, 24px); border-radius: 44px; overflow: clip; isolation: isolate; background: radial-gradient(120% 120% at 80% 0%, #17397C 0%, var(--deep) 58%); color: #E6EEFA; padding-block: clamp(96px, 12vw, 160px) clamp(56px, 7vw, 88px); }
.final .aurora { opacity: .5; }
.final .a1 { top: -30%; right: -10%; background: radial-gradient(circle, rgba(63,123,234,.8), transparent 65%); }
.final .a2 { bottom: -40%; left: -10%; background: radial-gradient(circle, rgba(36,86,200,.7), transparent 65%); }
.final .gridlines { background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); }
.final .kicker { color: var(--sky); }
.final h2 { margin-top: 24px; font-weight: 700; font-size: clamp(2.8rem, 7vw, 6.4rem); line-height: .94; letter-spacing: -0.055em; color: #fff; max-width: 13ch; }
.final h2 em { color: var(--sky); }
.paths { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; margin-top: clamp(56px, 7vw, 88px); }
.path { grid-column: 1 / -1; border-radius: 28px; padding: clamp(26px, 3vw, 38px); display: grid; gap: 16px; align-content: start; min-width: 0; }
@media (min-width: 960px) { .path.pro { grid-column: 1 / span 7; } .path.omnia { grid-column: 8 / span 5; } }
.path.pro { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(14px); }
.path.omnia { background: transparent; border: 1px solid rgba(255,255,255,.18); }
.path .mono { color: var(--sky); font-size: 11px; }
.path h3 { font: 650 clamp(24px, 2.4vw, 30px)/1.12 var(--f-display); letter-spacing: -0.03em; color: #fff; }
.path p { color: #B8C9E6; font-size: 15.5px; }
.email { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 6px; }
.email code { font: 500 15px/1.3 var(--f-mono); padding: 14px 16px; border-radius: 14px; background: rgba(5,15,36,.5); border: 1px solid rgba(255,255,255,.12); color: #fff; user-select: all; overflow-wrap: anywhere; }
.email button { min-height: 48px; padding: 0 18px; border-radius: 14px; border: 0; background: #fff; color: var(--ink); font: 600 14px/1 var(--f-text); cursor: pointer; transition: transform .4s var(--ease-out); }
.email button:hover { transform: translateY(-2px); }
#copyMsg { color: var(--sky); font-size: 13px; min-height: 1em; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.socials a, .socials span { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); text-decoration: none; font-size: 14px; color: #fff; transition: background .4s; }
.socials a:hover { background: rgba(255,255,255,.1); }
.socials span { opacity: .55; border-style: dashed; }
.path p.quote { font: italic 400 clamp(26px, 2.6vw, 34px)/1.18 var(--f-accent); color: #fff; }
.path .btn { justify-self: start; }
.omnia-name { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.omnia-name b { font: 700 15px/1 var(--f-display); letter-spacing: .04em; color: #fff; }
.btn-line { color: #fff; border: 1px solid rgba(255,255,255,.3); background: transparent; }
.btn-line:hover { background: rgba(255,255,255,.08); }
.btn-line .arr { background: rgba(255,255,255,.1); }
.contact-person { display: none; align-items: center; gap: 14px; margin-top: 4px; }
[data-variant="con-foto"] .contact-person { display: flex; }
.avatar { width: 52px; height: 52px; border-radius: 50%; flex: none; background: radial-gradient(70% 60% at 60% 30%, #fff 0%, rgba(255,255,255,0) 60%), linear-gradient(170deg, #E6EEF9, #6F8FC4 80%); display: grid; place-items: center; font: italic 400 20px/1 var(--f-accent); color: rgba(255,255,255,.85); box-shadow: 0 0 0 3px rgba(255,255,255,.12); }
.contact-person p { font-size: 14px; color: #B8C9E6; }
.contact-person b { color: #fff; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: clamp(64px, 8vw, 104px); padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); color: #8EA6CC; padding-bottom: calc(74px + env(safe-area-inset-bottom, 0px)); }
.foot a { text-decoration: none; }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: calc(var(--rd, 0) * 90ms); }
.js .reveal.in { opacity: 1; transform: none; }
.hero-copy > * { animation: rise 1.2s var(--ease-out) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4) { animation-delay: .26s; }
.hero-copy > :nth-child(5) { animation-delay: .36s; }
.hero-copy > :nth-child(6) { animation-delay: .46s; }
.hero-visual { animation: rise-v 1.6s var(--ease-out) .25s both; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
/* The headline is the LCP element: it is painted from the first frame and only finishes its rise. */
.hero-copy > h1 { animation-name: rise-h1; }
@keyframes rise-h1 { from { opacity: .22; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes rise-v { from { opacity: 0; transform: translateY(40px) scale(.97); } to { opacity: 1; transform: none; } }
.swap { transition: opacity .45s var(--ease-out), transform .45s var(--ease-out), filter .45s; }
.swap.out { opacity: 0; transform: translateY(10px); filter: blur(6px); }

/* ================= Living world: ambient background ================= */
@property --x1 { syntax: '<length-percentage>'; inherits: true; initial-value: 85vw; }
@property --y1 { syntax: '<length-percentage>'; inherits: true; initial-value: 8vh; }
@property --x2 { syntax: '<length-percentage>'; inherits: true; initial-value: 8vw; }
@property --y2 { syntax: '<length-percentage>'; inherits: true; initial-value: 92vh; }
@property --x3 { syntax: '<length-percentage>'; inherits: true; initial-value: 55vw; }
@property --y3 { syntax: '<length-percentage>'; inherits: true; initial-value: 48vh; }
@property --x4 { syntax: '<length-percentage>'; inherits: true; initial-value: 20vw; }
@property --y4 { syntax: '<length-percentage>'; inherits: true; initial-value: 6vh; }
@property --c1 { syntax: '<color>'; inherits: true; initial-value: rgba(141,180,246,.55); }
@property --c2 { syntax: '<color>'; inherits: true; initial-value: rgba(201,218,247,.75); }
@property --c3 { syntax: '<color>'; inherits: true; initial-value: rgba(63,123,234,.16); }
@property --c4 { syntax: '<color>'; inherits: true; initial-value: rgba(214,226,250,0); }
@property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

.world { transition: --x1 2.8s var(--ease-io), --y1 2.8s var(--ease-io), --x2 2.8s var(--ease-io), --y2 2.8s var(--ease-io), --x3 2.8s var(--ease-io), --y3 2.8s var(--ease-io), --x4 2.8s var(--ease-io), --y4 2.8s var(--ease-io), --c1 2.8s, --c2 2.8s, --c3 2.8s, --c4 2.8s; }
.world[data-scene="proceso"] { --x1: 12vw; --y1: 22vh; --c1: rgba(141,180,246,.42); --x2: 92vw; --y2: 78vh; --c2: rgba(190,208,246,.7); --x3: 46vw; --y3: 62vh; --c3: rgba(63,123,234,.12); --x4: 82vw; --y4: 12vh; --c4: rgba(214,226,250,.6); }
.world[data-scene="casos"] { --x1: 94vw; --y1: 42vh; --c1: rgba(141,180,246,.5); --x2: 4vw; --y2: 28vh; --c2: rgba(201,218,247,.8); --x3: 40vw; --y3: 92vh; --c3: rgba(63,123,234,.15); --x4: 62vw; --y4: 4vh; --c4: rgba(170,198,246,.35); }
.world[data-scene="capacidades"] { --x1: 8vw; --y1: 72vh; --c1: rgba(141,180,246,.48); --x2: 88vw; --y2: 18vh; --c2: rgba(196,214,248,.75); --x3: 60vw; --y3: 58vh; --c3: rgba(63,123,234,.13); --x4: 30vw; --y4: 8vh; --c4: rgba(214,226,250,.5); }
.world[data-scene="trayectoria"] { --x1: 52vw; --y1: 2vh; --c1: rgba(141,180,246,.45); --x2: 84vw; --y2: 96vh; --c2: rgba(201,218,247,.7); --x3: 8vw; --y3: 50vh; --c3: rgba(63,123,234,.14); --x4: 90vw; --y4: 40vh; --c4: rgba(214,226,250,.45); }
.world[data-scene="contacto"] { --c1: rgba(141,180,246,.3); --c3: rgba(63,123,234,.2); }

.world { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; background: radial-gradient(120% 80% at 50% -10%, #FFFFFF 0%, var(--paper) 55%, #E8EEF8 100%); }
.halo { position: absolute; left: 0; top: 0; width: 72vmax; height: 72vmax; margin: -36vmax 0 0 -36vmax; will-change: transform; }
.halo::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, var(--hc) 0%, transparent 62%); animation: hdrift 26s ease-in-out infinite alternate; }
.halo.h1 { transform: translate(var(--x1), var(--y1)); --hc: var(--c1); }
.halo.h2 { transform: translate(var(--x2), var(--y2)); --hc: var(--c2); width: 60vmax; height: 60vmax; margin: -30vmax 0 0 -30vmax; }
.halo.h2::before { animation-duration: 32s; animation-delay: -8s; }
.halo.h3 { transform: translate(var(--x3), var(--y3)); --hc: var(--c3); width: 46vmax; height: 46vmax; margin: -23vmax 0 0 -23vmax; }
.halo.h3::before { animation: hbreathe 10s ease-in-out infinite; }
.halo.h4 { transform: translate(var(--x4), var(--y4)); --hc: var(--c4); width: 52vmax; height: 52vmax; margin: -26vmax 0 0 -26vmax; }
.halo.h4::before { animation-duration: 38s; animation-delay: -14s; }
@keyframes hdrift { 0% { transform: translate3d(-4%, -3%, 0) scale(1); } 100% { transform: translate3d(5%, 4%, 0) scale(1.12); } }
@keyframes hbreathe { 0%, 100% { transform: scale(.9); opacity: .65; } 50% { transform: scale(1.1); opacity: 1; } }
.w-grid { position: absolute; inset: -96px; background-image: linear-gradient(rgba(6,19,42,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(6,19,42,.04) 1px, transparent 1px); background-size: 96px 96px; animation: gridpan 70s linear infinite; -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000 25%, transparent 80%); mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000 25%, transparent 80%); }
@keyframes gridpan { to { transform: translate3d(96px, 96px, 0); } }
#world { position: absolute; left: 0; top: 0; }
.w-glare { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.35) 0%, transparent 24%, transparent 80%, rgba(232,238,248,.4) 100%); }

/* Hero atmosphere */
.hero { background: transparent; }
.hero-atmos { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.beam { position: absolute; top: -40%; left: 0; width: 34%; height: 180%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.6) 50%, transparent); transform: rotate(16deg) translateX(-120%); animation: beam 15s var(--ease-io) infinite; }
@keyframes beam { 0% { transform: rotate(16deg) translateX(-140%); } 60%, 100% { transform: rotate(16deg) translateX(420%); } }
.orbits { position: absolute; right: -10%; top: 4%; width: min(74vw, 940px); aspect-ratio: 1; }
.orbits span { position: absolute; border-radius: 50%; border: 1px dashed rgba(36,86,200,.14); }
.orbits .o1 { inset: 0; animation: spin 140s linear infinite; }
.orbits .o2 { inset: 14%; border-style: solid; border-color: rgba(36,86,200,.08); animation: spin 90s linear infinite reverse; }
.orbits .o3 { inset: 30%; animation: spin 70s linear infinite; }
.orbits .o1::after, .orbits .o2::after, .orbits .o3::after { content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--blue-2); box-shadow: 0 0 0 5px rgba(63,123,234,.14), 0 0 18px rgba(63,123,234,.5); }
.orbits .o2::after { top: auto; bottom: -4px; width: 6px; height: 6px; margin-left: -3px; }
.orbits .o3::after { width: 5px; height: 5px; margin-left: -2.5px; top: -2.5px; }
@keyframes spin { to { transform: rotate(360deg); } }
.pill-text { display: inline-block; transition: opacity .45s var(--ease-out), transform .45s var(--ease-out); }
.pill-text.out { opacity: 0; transform: translateY(6px); }
.marquee { background: rgba(255,255,255,.62); backdrop-filter: none; }

/* Manifesto spotlight */
.spot-sec { isolation: isolate; }
.spot-sec::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; width: min(1100px, 140vw); aspect-ratio: 2 / 1; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(255,255,255,.85), rgba(255,255,255,0)); animation: softpulse 11s ease-in-out infinite; }
@keyframes softpulse { 0%, 100% { opacity: .55; transform: translate(-50%, -50%) scale(.94); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.04); } }

/* Living dividers */
.divider { position: relative; height: 1px; background: linear-gradient(90deg, transparent, rgba(36,86,200,.22) 20%, rgba(36,86,200,.22) 80%, transparent); overflow: hidden; }
.divider span { position: absolute; top: 0; left: 0; width: 22%; height: 1px; background: linear-gradient(90deg, transparent, var(--blue-2), transparent); animation: divrun 8s var(--ease-io) infinite; }
@keyframes divrun { 0% { transform: translateX(-100%); } 70%, 100% { transform: translateX(460%); } }
.divider i { display: none; }
.wrap[aria-hidden="true"] { position: relative; }
.wrap[aria-hidden="true"]::after { content: ""; position: absolute; left: 50%; top: -4px; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--blue); animation: nodepulse 3.2s ease-in-out infinite; }
@keyframes nodepulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(63,123,234,.35); } 50% { box-shadow: 0 0 0 8px rgba(63,123,234,0); } }

/* Bands: soft alternating grounds with their own light */
.band { isolation: isolate; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(180deg, rgba(228,236,248,0) 0%, rgba(226,235,249,.72) 14%, rgba(226,235,249,.72) 86%, rgba(228,236,248,0) 100%); }
.band::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: radial-gradient(rgba(36,86,200,.13) 1px, transparent 1.2px); background-size: 26px 26px; -webkit-mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent); mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent); opacity: .55; }
.band-tra::before { background: linear-gradient(180deg, rgba(228,236,248,0) 0%, rgba(219,231,250,.8) 18%, rgba(236,242,251,.75) 82%, rgba(228,236,248,0) 100%); }
.band-tra::after { background-image: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.7) 50%, transparent 60%); background-size: 260% 100%; animation: bandsheen 14s var(--ease-io) infinite; -webkit-mask-image: none; mask-image: none; opacity: 1; }
@keyframes bandsheen { 0% { background-position: 130% 0; } 60%, 100% { background-position: -30% 0; } }

/* Process: scanline + living rail */
.scan { position: absolute; inset: 0; overflow: hidden; z-index: -1; pointer-events: none; }
.scan i { position: absolute; left: 0; right: 0; top: -18%; height: 18%; background: linear-gradient(180deg, transparent, rgba(63,123,234,.07) 50%, transparent); animation: scanmove 13s linear infinite; }
@keyframes scanmove { to { transform: translateY(680%); } }
.p-rail { overflow: visible; }
.p-rail::after { content: ""; position: absolute; left: -2px; right: -2px; top: 0; height: 9%; border-radius: 4px; background: linear-gradient(180deg, transparent, rgba(63,123,234,.85), transparent); animation: railrun 6s var(--ease-io) infinite; }
@keyframes railrun { 0% { transform: translateY(-100%); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { transform: translateY(1100%); opacity: 0; } }
.p-rail i::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--blue-2); box-shadow: 0 0 0 6px rgba(63,123,234,.16), 0 0 20px rgba(63,123,234,.6); animation: hbreathe 2.6s ease-in-out infinite; }
.q { animation: qglow 12s ease-in-out infinite; }
.q:nth-child(2) { animation-delay: 3s; } .q:nth-child(3) { animation-delay: 6s; } .q:nth-child(4) { animation-delay: 9s; }
@keyframes qglow { 0%, 20%, 100% { box-shadow: 0 20px 40px -30px rgba(6,19,42,.45); border-color: var(--glass-line); } 8% { box-shadow: 0 26px 44px -26px rgba(36,86,200,.5), 0 0 0 1.5px rgba(63,123,234,.55); border-color: rgba(63,123,234,.4); } }
.rule { position: relative; isolation: isolate; }
.rule::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(63,123,234,.2), transparent 75%); opacity: 0; animation: rowglow 9s ease-in-out infinite; }
.rule:nth-child(3)::before { animation-delay: 4.5s; }
@keyframes rowglow { 0%, 45%, 100% { opacity: 0; } 15%, 30% { opacity: 1; } }
.rules-bar span:first-child::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--sky); vertical-align: 1px; animation: hbreathe 2.4s ease-in-out infinite; }

/* Cases: living gradient border + glint over captures + module wave */
.case { border: 1.5px solid transparent; background: linear-gradient(180deg, rgba(255,255,255,.93), rgba(247,250,254,.82)) padding-box, conic-gradient(from var(--ang), rgba(63,123,234,0) 0deg, rgba(63,123,234,.6) 50deg, rgba(158,192,245,0) 115deg, rgba(63,123,234,0) 200deg, rgba(36,86,200,.38) 255deg, rgba(63,123,234,0) 315deg) border-box; animation: borderspin 14s linear infinite; }
.case.rev { animation-delay: -5s; }
.case.dark { background: radial-gradient(120% 90% at 85% 0%, #14336F 0%, var(--deep) 60%) padding-box, conic-gradient(from var(--ang), rgba(158,192,245,0) 0deg, rgba(158,192,245,.7) 55deg, rgba(158,192,245,0) 120deg, rgba(158,192,245,0) 210deg, rgba(158,192,245,.4) 260deg, rgba(158,192,245,0) 320deg) border-box; animation-delay: -9s; }
@keyframes borderspin { to { --ang: 360deg; } }
.layer.l-front::after, .screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.45) 50%, transparent 62%); transform: translateX(-130%); animation: glint 11s var(--ease-io) infinite; }
.screen { position: relative; }
.case.rev .layer.l-front::after { animation-delay: 3.5s; }
.screen.lift::after { animation-delay: 6s; }
.stage-b .mini::after { animation-delay: 2s; }
@keyframes glint { 0%, 64% { transform: translateX(-130%); } 84%, 100% { transform: translateX(130%); } }
.modules span { animation: chipwave 10s ease-in-out infinite; animation-delay: calc(var(--i, 0) * .38s); }
@keyframes chipwave { 0%, 14%, 100% { background-color: var(--paper-2); border-color: rgba(10,35,80,.06); } 6% { background-color: #DCE7FB; border-color: rgba(63,123,234,.35); } }
.case.dark .modules span { animation-name: chipwave-d; }
@keyframes chipwave-d { 0%, 14%, 100% { background-color: rgba(255,255,255,.06); border-color: rgba(255,255,255,.1); } 6% { background-color: rgba(158,192,245,.2); border-color: rgba(158,192,245,.45); } }
.other { background: linear-gradient(160deg, rgba(255,255,255,.9), rgba(238,244,252,.78)); }
.other::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.7) 50%, transparent 60%); transform: translateX(-130%); animation: glint 13s var(--ease-io) infinite; }
.other:nth-child(2)::before { animation-delay: 5s; }

/* Capabilities */
.cap { background: linear-gradient(165deg, rgba(255,255,255,.92), rgba(241,246,253,.8)); }
.cap.feature { position: relative; isolation: isolate; overflow: hidden; }
.cap.feature::before { content: ""; position: absolute; inset: -40%; z-index: -1; background: conic-gradient(from var(--ang), transparent 0deg, rgba(63,123,234,.35) 60deg, transparent 140deg, transparent 360deg); animation: borderspin 16s linear infinite; opacity: .7; }
.cap .ico { animation: icobreathe 6s ease-in-out infinite; }
.cap:nth-child(2) .ico { animation-delay: 1s; } .cap:nth-child(3) .ico { animation-delay: 2s; } .cap:nth-child(4) .ico { animation-delay: 3s; } .cap:nth-child(5) .ico { animation-delay: 4s; } .cap:nth-child(6) .ico { animation-delay: 5s; }
@keyframes icobreathe { 0%, 70%, 100% { box-shadow: 0 0 0 0 rgba(63,123,234,0); } 20% { box-shadow: 0 0 0 7px rgba(63,123,234,.12); } }

/* Trajectory: living timeline */
.journey { position: relative; border-top: 0 !important; }
.journey::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1.5px; background: linear-gradient(90deg, var(--blue), var(--sky) 65%, rgba(158,192,245,.15)); }
.journey::after { content: "";  position: absolute; top: -2px; left: 0; width: 16%; height: 5px; border-radius: 5px; background: linear-gradient(90deg, transparent, var(--blue-2), #fff, transparent); animation: tlrun 7s var(--ease-io) infinite; }
@keyframes tlrun { 0% { transform: translateX(-100%); opacity: 0; } 10% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translateX(620%); opacity: 0; } }
.journey > li { position: relative; padding-top: 34px !important; }
.journey > li::before { content: ""; position: absolute; left: 0; top: -6px; width: 13px; height: 13px; border-radius: 50%; background: var(--paper); border: 2px solid var(--blue); animation: nodepulse 3.6s ease-in-out infinite; }
.journey > li:nth-of-type(2)::before { animation-delay: 1.2s; } .journey > li:nth-of-type(3)::before { animation-delay: 2.4s; }

/* Contact: starfield + breathing glow */
.final .stars { position: absolute; inset: -400px; opacity: .55; background-image: radial-gradient(1.3px 1.3px at 12% 18%, rgba(255,255,255,.9), transparent 60%), radial-gradient(1px 1px at 38% 72%, rgba(255,255,255,.7), transparent 60%), radial-gradient(1.6px 1.6px at 64% 34%, rgba(158,192,245,.9), transparent 60%), radial-gradient(1px 1px at 82% 82%, rgba(255,255,255,.6), transparent 60%), radial-gradient(1.2px 1.2px at 92% 12%, rgba(255,255,255,.8), transparent 60%), radial-gradient(1px 1px at 22% 52%, rgba(158,192,245,.7), transparent 60%); background-size: 360px 360px; animation: starpan 90s linear infinite; }
.final .stars.s2 { opacity: .35; background-size: 520px 520px; animation-duration: 140s; animation-direction: reverse; }
@keyframes starpan { to { transform: translate3d(360px, -180px, 0); } }
.final-glow { position: absolute; left: 6%; top: 8%; width: min(760px, 90vw); aspect-ratio: 1.6; border-radius: 50%; background: radial-gradient(closest-side, rgba(63,123,234,.42), transparent); animation: hbreathe 9s ease-in-out infinite; }

/* Mobile richness */
@media (max-width: 700px) {
  .orbits { right: -45%; top: 40%; width: 130vw; }
  .beam { width: 60%; }
  .band::before { background: linear-gradient(180deg, rgba(228,236,248,0) 0%, rgba(222,232,249,.85) 8%, rgba(222,232,249,.85) 92%, rgba(228,236,248,0) 100%); }
  .case { box-shadow: 0 40px 70px -40px rgba(6,19,42,.4), 0 0 0 1px rgba(255,255,255,.6) inset; }
  .phase { padding-bottom: 64px; }
  .artifact .questions { gap: 10px; }
  .q { font-size: 14.5px; padding: 12px 14px; }
  .cap { padding: 24px; }
  .spot-sec::before { width: 160vw; aspect-ratio: 1; }
}

/* ================= Enfoque: Operación → Reglas → Sistema ================= */
.enfoque-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 28px; row-gap: 44px; align-items: center; }
.enfoque-copy { grid-column: 1 / -1; min-width: 0; }
.ors-panel { grid-column: 1 / -1; min-width: 0; margin: 0; }
@media (min-width: 1000px) {
  .enfoque-copy { grid-column: 1 / span 6; }
  .ors-panel { grid-column: 7 / span 6; }
  .enfoque .manifesto p.big { font-size: clamp(1.7rem, 2.55vw, 2.55rem); }
}
.ors-legend { list-style: none; margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); counter-reset: lg; }
.ors-legend li { padding: 16px 16px 0 0; display: grid; gap: 4px; min-width: 0; }
.ors-legend li + li { padding-left: 16px; border-left: 1px solid var(--line); }
.ors-legend b { font: 650 15px/1.2 var(--f-display); color: var(--ink); }
.ors-legend b::before { counter-increment: lg; content: "0" counter(lg) "  "; font: 500 11px/1 var(--f-mono); color: var(--blue); letter-spacing: .1em; white-space: pre; }
.ors-legend span { font-size: 14px; color: var(--muted); line-height: 1.45; }
.ors-panel { position: relative; padding: clamp(18px, 2.4vw, 28px); border-radius: 30px; background: linear-gradient(160deg, rgba(255,255,255,.9), rgba(234,241,252,.75)); border: 1px solid var(--glass-line); box-shadow: 0 60px 100px -70px rgba(6,19,42,.55), inset 0 1px 0 rgba(255,255,255,.9); perspective: 1200px; isolation: isolate; overflow: clip; }
.ors-panel::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(36,86,200,.12) 1px, transparent 1.2px); background-size: 20px 20px; -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 30%, transparent 80%); mask-image: radial-gradient(ellipse at 50% 50%, #000 30%, transparent 80%); }
.ors-tilt { transform: rotateX(calc(var(--rx, 0) * 1deg)) rotateY(calc(var(--ry, 0) * 1deg)); transition: transform .9s var(--ease-out); }
.ors { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(28px, 4vw, 56px); align-items: center; }
.ors-links { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.ors-col { position: relative; z-index: 1; display: grid; gap: 12px; align-content: center; min-width: 0; }
.ors-h { font-size: 10.5px; color: var(--muted); margin: 0 0 2px; display: flex; gap: 8px; }
.ors-h b { color: var(--blue); font-weight: 500; }
.ors-node { position: relative; display: flex; align-items: center; gap: 9px; width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(10,35,80,.09); background: #fff; font: 600 14px/1.2 var(--f-text); color: var(--ink); text-align: left; cursor: pointer; box-shadow: 0 12px 26px -20px rgba(6,19,42,.45); transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .5s, opacity .5s, background-color .5s; }
.ors-node i { width: 8px; height: 8px; flex: none; border-radius: 50%; background: #BFCBDD; transition: background .4s, box-shadow .4s; }
.ors-col[data-col="1"] .ors-node { background: linear-gradient(160deg, #F3F7FE, #E6EEFB); }
.ors-col[data-col="1"] .ors-node i { background: #8FB0E8; }
.ors-col[data-col="2"] .ors-node { background: linear-gradient(160deg, #0E2A5C, #123A82); color: #fff; border-color: rgba(255,255,255,.08); box-shadow: 0 16px 30px -20px rgba(10,35,80,.8); }
.ors-col[data-col="2"] .ors-node i { background: #6E93D6; }
.ors-node:hover { transform: translateY(-2px); }
.ors-node.hit { border-color: rgba(63,123,234,.6); box-shadow: 0 0 0 4px rgba(63,123,234,.14), 0 16px 30px -18px rgba(36,86,200,.6); }
.ors-node.hit i { background: var(--blue-2); box-shadow: 0 0 0 4px rgba(63,123,234,.22); }
.ors-col[data-col="2"] .ors-node.hit i { background: #BFD5FF; box-shadow: 0 0 0 4px rgba(191,213,255,.25); }
.ors.focusing .ors-node:not(.rel) { opacity: .32; }
.ors.focusing .ors-node.self { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(63,123,234,.2), 0 16px 30px -18px rgba(36,86,200,.6); }
.ors-links path { fill: none; stroke: rgba(36,86,200,.2); stroke-width: 1.3; transition: stroke .5s, stroke-width .5s, opacity .5s; }
.ors-links path.breath { animation: lbreathe 7s ease-in-out infinite; }
@keyframes lbreathe { 0%, 100% { stroke-opacity: .55; } 50% { stroke-opacity: 1.6; } }
.ors-links path.live { stroke: rgba(63,123,234,.6); stroke-width: 1.9; }
.ors.focusing .ors-links path { opacity: .12; }
.ors.focusing .ors-links path.rel { opacity: 1; stroke: rgba(36,86,200,.8); stroke-width: 2.1; }
.ors-links .sig { fill: var(--blue-2); }
.ors-links .sig-halo { fill: rgba(63,123,234,.18); }
.ors-cap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.ors-cap .mono { font-size: 10.5px; color: var(--muted); }
.ors-hint { font-size: 13px; color: var(--muted); }
@media (max-width: 699px) {
  .ors { grid-template-columns: 1fr; row-gap: 40px; }
  .ors-col { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
  .ors-h { width: 100%; justify-content: center; margin-bottom: 4px; }
  .ors-node { width: auto; min-height: 42px; font-size: 13.5px; padding: 9px 13px; }
  .ors-node[data-m="hide"] { display: none; }
  .ors-legend { grid-template-columns: 1fr; }
  .ors-legend li + li { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .ors-legend li { padding: 12px 0; }
}

/* ================= Business system showcase ================= */
.bento { grid-template-columns: 1fr; }
.cap { grid-column: auto !important; grid-row: auto !important; }
@media (min-width: 600px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bento .cap:last-child { grid-column: 1 / -1 !important; } }
@media (min-width: 860px) { .bento { grid-template-columns: repeat(3, minmax(0, 1fr)); } .bento .cap:last-child { grid-column: span 2 !important; } }
@media (min-width: 1160px) { .bento { grid-template-columns: repeat(5, minmax(0, 1fr)); } .bento .cap:last-child { grid-column: auto !important; } }

.biz { position: relative; margin-top: clamp(44px, 6vw, 72px); padding: clamp(20px, 3.4vw, 48px); border-radius: clamp(26px, 3vw, 40px); background: radial-gradient(120% 100% at 90% 0%, #163A80 0%, #0A2152 45%, var(--deep) 100%); color: #E6EEFA; isolation: isolate; overflow: clip; box-shadow: 0 70px 120px -70px rgba(5,15,36,.9); }
.biz-glow { position: absolute; z-index: -1; right: -10%; top: -30%; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(63,123,234,.45), transparent); animation: hbreathe 12s ease-in-out infinite; }
.biz::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 55%); mask-image: linear-gradient(180deg, #000, transparent 55%); }
.biz-intro { display: grid; grid-template-columns: 1fr; gap: 18px 40px; margin-bottom: clamp(24px, 3vw, 36px); }
@media (min-width: 900px) { .biz-intro { grid-template-columns: 1.1fr 1fr; align-items: end; } }
.biz-kicker { color: var(--sky); font-size: 11px; }
.biz h3 { margin-top: 14px; font-weight: 700; font-size: clamp(1.8rem, 3.2vw, 2.9rem); line-height: 1.02; letter-spacing: -0.04em; color: #fff; max-width: 18ch; }
.biz-intro p { color: #B9CAE6; font-size: 16px; }
.biz-tech { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.biz-tech span { font: 500 11.5px/1 var(--f-mono); padding: 7px 9px; border-radius: 8px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); color: #DCE7F8; }
.biz-disclaimer { margin-top: 18px; font-size: 10.5px; color: #8EA6CC; text-align: center; }

/* App window */
.app { --a-bg: #F5F8FC; --a-card: #FFFFFF; --a-line: #E3E9F2; --a-ink: #0B1A33; --a-mut: #5A6880; --a-side: #0B1F44; --ok: #13795B; --ok-bg: #E3F4EC; --warn: #8A5A00; --warn-bg: #FFF1D6; --rev: #1E4FB0; --rev-bg: #E3ECFC; --bad: #A12B2B; --bad-bg: #FBE6E6;
  position: relative; border-radius: 20px; overflow: clip; background: var(--a-bg); color: var(--a-ink); box-shadow: 0 40px 80px -40px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.12); font-size: 14px; }
.app-top { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: #fff; border-bottom: 1px solid var(--a-line); flex-wrap: wrap; }
.app-dots { display: flex; gap: 6px; }
.app-dots i { width: 9px; height: 9px; border-radius: 50%; background: #D7DEE8; }
.app-title { font: 650 14px/1 var(--f-display); letter-spacing: -0.01em; }
.app-title em { font-style: normal; font-weight: 500; color: var(--a-mut); }
.app-badge { font: 500 10.5px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; padding: 6px 8px; border-radius: 6px; background: #FFF1D6; color: #7A4F00; }
.app-top-actions { margin-left: auto; display: flex; gap: 8px; }
.app-btn { min-height: 34px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--a-line); background: #fff; color: var(--a-ink); font: 600 12.5px/1 var(--f-text); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: background .3s, border-color .3s; }
.app-btn:hover { background: var(--a-bg); }
.app-auto[aria-pressed="true"] { background: #EAF1FE; border-color: #C5D6F6; color: #1B4AAB; }
.ap-ico { width: 10px; height: 10px; position: relative; }
.app-auto[aria-pressed="true"] .ap-ico::before, .app-auto[aria-pressed="true"] .ap-ico::after { content: ""; position: absolute; top: 0; width: 3px; height: 10px; background: currentColor; border-radius: 1px; }
.app-auto[aria-pressed="true"] .ap-ico::before { left: 1px; } .app-auto[aria-pressed="true"] .ap-ico::after { right: 1px; }
.app-auto[aria-pressed="false"] .ap-ico::before { content: ""; position: absolute; left: 1px; top: 0; border-left: 9px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.app-auto:disabled { opacity: .5; cursor: not-allowed; }
.app-progress { height: 2px; background: var(--a-line); }
.app-progress i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #3F7BEA, #7FA8F2); transform-origin: left; transform: scaleX(0); transition: transform .12s linear; }
.app-body { display: grid; grid-template-columns: 1fr; }
@media (min-width: 900px) { .app-body { grid-template-columns: 196px minmax(0, 1fr); } }

/* Tabs */
.app-tabs { position: relative; display: flex; gap: 4px; padding: 8px; background: var(--a-side); overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.app-tabs::-webkit-scrollbar { display: none; }
.app-tabs [role="tab"] { position: relative; z-index: 1; flex: none; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 14px; border: 0; border-radius: 10px; background: transparent; color: #A9BBDA; font: inherit; text-align: left; cursor: pointer; scroll-snap-align: start; transition: color .35s, background .35s; }
.app-tabs [role="tab"] svg { width: 19px; height: 19px; flex: none; }
.app-tabs [role="tab"] b { display: block; font: 600 13.5px/1.2 var(--f-text); color: inherit; white-space: nowrap; }
.app-tabs [role="tab"] small { display: none; font-size: 11.5px; color: #7F95BA; }
.app-tabs [role="tab"]:hover { color: #fff; }
.app-tabs [role="tab"][aria-selected="true"] { color: #fff; }
.app-tabs [role="tab"]:focus-visible { outline: 2px solid #9EC0F5; outline-offset: -2px; }
.tab-ind { position: absolute; z-index: 0; left: 0; top: 0; border-radius: 10px; background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); transition: transform .55s var(--ease-out), width .55s var(--ease-out), height .55s var(--ease-out); }
.tab-ind::before { content: ""; position: absolute; background: #6E9BF0; border-radius: 2px; }
@media (max-width: 899px) { .tab-ind::before { left: 12px; right: 12px; bottom: 3px; height: 2px; } }
@media (min-width: 900px) {
  .app-tabs { flex-direction: column; padding: 14px 10px; overflow: visible; }
  .app-tabs [role="tab"] { min-height: 56px; }
  .app-tabs [role="tab"] small { display: block; }
  .tab-ind::before { left: 0; top: 12px; bottom: 12px; width: 3px; }
}

/* Views (stacked in one cell: crossfade without an empty frame, stable height) */
.app-views { display: grid; min-width: 0; }
.view { grid-area: 1 / 1; min-width: 0; padding: clamp(14px, 2vw, 22px); opacity: 0; visibility: hidden; transform: translateY(10px) scale(.995); transition: opacity .55s var(--ease-out), transform .7s var(--ease-out), visibility 0s linear .55s; }
.view.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .55s var(--ease-out), transform .7s var(--ease-out), visibility 0s; }
.v-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 20px; margin-bottom: 16px; }
.v-head h4 { margin: 0; font: 700 18px/1.2 var(--f-display); letter-spacing: -0.02em; }
.v-head p { margin-top: 4px; font-size: 13px; color: var(--a-mut); }
.v-kpis { display: flex; gap: 8px; flex-wrap: wrap; }
.kpi-mini { padding: 8px 12px; border-radius: 10px; background: var(--a-card); border: 1px solid var(--a-line); }
.kpi-mini span { display: block; font-size: 11.5px; color: var(--a-mut); }
.kpi-mini b { display: block; font: 700 15px/1.25 var(--f-display); font-variant-numeric: tabular-nums; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips-scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-bottom: 14px; padding-bottom: 2px; }
.chips-scroll::-webkit-scrollbar { display: none; }
.chip-btn { flex: none; min-height: 36px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--a-line); background: #fff; color: var(--a-ink); font: 600 12.5px/1 var(--f-text); cursor: pointer; display: inline-flex; align-items: center; gap: 7px; transition: background .3s, color .3s, border-color .3s; }
.chip-btn em { font-style: normal; font-weight: 500; color: var(--a-mut); font-variant-numeric: tabular-nums; }
.chip-btn[aria-pressed="true"] { background: var(--a-side); color: #fff; border-color: var(--a-side); }
.chip-btn[aria-pressed="true"] em { color: #A9BBDA; }
.pulse-once { animation: pulseonce .9s var(--ease-out); }
@keyframes pulseonce { 0% { box-shadow: 0 0 0 0 rgba(63,123,234,.5); } 100% { box-shadow: 0 0 0 10px rgba(63,123,234,0); } }

/* CRM */
.crm-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 1200px) { .crm-grid { grid-template-columns: minmax(0, 1fr) 232px; } }
.kanban { display: grid; grid-template-columns: repeat(4, minmax(170px, 1fr)); gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; padding-bottom: 4px; }
.k-col { scroll-snap-align: start; min-width: 0; background: #EDF2F9; border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 260px; }
.k-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 2px 4px 4px; }
.k-head b { font: 650 13px/1.2 var(--f-display); }
.k-head span { font-size: 11.5px; color: var(--a-mut); font-variant-numeric: tabular-nums; }
.k-col[data-stage="3"] { background: #E5F3EC; }
.lead { position: relative; background: #fff; border: 1px solid var(--a-line); border-radius: 12px; padding: 10px 11px; display: grid; gap: 5px; box-shadow: 0 6px 16px -12px rgba(11,26,51,.35); transition: box-shadow .4s, border-color .4s; }
.lead.spot { border-color: #8FB0EE; box-shadow: 0 0 0 3px rgba(63,123,234,.18), 0 10px 20px -12px rgba(30,79,176,.5); }
.lead b { font: 650 13.5px/1.25 var(--f-text); }
.lead .who { font-size: 12px; color: var(--a-mut); }
.lead .val { font: 700 14px/1.2 var(--f-display); font-variant-numeric: tabular-nums; }
.lead .next { font-size: 11.5px; color: var(--rev); display: flex; gap: 5px; align-items: center; }
.lead .next::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.lead .won { font-size: 12px; color: var(--ok); font-weight: 600; }
.lead button { justify-self: start; margin-top: 2px; min-height: 32px; padding: 0 10px; border-radius: 8px; border: 1px solid #C8D6EE; background: #F3F7FE; color: #1B4AAB; font: 600 12px/1 var(--f-text); cursor: pointer; transition: background .3s; }
.lead button:hover { background: #E3ECFC; }
.crm-acts { background: #fff; border: 1px solid var(--a-line); border-radius: 14px; padding: 12px; }
.crm-acts h5, .log h5 { margin: 0 0 8px; font: 650 13px/1.2 var(--f-display); }
.crm-acts ul, .log ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.crm-acts li { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; padding: 8px 4px; border-top: 1px solid var(--a-line); font-size: 12.5px; }
.crm-acts li:first-child { border-top: 0; }
.crm-acts li .due { grid-row: span 2; font: 600 11px/1 var(--f-mono); color: var(--rev); background: var(--rev-bg); padding: 5px 6px; border-radius: 6px; align-self: start; }
.crm-acts li span { color: var(--a-mut); }

/* POS */
.pos-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 760px) { .pos-grid { grid-template-columns: minmax(0, 1fr) 300px; } }
.catalog { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-content: start; }
@media (min-width: 1100px) { .catalog { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.prod { position: relative; display: grid; gap: 4px; text-align: left; padding: 12px; min-height: 92px; border-radius: 14px; border: 1px solid var(--a-line); background: #fff; color: var(--a-ink); font: inherit; cursor: pointer; transition: transform .35s var(--ease-out), border-color .3s, box-shadow .3s; }
.prod:hover { transform: translateY(-2px); border-color: #BFD0EE; box-shadow: 0 10px 22px -16px rgba(30,79,176,.45); }
.prod .cat { font: 500 10.5px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--a-mut); }
.prod b { font: 650 14px/1.25 var(--f-text); }
.prod .price { font: 700 15px/1.2 var(--f-display); font-variant-numeric: tabular-nums; }
.prod .add { position: absolute; right: 10px; bottom: 10px; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: #EAF1FE; color: #1B4AAB; font-weight: 700; }
.prod .qty { position: absolute; right: 10px; top: 10px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--a-side); color: #fff; font: 700 11.5px/22px var(--f-text); text-align: center; }
.prod.tap { animation: tap .45s var(--ease-out); }
@keyframes tap { 0% { transform: scale(1); } 40% { transform: scale(.97); } 100% { transform: scale(1); } }
.ticket { background: #fff; border: 1px solid var(--a-line); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.t-head { display: flex; justify-content: space-between; align-items: baseline; }
.t-head b { font: 650 14px/1.2 var(--f-display); }
.t-head span { font-size: 12px; color: var(--a-mut); }
.t-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; min-height: 164px; align-content: start; }
.t-empty { padding: 22px 8px; text-align: center; font-size: 13px; color: var(--a-mut); border: 1px dashed var(--a-line); border-radius: 12px; }
.t-line { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; padding: 6px 2px; border-bottom: 1px solid var(--a-line); animation: lineIn .45s var(--ease-out); }
@keyframes lineIn { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: none; } }
.t-line .nm { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--a-line); border-radius: 8px; overflow: hidden; }
.stepper button { width: 32px; height: 32px; border: 0; background: #F5F8FC; color: var(--a-ink); font: 700 15px/1 var(--f-text); cursor: pointer; }
.stepper button:hover { background: #E8EEF7; }
.stepper span { min-width: 24px; text-align: center; font: 600 13px/1 var(--f-text); font-variant-numeric: tabular-nums; }
.t-line .lt { font: 650 13px/1 var(--f-display); font-variant-numeric: tabular-nums; min-width: 64px; text-align: right; }
.t-sum { margin: 0; display: grid; gap: 4px; }
.t-sum div { display: flex; justify-content: space-between; font-size: 13px; color: var(--a-mut); }
.t-sum dt, .t-sum dd { margin: 0; font-variant-numeric: tabular-nums; }
.t-sum .t-total { color: var(--a-ink); font: 700 17px/1.3 var(--f-display); padding-top: 6px; border-top: 1px solid var(--a-line); }
.pay { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.pay button { min-height: 38px; border-radius: 9px; border: 1px solid var(--a-line); background: #fff; font: 600 12px/1.1 var(--f-text); color: var(--a-ink); cursor: pointer; padding: 0 4px; }
.pay button[aria-checked="true"] { border-color: var(--a-side); background: var(--a-side); color: #fff; }
.charge { min-height: 46px; border: 0; border-radius: 11px; background: linear-gradient(135deg, #0E2A5C, #2456C8); color: #fff; font: 650 14.5px/1 var(--f-text); cursor: pointer; transition: opacity .3s, transform .3s; font-variant-numeric: tabular-nums; }
.charge:disabled { opacity: .45; cursor: not-allowed; }
.charge.busy { opacity: .8; }
.charge.done { background: linear-gradient(135deg, #0E5A43, #13795B); }
.t-status { min-height: 18px; font-size: 12.5px; color: var(--a-mut); text-align: center; }

/* Reports */
.seg-in { display: inline-flex; padding: 3px; border-radius: 10px; background: #E8EEF7; }
.seg-in button { min-height: 34px; padding: 0 13px; border: 0; border-radius: 8px; background: transparent; color: var(--a-mut); font: 600 12.5px/1 var(--f-text); cursor: pointer; transition: background .3s, color .3s; }
.seg-in button[aria-pressed="true"] { background: #fff; color: var(--a-ink); box-shadow: 0 2px 8px -4px rgba(11,26,51,.35); }
.rep-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.rk { padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--a-line); min-width: 0; }
.rk span { display: block; font-size: 12px; color: var(--a-mut); }
.rk b { display: block; margin-top: 3px; font: 700 clamp(15px, 1.7vw, 21px)/1.2 var(--f-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.rk small { display: block; margin-top: 2px; font-size: 11.5px; color: var(--ok); }
.rep-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 1000px) { .rep-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } }
.chart, .donut-card { margin: 0; padding: 14px; border-radius: 16px; background: #fff; border: 1px solid var(--a-line); min-width: 0; }
.chart figcaption, .donut-card figcaption { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 10px; font-size: 12px; color: var(--a-mut); }
.chart figcaption b, .donut-card figcaption b { color: var(--a-ink); font: 650 13px/1.2 var(--f-display); }
.chart-area { position: relative; height: 196px; margin-left: 44px; }
.gridl { position: absolute; inset: 0 0 22px 0; }
.gridl div { position: absolute; left: 0; right: 0; border-top: 1px dashed #E1E7F0; }
.gridl span { position: absolute; right: calc(100% + 8px); top: -7px; font: 500 10.5px/1 var(--f-mono); color: var(--a-mut); white-space: nowrap; }
.bars { position: absolute; inset: 0 0 0 0; display: flex; gap: 8px; align-items: stretch; }
.bar { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; min-width: 0; }
.bar .col { position: relative; height: calc(100% - 22px); }
.bar .fill { position: absolute; left: 12%; right: 12%; bottom: 0; height: 100%; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #5B8FF0, #2456C8); transform-origin: bottom; transform: scaleY(var(--h, 0)); transition: transform .8s var(--ease-out), background .4s, filter .4s; }
.bar .v { position: absolute; left: 50%; bottom: calc(var(--h, 0) * 100% + 4px); transform: translateX(-50%); font: 600 10.5px/1 var(--f-text); color: var(--a-ink); white-space: nowrap; font-variant-numeric: tabular-nums; transition: bottom .8s var(--ease-out), opacity .4s; }
.bar .lb { height: 22px; display: grid; place-items: center; font-size: 11.5px; color: var(--a-mut); white-space: nowrap; }
.bar.best .fill { background: linear-gradient(180deg, #8FB4F6, #1B4AAB); }
.bar.hl .fill { filter: brightness(1.12) saturate(1.1); }
.donut-wrap { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
@property --d1 { syntax: '<number>'; inherits: false; initial-value: 33; }
@property --d2 { syntax: '<number>'; inherits: false; initial-value: 33; }
.donut { position: relative; width: 128px; height: 128px; flex: none; border-radius: 50%; background: conic-gradient(#2456C8 0 calc(var(--d1) * 1%), #7FA8F2 0 calc((var(--d1) + var(--d2)) * 1%), #C9DAF7 0); transition: --d1 .9s var(--ease-out), --d2 .9s var(--ease-out); }
.donut::after { content: ""; position: absolute; inset: 22px; border-radius: 50%; background: #fff; }
.donut span { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; text-align: center; font: 700 15px/1.15 var(--f-display); font-variant-numeric: tabular-nums; }
.donut span small { display: block; font: 500 10.5px/1 var(--f-text); color: var(--a-mut); }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; flex: 1; min-width: 140px; }
.legend li { display: grid; grid-template-columns: 10px 1fr auto; gap: 8px; align-items: center; font-size: 12.5px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; }
.legend b { font-variant-numeric: tabular-nums; }

/* Admin */
.adm-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 1200px) { .adm-grid { grid-template-columns: minmax(0, 1fr) 240px; } }
.mov-table { background: #fff; border: 1px solid var(--a-line); border-radius: 14px; overflow: clip; }
.mov-row { display: grid; grid-template-columns: 84px minmax(0, 1.3fr) minmax(0, 1fr) 92px 108px 150px; gap: 10px; align-items: center; padding: 9px 12px; border-top: 1px solid var(--a-line); font-size: 13px; min-height: 52px; }
.mov-headrow { border-top: 0; background: #F3F6FB; min-height: 0; font: 500 10.5px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--a-mut); }
.mov-row .fol { font: 600 12px/1 var(--f-mono); color: var(--a-mut); }
.mov-row .amt { font: 650 13px/1 var(--f-display); text-align: right; font-variant-numeric: tabular-nums; }
.mov-headrow span:nth-child(4) { text-align: right; }
.mov-row.flash { animation: rowflash 1.2s var(--ease-out); }
@keyframes rowflash { 0% { background: #E6EEFD; } 100% { background: transparent; } }
.st { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 999px; font: 600 11.5px/1 var(--f-text); white-space: nowrap; }
.st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st-p { background: var(--warn-bg); color: var(--warn); }
.st-r { background: var(--rev-bg); color: var(--rev); }
.st-a { background: var(--ok-bg); color: var(--ok); }
.st-x { background: var(--bad-bg); color: var(--bad); }
.acts { display: flex; gap: 6px; flex-wrap: wrap; }
.acts button { min-height: 32px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--a-line); background: #fff; font: 600 12px/1 var(--f-text); color: var(--a-ink); cursor: pointer; }
.acts button.ok { border-color: #B5DEC9; color: var(--ok); background: #F1FAF5; }
.acts button.no { border-color: #EFC9C9; color: var(--bad); background: #FDF4F4; }
.acts button.rv { border-color: #C8D6EE; color: #1B4AAB; background: #F3F7FE; }
.acts .closed { font-size: 12px; color: var(--a-mut); }
.t-line:not(.new) { animation: none; }
.mov-more { padding: 9px 12px; font-size: 12px; color: var(--a-mut); border-top: 1px solid var(--a-line); background: #F9FBFD; }
#movBody { min-height: calc(6 * 52px + 36px); }
@media (max-width: 759px) { #movBody { min-height: calc(3 * 104px + 36px); } }
.mov-empty { padding: 26px; text-align: center; color: var(--a-mut); font-size: 13px; border-top: 1px solid var(--a-line); }
.log { background: #fff; border: 1px solid var(--a-line); border-radius: 14px; padding: 12px; }
.log li { display: grid; grid-template-columns: 42px 1fr; gap: 8px; padding: 7px 2px; border-top: 1px solid var(--a-line); font-size: 12.5px; line-height: 1.4; }
.log li:first-child { border-top: 0; }
.log li time { font: 500 11px/1.6 var(--f-mono); color: var(--a-mut); }
.log li.new { animation: lineIn .5s var(--ease-out); }
@media (max-width: 759px) {
  .mov-headrow { display: none; }
  .mov-row { grid-template-columns: 1fr auto; grid-template-areas: "tp st" "who amt" "fol acts"; gap: 6px 10px; padding: 12px; }
  .mov-row .fol { grid-area: fol; align-self: center; }
  .mov-row .tp { grid-area: tp; font-weight: 650; }
  .mov-row .who { grid-area: who; color: var(--a-mut); font-size: 12.5px; }
  .mov-row .amt { grid-area: amt; }
  .mov-row .stc { grid-area: st; justify-self: end; }
  .mov-row .acts { grid-area: acts; justify-self: end; }
  .log li:nth-child(n+4) { display: none; }
}

/* Showcase on small screens */
@media (max-width: 899px) {
  .app-top { gap: 8px 10px; }
  .app-top-actions { width: 100%; margin-left: 0; }
  .app-top-actions .app-btn { flex: 1; justify-content: center; min-height: 40px; }
  .kanban { grid-template-columns: repeat(4, minmax(78%, 1fr)); }
  .k-col { min-height: 0; }
  .crm-acts li:nth-child(n+4) { display: none; }
}
@media (min-width: 560px) and (max-width: 899px) { .kanban { grid-template-columns: repeat(4, minmax(44%, 1fr)); } }
@media (max-width: 559px) {
  .biz { padding: 18px 14px; margin-inline: -6px; }
  .rep-kpis { gap: 6px; }
  .rk { padding: 10px; }
  .rk b { font-size: 15px; }
  .rk small { display: none; }
  .chart-area { margin-left: 38px; height: 176px; }
  .bars { gap: 4px; }
  .bar .v { font-size: 10.5px; }
  .donut { width: 108px; height: 108px; }
  .donut::after { inset: 18px; }
  .v-kpis .kpi-mini:nth-child(n+3) { display: none; }
  .prod { min-height: 84px; padding: 10px; }
}

/* ---- Showcase: stable heights ---- */
@media (min-width: 760px) { .mov-row { grid-template-columns: 76px minmax(0, 1.3fr) minmax(0, 1fr) 96px 108px 176px; } }
@media (min-width: 900px) { .kanban { grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; } .lead { padding: 10px; } }
.acts { flex-wrap: nowrap; }
.t-status { min-height: 36px; }
.log li { height: 50px; overflow: hidden; align-content: start; }
.log li span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.crm-acts ul { min-height: 250px; align-content: start; }
.crm-acts li { min-height: 50px; align-content: start; }
.crm-acts li b { display: block; min-width: 0; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crm-acts li > span:last-child { min-width: 0; }
.k-col { min-height: 452px; }

@media (min-width: 760px) and (max-width: 1199px) {
  .k-col { min-height: 400px; }
  .crm-acts ul { min-height: 150px; }
  .crm-acts li:nth-child(n+4) { display: none; }
  .crm-acts ul, .log ol { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 14px; }
  .crm-acts li:first-child + li, .log li:nth-child(2) { border-top: 0; }
  .crm-acts li:nth-child(3), .log li:nth-child(3) { border-top: 0; }
  .log li:nth-child(n+4) { display: none; }
  .crm-acts ul { min-height: 52px; }
}
/* ---- Showcase: mobile ---- */
@media (max-width: 759px) {
  .app-title, .app-dots { display: none; }
  .app-top { flex-wrap: nowrap; padding: 8px 10px; }
  .app-top-actions { width: auto; margin-left: auto; }
  .app-top-actions .app-btn { flex: none; min-height: 40px; }
  .rs-txt, .ap-txt { display: none; }
  .app-auto::after { content: "Recorrido"; }
  .catalog { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 2px; }
  .catalog::-webkit-scrollbar { display: none; }
  .prod { flex: 0 0 46%; scroll-snap-align: start; }
  .t-lines { min-height: 140px; }
  .log li:nth-child(n+3) { display: none; }
  .crm-acts ul { min-height: 100px; }
  .crm-acts li:nth-child(n+3) { display: none; }
  .k-col { min-height: 362px; }
  .bar .v { opacity: 0; transition: opacity .3s; }
  .bar.best .v, .bar.hl .v { opacity: 1; font-size: 10.5px; }
  .lead button, .acts button, .chip-btn, .seg-in button { min-height: 40px; }
  .pay button { min-height: 42px; }
  .stepper button { width: 40px; height: 40px; }
  .v-head { margin-bottom: 12px; }
  .view { padding: 12px; }
}

/* ---- Performance: pause animations offscreen + composited pulses ---- */
.is-off, .is-off *, .is-off *::before, .is-off *::after { animation-play-state: paused !important; }
@keyframes ring { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(2.6); opacity: 0; } }
@keyframes ring2 { 0%, 60%, 100% { transform: scale(1); opacity: 0; } 10% { opacity: .7; } 40% { transform: scale(1.35); opacity: 0; } }
@keyframes chipglow { 0%, 14%, 100% { opacity: 0; } 6% { opacity: 1; } }
@keyframes qglow2 { 0%, 20%, 100% { opacity: 0; } 8% { opacity: 1; } }
.wrap[aria-hidden="true"]::after { animation: none; }
.wrap[aria-hidden="true"]::before { content: ""; position: absolute; left: 50%; top: -4px; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; border: 1.5px solid var(--blue-2); pointer-events: none; animation: ring 3.2s var(--ease-out) infinite; }
.journey > li::before { animation: none; }
.journey > li::after { content: ""; position: absolute; left: 0; top: -6px; width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--blue-2); pointer-events: none; animation: ring 3.6s var(--ease-out) infinite; }
.journey > li:nth-of-type(2)::after { animation-delay: 1.2s; } .journey > li:nth-of-type(3)::after { animation-delay: 2.4s; }
.cap .ico { position: relative; animation: none; }
.cap .ico::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 1.5px solid rgba(63,123,234,.5); opacity: 0; pointer-events: none; animation: ring2 6s var(--ease-out) infinite; }
.cap:nth-child(2) .ico::after { animation-delay: 1.2s; } .cap:nth-child(3) .ico::after { animation-delay: 2.4s; } .cap:nth-child(4) .ico::after { animation-delay: 3.6s; } .cap:nth-child(5) .ico::after { animation-delay: 4.8s; }
.modules span { position: relative; isolation: isolate; animation: none !important; }
.modules span::before { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; background: #DCE7FB; border: 1px solid rgba(63,123,234,.35); opacity: 0; animation: chipglow 10s ease-in-out infinite; animation-delay: calc(var(--i, 0) * .38s); }
.case.dark .modules span::before { background: rgba(158,192,245,.2); border-color: rgba(158,192,245,.45); }
.q { position: relative; animation: none !important; }
.q::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; box-shadow: 0 0 0 1.5px rgba(63,123,234,.55), 0 26px 44px -26px rgba(36,86,200,.5); opacity: 0; pointer-events: none; animation: qglow2 12s ease-in-out infinite; }
.q:nth-child(2)::after { animation-delay: 3s; } .q:nth-child(3)::after { animation-delay: 6s; } .q:nth-child(4)::after { animation-delay: 9s; }

/* Motion hierarchy: the showcase leads, the world steps back */
#world { transition: opacity 1.2s var(--ease-out); }
.halo { transition: opacity 1.2s var(--ease-out); }
.show-focus #world { opacity: .35; }
.show-focus .halo { opacity: .75; }

/* ================= Official portrait ================= */
/* The photo's own surround is #000207: the panel is built from that tone so the square edge disappears. No second ring is added. */
.stage-b .stage-inner { aspect-ratio: auto; padding: 0 2% 6% 6%; transform: none !important; }
.ph-panel, .ph-mobile { position: relative; margin: 0; overflow: clip; isolation: isolate; color: #E6EEFA;
  background: radial-gradient(70% 58% at 50% 42%, #0A1A36 0%, #040B19 52%, #010509 100%);
  box-shadow: 0 70px 120px -60px rgba(6,19,42,.75), 0 30px 60px -40px rgba(10,35,80,.5), inset 0 0 0 1px rgba(255,255,255,.07); }
.ph-panel { border-radius: 34px; }
.ph-panel::after, .ph-mobile::after { content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none; border-radius: inherit; background: linear-gradient(160deg, rgba(255,255,255,.07), transparent 28%, transparent 72%, rgba(63,123,234,.08)); }
.ph-grid { position: absolute; inset: 0; z-index: 0; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 36px 36px; -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 46%, transparent 42%, #000 82%); mask-image: radial-gradient(ellipse 75% 65% at 50% 46%, transparent 42%, #000 82%); }
.ph-scan { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.ph-scan i { position: absolute; left: 0; right: 0; top: -20%; height: 20%; background: linear-gradient(180deg, transparent, rgba(111,160,245,.09), transparent); animation: phscan 12s linear infinite; }
@keyframes phscan { to { transform: translateY(620%); } }
.ph-top { position: relative; z-index: 3; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 24px 0; font-size: 10.5px; color: #8EA6CC; }
.ph-top .live { display: inline-flex; align-items: center; gap: 8px; }
.ph-top .live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #6FA0F5; animation: hbreathe 3.4s ease-in-out infinite; }
.ph-edge { position: relative; z-index: 3; height: 1px; margin: 14px 24px 0; background: rgba(255,255,255,.08); overflow: hidden; }
.ph-edge::after { content: ""; position: absolute; top: 0; left: 0; width: 24%; height: 1px; background: linear-gradient(90deg, transparent, #7FA8F2, transparent); animation: divrun 7s var(--ease-io) infinite; }
.ph-stage { position: relative; z-index: 2; margin: 2% 8% 0; aspect-ratio: 1; }
.ph-amb { position: absolute; inset: -18%; z-index: 0; pointer-events: none; transform: translate3d(calc(var(--px, 0) * -16px), calc(var(--py, 0) * -12px), 0); transition: transform 1.1s var(--ease-out); }
.ph-amb span { position: absolute; border-radius: 50%; }
.ph-amb .a { width: 68%; height: 68%; left: 0; top: 2%; background: radial-gradient(closest-side, rgba(56,118,236,.40), transparent); animation: phdrift 15s ease-in-out infinite alternate; }
.ph-amb .b { width: 58%; height: 58%; right: 0; bottom: 4%; background: radial-gradient(closest-side, rgba(30,79,176,.36), transparent); animation: phdrift 19s ease-in-out infinite alternate-reverse; }
@keyframes phdrift { from { transform: translate3d(-5%, -4%, 0) scale(.96); } to { transform: translate3d(6%, 5%, 0) scale(1.06); } }
.ph-img { position: relative; z-index: 2; display: block; width: 100%; height: auto; aspect-ratio: 1; -webkit-mask-image: radial-gradient(closest-side, #000 98%, rgba(0,0,0,.82) 104%, transparent 119%); mask-image: radial-gradient(closest-side, #000 98%, rgba(0,0,0,.82) 104%, transparent 119%); transform: translate3d(calc(var(--px, 0) * 6px), calc(var(--py, 0) * 4px), 0); transition: transform 1.1s var(--ease-out); }
.ph-cap { position: relative; z-index: 3; display: grid; gap: 5px; padding: 8px 28px 26px; }
.ph-cap b { font: 650 clamp(19px, 1.7vw, 23px)/1.15 var(--f-display); color: #fff; letter-spacing: -0.02em; }
.ph-cap span { font-size: 13.5px; line-height: 1.45; color: #A9BCDD; max-width: 46ch; }
.stage-b .mini { left: 0; bottom: 0; width: 40%; z-index: 5; transform: translate3d(calc(var(--px, 0) * -14px), calc(var(--py, 0) * -10px), 0); transition: transform 1.1s var(--ease-out), box-shadow 1.1s var(--ease-out); }
.stage-b:hover .mini { transform: translate3d(calc(var(--px, 0) * -14px), calc(var(--py, 0) * -10px), 0); }
.stage-b .glow-floor { left: 18%; right: 4%; transform: none; }

/* Mobile framing: identity card right under the headline; the big desktop stage is not shown */
.ph-mobile { display: none; border-radius: 26px; padding: 20px 18px 18px; margin: 24px 0 2px; justify-items: center; text-align: center; }
.ph-mobile img { position: relative; z-index: 2; width: min(236px, 64vw); height: auto; aspect-ratio: 1; -webkit-mask-image: radial-gradient(closest-side, #000 98%, rgba(0,0,0,.82) 104%, transparent 119%); mask-image: radial-gradient(closest-side, #000 98%, rgba(0,0,0,.82) 104%, transparent 119%); }
.ph-mobile .ph-amb { inset: 0; transform: none; }
.ph-mobile figcaption { position: relative; z-index: 3; display: grid; gap: 3px; margin-top: 8px; }
.ph-mobile figcaption b { font: 650 18px/1.2 var(--f-display); color: #fff; letter-spacing: -0.015em; }
.ph-mobile figcaption span { font-size: 13px; color: #A9BCDD; text-wrap: balance; }
@media (max-width: 759px) {
  [data-variant="con-foto"] .ph-mobile { display: grid; }
  [data-variant="con-foto"] .hero-visual { display: none; }
}
@media (min-width: 760px) and (max-width: 999px) {
  .stage-b { max-width: 540px; margin-inline: auto; }
}

/* ================= Portrait integration + floating editorial layer ================= */
/* The portrait file now carries its own opacity: the square near-black background is gone,
   only the original ring and its emitted light remain, fading to 0 before the file edge. */
.ph-img { -webkit-mask-image: none; mask-image: none; }
.ph-stage { margin: -9% -3% -7%; }
.ph-amb { inset: -4%; }
.ph-halo { position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: 50%;
  background: radial-gradient(closest-side, transparent 58%, rgba(38,112,240,.20) 74%, rgba(24,80,200,.08) 86%, transparent 100%);
  animation: halobreath 9s ease-in-out infinite; }
@keyframes halobreath { 0%, 100% { opacity: .7; } 50% { opacity: 1; } }
.ph-panel { background: radial-gradient(64% 52% at 50% 44%, #0B1E42 0%, #06132B 46%, #030A18 78%, #02060F 100%); }
.ph-cap { margin-top: -2%; }

/* Floating editorial panels: different depths, rhythms and cursor response */
.stage-b .stage-inner { overflow: visible; }
.fl { position: absolute; z-index: 6; pointer-events: none; transform: translate3d(calc(var(--px, 0) * var(--dx, 10px)), calc(var(--py, 0) * var(--dy, 8px)), 0); transition: transform 1.2s var(--ease-out); }
.fl-in { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 15px 10px 10px; border-radius: 15px; overflow: hidden; white-space: nowrap;
  background: rgba(255,255,255,.88); border: 1px solid rgba(255,255,255,.9); box-shadow: 0 24px 44px -22px rgba(6,19,42,.55), 0 0 0 1px rgba(10,35,80,.05); color: var(--ink);
  animation: flbob var(--t, 8s) ease-in-out infinite var(--d, 0s); }
.fl-in::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.75) 50%, transparent 65%); transform: translateX(-120%); animation: flsheen var(--ts, 11s) ease-in-out infinite var(--d, 0s); }
.fl .ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; background: linear-gradient(145deg, var(--navy), var(--blue)); color: #fff; }
.fl .ic svg { width: 16px; height: 16px; }
.fl b { display: block; font: 600 13px/1.2 var(--f-text); }
.fl small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.fl-1 { left: -3%; top: 27%; --dx: -18px; --dy: -12px; --t: 7.4s; --d: -1s; --ts: 10s; }
.fl-2 { right: -5%; top: 58%; --dx: 22px; --dy: 14px; --t: 9.2s; --d: -4s; --ts: 13s; }
.fl-3 { right: 7%; bottom: 0; --dx: 12px; --dy: 18px; --t: 10.6s; --d: -6.5s; --ts: 15s; }
.fl-tag .fl-in { gap: 8px; padding: 7px 12px; border-radius: 999px; background: rgba(5,15,36,.82); border-color: rgba(127,168,242,.28); color: #BFD2F2; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; box-shadow: 0 16px 30px -18px rgba(5,15,36,.7); }
.fl-tag .fl-in::after { background: linear-gradient(110deg, transparent 35%, rgba(127,168,242,.35) 50%, transparent 65%); }
.fl-tag i { width: 6px; height: 6px; border-radius: 50%; background: #6FA0F5; box-shadow: 0 0 10px #6FA0F5; animation: hbreathe 3s ease-in-out infinite; }
.fl-4 { left: -4%; bottom: 27%; --dx: -8px; --dy: -6px; --t: 12s; --d: -3s; --ts: 17s; }
@keyframes flbob { 0%, 100% { translate: 0 0; } 30% { translate: 2px -7px; } 65% { translate: -2px -3px; } }
@keyframes flsheen { 0%, 62% { transform: translateX(-120%); } 82%, 100% { transform: translateX(120%); } }
@media (max-width: 1199px) and (min-width: 1000px) { .fl small { display: none; } .fl-in { padding: 8px 12px 8px 8px; } .fl .ic { width: 26px; height: 26px; } .fl-1 { left: -6%; } .fl-4 { display: none; } }
@media (min-width: 760px) and (max-width: 999px) { .fl-1 { left: -10%; } .fl-2 { right: -10%; } }

/* Mobile identity card */
.phm-wrap { position: relative; z-index: 2; width: min(262px, 70vw); margin: -6px 0 -10px; }
.ph-mobile .phm-wrap img { display: block; width: 100%; height: auto; aspect-ratio: 1; -webkit-mask-image: none; mask-image: none; }
.ph-mobile { background: radial-gradient(70% 55% at 50% 40%, #0B1E42 0%, #06132B 50%, #02060F 100%); }
.phm-tag { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; color: #CFE0FA; background: rgba(5,15,36,.78); border: 1px solid rgba(127,168,242,.3); animation: flbob var(--t) ease-in-out infinite var(--d); }
.phm-tag i { width: 5px; height: 5px; border-radius: 50%; background: #6FA0F5; box-shadow: 0 0 8px #6FA0F5; }
.phm-tag.t1 { left: -8%; top: 20%; --t: 7.8s; --d: -2s; }
.phm-tag.t2 { right: -10%; bottom: 23%; --t: 9.6s; --d: -5s; }

/* Contact avatar: dedicated head-and-shoulders crop (no face zoom) */
.avatar.avatar-photo { width: 60px; height: 60px; background: #01050C url("assets/profile/eduardo-palacios-avatar-240.jpg") 50% 50% / cover no-repeat; font-size: 0; box-shadow: 0 0 0 2px rgba(111,160,245,.55), 0 10px 24px -10px rgba(63,123,234,.6); }

/* Social links with icons */
.socials a svg, .btn .ig { width: 17px; height: 17px; flex: none; }
.socials a.cv { background: #fff; color: var(--ink); border-color: #fff; font-weight: 600; }
.socials a.cv:hover { background: #E6EEFA; }
.btn .ig { margin-right: 2px; }
.omnia-note { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: #8EA6CC; margin-top: -4px; }

.seg { display: flex; background: rgba(255,255,255,.07); border-radius: 999px; padding: 3px; flex: none; }
.seg button { border: 0; background: transparent; color: #C9D7EE; font: 600 12.5px/1 var(--f-text); padding: 9px 13px; border-radius: 999px; cursor: pointer; white-space: nowrap; transition: background .3s, color .3s; }
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); }

/* Motion off: site pause control and OS preference */
.no-motion *, .no-motion *::before, .no-motion *::after { animation: none !important; transition: none !important; }
.no-motion .reveal { opacity: 1 !important; transform: none !important; filter: none !important; }
.no-motion .manifesto .w { color: var(--ink); }
.no-motion .manifesto .w.hl { color: var(--blue); }
.no-motion .method::before { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; filter: none; }
  .manifesto .w { color: var(--ink); }
  .manifesto .w.hl { color: var(--blue); }
  .method::before { transform: scaleX(1); }
  html { scroll-behavior: auto; }
}

/* Mobile tuning */
@media (max-width: 999px) {
  .hero { min-height: auto; }
  .hero-visual { max-width: 640px; margin-inline: auto; width: 100%; }
}
@media (max-width: 480px) { .site-header .brand small { display: none; } }
@media (max-width: 999px) {
  .hero { padding-top: calc(104px + env(safe-area-inset-top, 0px)); }
  .hero-grid { row-gap: 64px; padding-bottom: 88px; }
}
@media (max-width: 560px) {
  .hero h1 { font-size: clamp(2.35rem, 10.6vw, 3rem); line-height: .98; }
  .hero .lede { font-size: 1rem; }
  .hero-actions .btn { width: 100%; justify-content: space-between; }
  .audience { gap: 14px; flex-direction: column; }
  .stage-a .stage-inner { aspect-ratio: 1 / .9; }
  .stage-a .l-back { width: 64%; }
  .stage-a .l-front { width: 84%; top: 28%; }
  .stage-a .c1 { left: 0; top: 6%; }
  .stage-a .c2 { right: 0; bottom: 0; }
  .stage-b .stage-inner { aspect-ratio: 1 / 1.12; }
  .stage-b .portrait { width: 74%; right: 0; }
  .stage-b .portrait .p-caption { left: 12px; right: 12px; bottom: 30%; }
  .stage-b .mini { width: 52%; bottom: 0; }
  .stage-b .sig2 { display: none; }
  .stage-b .sig { top: 4%; }
  .case { padding: 22px; }
  .case h3 { font-size: 2rem; }
  .case-grid { row-gap: 32px; }
  .mobile-row { grid-template-columns: 1fr 1fr; gap: 12px; }
  .screen-note { grid-column: 1 / -1; padding: 18px; }
  .screen.lift { transform: none; }
  .section { padding-block: 80px; }
  .phases { padding-left: 34px; }
  .p-rail { left: 8px; }
  .phase .node-dot { left: -34px; }
  .final h2 { font-size: clamp(2.4rem, 11vw, 3.2rem); }
  .chip { padding: 8px 10px 8px 8px; gap: 8px; }
  .chip .ic { width: 24px; height: 24px; border-radius: 7px; }
  .chip small { display: none; }
  .chip b { font-size: 12px; }
  .layer .bar { height: 22px; }
  .layer .bar span { display: none; }
  .spec { grid-template-columns: 1fr; }
  .case { border-radius: 26px; }
  .final { border-radius: 28px; }
}

/* ================= Site motion control (compact, part of the header system) ================= */
.header-actions { display: flex; gap: 10px; align-items: center; }
.motion-control { flex: none; width: 44px; height: 44px; display: inline-grid; place-items: center; padding: 0; border-radius: 50%; border: 1px solid var(--glass-line); background: rgba(255,255,255,.62); backdrop-filter: blur(12px); color: var(--navy); box-shadow: 0 10px 30px -18px rgba(6,19,42,.35); cursor: pointer; transition: background .3s, color .3s, transform .3s var(--ease-out); }
.motion-control:hover { background: #fff; transform: translateY(-1px); }
.motion-control svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.motion-control .mi-play { display: none; fill: currentColor; stroke-width: 1.4; }
.motion-control[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.motion-control[aria-pressed="true"] .mi-pause { display: none; }
.motion-control[aria-pressed="true"] .mi-play { display: block; }
.motion-control:focus-visible, .tlink:focus-visible { outline: 3px solid #2456c8; outline-offset: 3px; }
.motion-control:disabled { opacity: .55; cursor: default; transform: none; }
.tlink.project-details-btn { border: 0; background: transparent; font: inherit; text-align: left; cursor: pointer; }
.no-motion *, .no-motion *::before, .no-motion *::after { animation-play-state: paused !important; }
.page-hidden *, .page-hidden *::before, .page-hidden *::after { animation-play-state: paused !important; }
:root { --text-main: #06132a; --text-muted: #4a5770; --primary: #2456c8; --primary-dark: #0a2350; }
@media (max-width: 560px) { .header-actions { gap: 8px; } }

/* ================= Responsive portraits: one <picture> per layout ================= */
.ph-stage picture, .phm-wrap picture { display: contents; }

/* ================= Capabilities ================= */
.cap-lead { margin-top: 22px; max-width: 64ch; }
.cap-grid { list-style: none; margin: clamp(32px, 4vw, 48px) 0 clamp(40px, 5vw, 64px); padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.cap-grid li { position: relative; display: grid; gap: 6px; align-content: start; padding: 18px 18px 18px 20px; border-radius: 18px; background: rgba(255,255,255,.66); border: 1px solid var(--glass-line); box-shadow: 0 18px 36px -30px rgba(6,19,42,.45); }
.cap-grid li::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 3px; background: linear-gradient(var(--blue), var(--sky)); opacity: .7; }
.cap-grid b { font: 650 15.5px/1.25 var(--f-display); letter-spacing: -0.01em; color: var(--ink); }
.cap-grid span { font-size: 13.5px; line-height: 1.5; color: var(--muted); }
@media (max-width: 559px) {
  .cap-grid { grid-template-columns: 1fr 1fr; grid-auto-flow: dense; gap: 8px; }
  .cap-grid li { padding: 12px 12px 12px 14px; border-radius: 14px; }
  .cap-grid li::before { top: 12px; bottom: 12px; }
  .cap-grid b { font-size: 13.5px; }
  .cap-grid span { display: none; }
  /* Multiempresa vs multiservicio keep their one-line definition on mobile */
  .cap-grid .cap-key { grid-column: 1 / -1; }
  .cap-grid .cap-key span { display: block; font-size: 12.5px; }
}

/* ================= Simulator: reserved height (rendered lazily; no layout change on init) ================= */
.app-views { min-height: 641px; }
@media (max-width: 1199px) { .app-views { min-height: 701px; } }
@media (max-width: 999px) { .app-views { min-height: 805px; } }
@media (max-width: 759px) { .app-views { min-height: 786px; } }

/* ================= Simulator loading state ================= */
.app[aria-busy="true"] .app-views { position: relative; }
.app[aria-busy="true"] .app-views::after { content: "Cargando simulación…"; position: absolute; inset: 0; display: grid; place-items: center; font: 500 13px/1 var(--f-mono); letter-spacing: .08em; color: var(--a-mut); }

/* ================= CRM: stage-by-stage view on narrow screens ================= */
.crm-board { min-width: 0; display: grid; gap: 8px; align-content: start; }
.k-stages { display: none; }
.crm-note { margin: 0; min-height: 1.4em; font-size: 12.5px; color: var(--a-mut); }
.crm-note:empty { min-height: 0; }
@keyframes movedflash { 0% { box-shadow: 0 0 0 3px rgba(63,123,234,.55); } 100% { box-shadow: 0 0 0 0 rgba(63,123,234,0); } }
.lead.moved { animation: movedflash 1.4s var(--ease-out) 1; }
@media (max-width: 759px) {
  .k-stages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 12px; background: #EDF2F9; }
  .k-stages button { min-height: 44px; padding: 4px 2px; border: 0; border-radius: 9px; background: transparent; color: var(--a-ink); font: 600 11.5px/1.15 var(--f-text); cursor: pointer; display: grid; place-items: center; gap: 2px; }
  .k-stages button em { font-style: normal; font-weight: 500; font-size: 11px; color: var(--a-mut); font-variant-numeric: tabular-nums; }
  .k-stages button[aria-pressed="true"] { background: #fff; box-shadow: 0 4px 12px -6px rgba(6,19,42,.35); color: var(--blue); }
  .k-stages button:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
  .kanban { display: block; overflow: visible; scroll-snap-type: none; padding-bottom: 0; }
  .kanban .k-col { display: none; min-height: 300px; }
  .kanban[data-mstage="0"] .k-col[data-stage="0"], .kanban[data-mstage="1"] .k-col[data-stage="1"],
  .kanban[data-mstage="2"] .k-col[data-stage="2"], .kanban[data-mstage="3"] .k-col[data-stage="3"] { display: flex; }
  .crm-note { min-height: 1.4em; }
}

/* ================= Contact e-mail (mailto link wraps the address as one box) ================= */
.email a { display: inline-flex; max-width: 100%; min-width: 0; text-decoration: none; border-radius: 14px; }
.email a code { display: block; min-width: 0; }
.email a:hover code { border-color: rgba(255,255,255,.3); }
.email a:focus-visible { outline: 3px solid #9EC0F5; outline-offset: 2px; }

/* ================= Footer landmark ================= */
.site-footer { position: relative; z-index: 1; }
.site-footer .foot { margin-top: 0; padding-top: 18px; padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)); color: var(--muted); border-top: 1px solid var(--line); }
.site-footer .foot a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; margin: -12px -8px; border-radius: 10px; color: var(--navy); }
.site-footer .foot a:focus-visible { outline: 3px solid #2456c8; outline-offset: 2px; }

/* ================= Rendering cost: skip offscreen sections until they approach the viewport ================= */
@supports (content-visibility: auto) {
  /* Intrinsic sizes approximate each section's rendered height per layout, so anchors and the
     scrollbar stay stable before a section is rendered for the first time ("auto" then remembers it). */
  .enfoque, #metodo, #casos, #capacidades, #trayectoria, #contacto { content-visibility: auto; }
  /* Fragment navigation needs exact positions: before any anchor jump the skipping is switched off. */
  .cv-off .enfoque, .cv-off #metodo, .cv-off #casos, .cv-off #capacidades, .cv-off #trayectoria, .cv-off #contacto { content-visibility: visible; }
  .enfoque { contain-intrinsic-size: auto 1210px; }
  #metodo { contain-intrinsic-size: auto 2470px; }
  #casos { contain-intrinsic-size: auto 4830px; }
  #capacidades { contain-intrinsic-size: auto 3750px; }
  #trayectoria { contain-intrinsic-size: auto 1350px; } /* V4: measured content heights (timeline cards) */
  #contacto { contain-intrinsic-size: auto 1380px; }
  @media (min-width: 560px) {
    .enfoque { contain-intrinsic-size: auto 940px; }
    #metodo { contain-intrinsic-size: auto 1900px; }
    #casos { contain-intrinsic-size: auto 4300px; }
    #capacidades { contain-intrinsic-size: auto 3200px; }
    #trayectoria { contain-intrinsic-size: auto 1080px; }
    #contacto { contain-intrinsic-size: auto 1110px; }
  }
  @media (min-width: 1000px) {
    .enfoque { contain-intrinsic-size: auto 720px; }
    #metodo { contain-intrinsic-size: auto 1780px; }
    #casos { contain-intrinsic-size: auto 3340px; }
    #capacidades { contain-intrinsic-size: auto 2250px; }
    #trayectoria { contain-intrinsic-size: auto 600px; }
    #contacto { contain-intrinsic-size: auto 1070px; }
  }
}
