/* ─────────────────────────────────────────────────────────────
   Tecniforce — main.css
   Sistema: papel cálido, tinta casi negra y el cian del isotipo.
   Dos temas con :root[data-theme]: claro (por defecto) y oscuro.
   Lo que mostramos como producto (demos, brief, capas de la portada)
   va oscuro en los dos, como una pantalla.
   Tipografía: IBM Plex Mono para todos los títulos y etiquetas,
   Geist para párrafos. Nunito queda solo en el logotipo.
   Firma visual: tres esquinas pequeñas y una grande (abajo a la
   derecha), igual que la hoja del logo.
   ───────────────────────────────────────────────────────────── */

@property --w { syntax: '<integer>'; initial-value: 1280; inherits: true; }
@property --b { syntax: '<color>'; initial-value: #00E9E8; inherits: true; }

:root {
  --accent: #00E9E8;
  --accent-ink: #00201F;
  --paper: #F2F1EC;
  --ink: #0A0B0D;
  --ink-2: #50545C;
  --ink-line: rgba(10, 11, 13, .14);

  /* Tema claro. --o y --a son los canales de la tinta y del cian para velos y
     trazos con transparencia; --hi es el cian cuando va como texto o línea fina
     sobre el fondo, donde el #00E9E8 no alcanza contraste. */
  color-scheme: light;
  --bg: var(--paper);
  --bg-2: #FAF9F6;
  --bg-3: #FFFFFF;
  --sheet: #FCFBF9;
  --o: 10, 11, 13;
  --a: 0, 150, 149;
  --line: var(--ink-line);
  --line-2: rgba(10, 11, 13, .26);
  --line-3: rgba(10, 11, 13, .5);
  --fg: var(--ink);
  --fg-2: var(--ink-2);
  --fg-3: #676B73;
  --hi: #007675;
  --dot: #00B4B3;
  --grid: rgba(10, 11, 13, .04);
  --nav-bg: rgba(242, 241, 236, .8);
  --iso: var(--ink);
  --btn-hover-bg: var(--ink);
  --btn-hover-fg: var(--accent);
  --scrim: rgba(10, 11, 13, .32);
  --pop-shadow: 0 30px 90px rgba(10, 11, 13, .22);
  --phone-shadow: 0 0 0 1px rgba(10, 11, 13, .1), 0 34px 70px rgba(10, 11, 13, .3);
  --art-shadow: rgba(10, 11, 13, .16);
  --stack-glow: rgba(10, 11, 13, .18);
  --layer-off: var(--ink-2);

  --grid-hot: rgba(var(--a), .30);
  --grid-hot-fill: rgba(var(--a), .055);
  --cols: 12;
  --gut: 12px;

  --display: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --display-w: 600;
  --display-track: -.045em;
  --display-word: -.22em;
  --ds: 1;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --pad: clamp(20px, 4vw, 56px);
  --max: 1440px;
  --edge: max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad)));
  --nav-h: 72px;
  --sb-h: 30px;
  --big-r: clamp(72px, 11vw, 180px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0A0B0D;
  --bg-2: #0F1114;
  --bg-3: #15181C;
  --sheet: var(--paper);
  --o: 255, 255, 255;
  --a: 0, 233, 232;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .17);
  --line-3: rgba(255, 255, 255, .32);
  --fg: #F1F2F4;
  --fg-2: #A3A9B3;
  --fg-3: #6F7580;
  --hi: var(--accent);
  --dot: var(--accent);
  --grid: rgba(255, 255, 255, .03);
  --nav-bg: rgba(10, 11, 13, .74);
  --iso: #fff;
  --btn-hover-bg: #fff;
  --btn-hover-fg: var(--accent-ink);
  --scrim: rgba(5, 6, 7, .62);
  --pop-shadow: 0 40px 120px rgba(0, 0, 0, .7);
  --phone-shadow: 0 0 0 1px rgba(255, 255, 255, .22), 0 40px 90px rgba(0, 0, 0, .65);
  --art-shadow: rgba(0, 0, 0, .45);
  --stack-glow: rgba(0, 233, 232, .16);
  --layer-off: #0D1013;
}

/* Pantallas: se quedan oscuras en cualquier tema. */
.demo, .brief-preview, .statusbar {
  --o: 255, 255, 255;
  --a: 0, 233, 232;
  --fg: #F1F2F4; --fg-2: #A3A9B3; --fg-3: #6F7580;
  --line-3: rgba(255, 255, 255, .32);
  --hi: var(--accent);
  --dot: var(--accent);
  --btn-hover-bg: #fff;
  --btn-hover-fg: var(--accent-ink);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  background: var(--bg);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  padding-bottom: var(--sb-h);
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3, h4, h5 { font-weight: inherit; font-size: inherit; }
em { font-style: normal; }
::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible { outline: 2px solid var(--hi); outline-offset: 3px; border-radius: 4px; }

.defs { position: absolute; }
.skip {
  position: fixed; top: 10px; left: 10px; z-index: 200;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 14px; border-radius: 8px; font-weight: 600;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

.wrap {
  position: relative;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
}

kbd {
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1;
  padding: 3px 5px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  color: var(--fg-2);
}

/* Grilla de fondo: una línea muy tenue en cada borde de columna, para que se
   lea como grilla sin meterse con el contenido. ::before la dibuja en toda la
   página; en la portada, ::after enciende las columnas del modo inspección
   alrededor del cursor. */
main > section, .footer { position: relative; scroll-margin-top: var(--nav-h); }
main > section::before, .footer::before, .hero::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: var(--edge); right: var(--edge);
  pointer-events: none;
}
main > section::before, .footer::before {
  background:
    linear-gradient(var(--grid), var(--grid)) 100% 0 / 1px 100% no-repeat,
    linear-gradient(to right, var(--grid) 1px, transparent 1px) 0 0 / calc(100% / var(--cols)) 100%;
}
.hero::after {
  background-image: linear-gradient(to right,
    transparent var(--gut), var(--grid-hot) var(--gut), var(--grid-hot) calc(var(--gut) + 1px),
    var(--grid-hot-fill) calc(var(--gut) + 1px), var(--grid-hot-fill) calc(100% - var(--gut) - 1px),
    var(--grid-hot) calc(100% - var(--gut) - 1px), var(--grid-hot) calc(100% - var(--gut)), transparent calc(100% - var(--gut)));
  background-size: calc(100% / var(--cols)) 100%;
  -webkit-mask-image: radial-gradient(circle 300px at var(--mx, -999px) var(--my, -999px), #000, transparent);
  mask-image: radial-gradient(circle 300px at var(--mx, -999px) var(--my, -999px), #000, transparent);
  opacity: var(--spot, 0);
  transition: opacity .6s;
}

/* Los espacios de una mono son anchos a tamaño de titular: se cierran un poco. */
.hero-title, .sec-head h2, .svc-name, .case-title h3, .log-item h3, .manifesto-text { word-spacing: var(--display-word); }

/* ───────── Botones ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 40px; padding: 0 16px;
  font-size: 14px; font-weight: 600; letter-spacing: -.005em; white-space: nowrap;
  border-radius: 8px 8px 20px 8px;
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.btn svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-lg { height: 54px; padding: 0 26px 0 24px; font-size: 15.5px; border-radius: 10px 10px 27px 10px; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--btn-hover-bg); color: var(--btn-hover-fg); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--fg); }
.btn-ghost:hover { background: rgba(var(--o), .07); border-color: var(--line-3); }

/* ───────── Nav ───────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  height: var(--nav-h);
  padding-inline: var(--edge);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  border-bottom: 1px solid transparent;
  transition: background .35s, border-color .35s, backdrop-filter .35s;
}
.nav.is-scrolled {
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom-color: var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 11px; }
.iso { width: 25px; height: 27px; flex: none; }
.iso-t { fill: var(--iso); }
.iso-dot { fill: var(--accent); }
.brand-word { font-family: "Nunito", var(--sans); font-weight: 900; font-size: 15.5px; letter-spacing: .015em; }
.brand:hover .iso-dot { animation: leaf .7s var(--ease); transform-origin: 80% 15%; transform-box: fill-box; }
@keyframes leaf { 40% { transform: rotate(-90deg); } 100% { transform: rotate(-360deg); } }

.nav-links { display: flex; gap: clamp(18px, 2.6vw, 40px); }
.nav-links a {
  position: relative;
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--fg-2); padding: 8px 0;
  transition: color .2s;
}
.nav-links a span { color: var(--fg-3); margin-right: 8px; transition: color .2s; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
  background: var(--hi); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav-links a:hover, .nav-links a.is-active { color: var(--fg); }
.nav-links a.is-active span { color: var(--hi); }
.nav-links a.is-active::after, .nav-links a:hover::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
/* El menú solo aparece en móvil, donde los enlaces de la barra no caben. */
.menu-btn {
  display: none; align-items: center;
  height: 40px; padding: 0 13px;
  border: 1px solid var(--line-2); border-radius: 8px;
  font-family: var(--mono); font-size: 12px; color: var(--fg-2);
  transition: border-color .2s, color .2s, background .2s;
}
.menu-btn:hover { border-color: var(--line-3); color: var(--fg); background: rgba(var(--o), .05); }
.inspect-btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 12px;
  border: 1px solid var(--line-2); border-radius: 8px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .02em; color: var(--fg-2);
  transition: border-color .2s, color .2s, background .2s;
}
.inspect-btn svg { width: 15px; height: 15px; }
.inspect-btn kbd { border: 0; padding: 0; font-size: 11px; color: var(--fg-3); }
.inspect-btn:hover { border-color: var(--hi); color: var(--hi); }
.inspect-btn:hover svg { animation: aim 1.2s var(--ease) infinite; }
@keyframes aim { 50% { transform: scale(1.22) rotate(45deg); } }
body.inspect .inspect-btn { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
body.inspect .inspect-btn kbd { color: var(--accent-ink); }

/* ───────── Menú móvil ───────── */
.mnav {
  position: fixed; inset: 0; z-index: 58;
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  padding: calc(var(--nav-h) + 14px) var(--pad) max(26px, env(safe-area-inset-bottom));
  background: var(--bg);
  overflow-y: auto; overscroll-behavior: contain;
  animation: fade .2s;
}
.mnav[hidden] { display: none; }
.mnav-links a {
  display: flex; align-items: baseline; gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--display); font-weight: var(--display-w);
  font-size: clamp(1.9rem, 9.4vw, 2.7rem); line-height: 1.05; letter-spacing: var(--display-track);
  animation: mnav-in .5s var(--ease) both;
}
.mnav-links a:nth-child(2) { animation-delay: .04s; }
.mnav-links a:nth-child(3) { animation-delay: .08s; }
.mnav-links a span { font-family: var(--mono); font-weight: 400; font-size: 12px; letter-spacing: .04em; color: var(--hi); }
.mnav-links a:active { color: var(--hi); }
@keyframes mnav-in { from { opacity: 0; transform: translateY(14px); } }
.mnav-foot { display: flex; flex-direction: column; gap: 18px; animation: mnav-in .5s var(--ease) .16s both; }
.mnav-foot .btn { width: 100%; }
.mnav-mail { font-size: 16px; color: var(--fg-2); }
.mnav-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 22px; }
.mnav-legal { display: flex; gap: 22px; font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--fg-3); }
body.menu-open { overflow: hidden; }
body.menu-open .nav { background: var(--bg); border-bottom-color: var(--line); -webkit-backdrop-filter: none; backdrop-filter: none; }
body.menu-open .menu-btn { border-color: var(--hi); color: var(--hi); }

/* ───────── Hero ───────── */
.hero {
  min-height: calc(100svh - var(--sb-h));
  display: flex; flex-direction: column;
  padding-top: calc(var(--nav-h) + clamp(14px, 3.2vh, 40px));
}
.hero > .wrap { width: 100%; flex: 1; display: flex; flex-direction: column; }

.hero-meta {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--fg-2);
  margin-bottom: clamp(14px, 2.6vh, 32px);
}
.status { display: inline-flex; align-items: center; gap: 9px; color: var(--fg); }
.status i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--dot);
  box-shadow: 0 0 0 0 rgba(var(--a), .6);
  animation: pulse 2.4s infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(0, 233, 232, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 233, 232, 0); } }

.hero-main { position: relative; flex: 1; display: flex; flex-direction: column; }
.hero-title {
  position: relative; z-index: 2; width: fit-content;
  font-family: var(--display);
  font-weight: var(--display-w);
  font-size: calc(clamp(2.3rem, 7.6vw, 7rem) * var(--ds));
  line-height: 1.02;
  letter-spacing: var(--display-track);
  margin-left: -.03em;
}
.hero-title .line { display: block; overflow: hidden; padding: .14em .04em .24em 0; margin: -.14em 0 -.24em; }
.hero-title .line > span { display: inline-block; will-change: transform; }
.hero-title em { color: var(--dot); }

.hero-copy { position: relative; z-index: 2; max-width: 560px; margin-top: clamp(22px, 4.4vh, 52px); }
.hero-lead { font-size: clamp(1.05rem, 1.3vw, 1.22rem); line-height: 1.5; color: var(--fg-2); max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(22px, 3.5vh, 36px); }

/* Vista isométrica: un producto por capas */
.stack3d {
  position: absolute; z-index: 1;
  right: 0; top: 0; bottom: 0;
  width: min(38%, 520px);
  display: flex; flex-direction: column; justify-content: center;
}
.stack3d-scene { position: relative; height: clamp(300px, 46vh, 430px); display: grid; place-items: center; perspective: 2000px; }
.stack3d-scene::after {
  content: ""; position: absolute; left: 12%; right: 12%; bottom: 2%; height: 26%;
  background: radial-gradient(closest-side, var(--stack-glow), transparent);
  filter: blur(18px); pointer-events: none;
}
.stack3d-rot {
  position: relative; z-index: 1;
  width: 330px; height: 223px;
  transform-style: preserve-3d;
  transform: rotateX(calc(55deg + var(--rx, 0deg))) rotateZ(calc(-42deg + var(--rz, 0deg))) translateZ(-90px);
  transition: transform .5s ease-out;
}
/* Cada capa es una pantalla oscura. En el tema claro, las que no están
   seleccionadas bajan a gris: la activa destaca y la pila sigue siendo una sola. */
.layer {
  position: absolute; inset: 0;
  background: #0D1013;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 12px 12px 50px 12px;
  transform: translateZ(calc(var(--i) * var(--gap, 46px) + var(--lift, 0px)));
  transition: transform 1s var(--ease), border-color .45s, background .45s;
  overflow: hidden;
}
.layer svg { width: 100%; height: 100%; transition: opacity .45s; }
.stack3d.has-active .layer:not(.is-active) { background: var(--layer-off); }
.stack3d.has-active .layer:not(.is-active) svg { opacity: .38; }
.stack3d.has-active .layer.is-active { border-color: var(--accent); background: #0A1719; }
.stack3d.has-active .layer.is-above { --lift: 92px; }

.s-dim path { fill: none; stroke: rgba(255, 255, 255, .16); }
.s-node rect { fill: rgba(255, 255, 255, .04); stroke: rgba(255, 255, 255, .3); }
.s-node-hot { fill: rgba(0, 233, 232, .12); stroke: var(--accent); }
.s-flow { fill: none; stroke: var(--accent); stroke-width: 1.3; stroke-dasharray: 4 6; animation: dash 1.4s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -20; } }
.s-txt text { font: 500 9.5px var(--mono); fill: rgba(255, 255, 255, .6); }
.s-txt-hot, .s-txt-hot text { font: 600 10px var(--mono); fill: var(--accent); }
.s-num text { font: 400 9.5px var(--mono); fill: rgba(255, 255, 255, .28); }
.s-code text { font: 400 10px var(--mono); fill: rgba(255, 255, 255, .86); }
.s-code .k { fill: var(--accent); }
.s-ui rect, .s-ui circle { fill: rgba(255, 255, 255, .2); }
.s-bright, .s-bright rect { fill: rgba(255, 255, 255, .88); }
.s-accent { fill: var(--accent); }
.s-bars rect { fill: rgba(255, 255, 255, .18); }

.stack3d figcaption { position: relative; z-index: 2; }
.stack3d-legend { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding-bottom: 30px; }
.stack3d-legend button {
  position: static; display: block; width: 100%; text-align: left;
  padding: 12px 6px 4px 0; border-top: 1px solid var(--line-2);
  transition: border-color .35s;
}
.stack3d-legend span { display: block; font-family: var(--mono); font-size: 11px; color: var(--fg-3); transition: color .3s; }
.stack3d-legend b { display: block; margin-top: 3px; font-family: var(--display); font-weight: var(--display-w); font-size: 15.5px; letter-spacing: -.03em; color: var(--fg-3); transition: color .3s; }
.stack3d-legend em { position: absolute; left: 0; bottom: 0; font-family: var(--mono); font-size: 12px; color: var(--fg-2); opacity: 0; transform: translateY(4px); transition: opacity .35s, transform .35s var(--ease); white-space: nowrap; }
.stack3d-legend em::before { content: "→ "; color: var(--hi); }
.stack3d-legend .is-active button { border-top-color: var(--hi); }
.stack3d-legend .is-active span { color: var(--hi); }
.stack3d-legend .is-active b { color: var(--fg); }
.stack3d-legend .is-active em { opacity: 1; transform: none; }
.fig-label { margin-top: 14px; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-3); }

.hero-index {
  position: relative;
  width: 100%; max-width: var(--max);
  margin: clamp(20px, 3.4vh, 48px) auto 0;
  padding-inline: var(--pad);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
}
.hero-index a {
  display: flex; align-items: center; gap: 10px;
  padding: 17px 14px 21px 12px;
  border-top: 1px solid var(--line-2);
  font-size: 15px; font-weight: 500; color: var(--fg-2);
  transition: color .25s, background .25s, border-color .25s;
}
.hero-index a::before { content: ""; flex: none; width: 7px; height: 7px; background: var(--fg-3); border-radius: 2px 2px 5px 2px; transition: background .25s, transform .4s var(--ease); }
.hero-index a:hover { color: var(--fg); background: rgba(var(--o), .03); border-top-color: var(--hi); }
.hero-index a:hover::before { background: var(--dot); transform: rotate(90deg); }

/* Entrada del hero */
.js .hero-title .line > span { transform: translateY(112%); }
.js .hero-meta, .js .hero-copy, .js .stack3d, .js .hero-index { opacity: 0; transform: translateY(18px); }
.js .stack3d-rot { --gap: 4px; }
.js.ready .hero-title .line > span { transform: none; transition: transform 1.15s var(--ease); }
.js.ready .hero-title .line:nth-child(2) > span { transition-delay: .09s; }
.js.ready .hero-meta, .js.ready .hero-copy, .js.ready .stack3d, .js.ready .hero-index {
  opacity: 1; transform: none; transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.js.ready .hero-copy { transition-delay: .25s; }
.js.ready .stack3d { transition-delay: .35s; }
.js.ready .hero-index { transition-delay: .5s; }
.js.ready .stack3d-rot { --gap: 46px; }
.js.ready .layer { transition-delay: calc(.45s + var(--i) * .08s), 0s, 0s, 0s; }
.js.settled .layer { transition-delay: 0s; }

/* ───────── Cabeceras de sección ───────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .07em; text-transform: uppercase;
  color: var(--fg-2);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--dot); border-radius: 2px 2px 6px 2px; }

.sec-head {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 0; row-gap: 22px;
  align-items: start;
}
.sec-head .eyebrow { grid-column: 1; padding-top: .9em; }
.sec-head h2 {
  grid-column: 2 / -1;
  font-family: var(--display); font-weight: var(--display-w);
  font-size: calc(clamp(1.9rem, 4.9vw, 4.7rem) * var(--ds)); line-height: 1.06; letter-spacing: var(--display-track);
  margin-left: -.03em;
}
.sec-head h2 em { color: var(--dot); }
.sec-lead { grid-column: 2 / span 2; font-size: clamp(1.05rem, 1.35vw, 1.25rem); line-height: 1.5; color: var(--fg-2); max-width: 44ch; }

/* ───────── Manifiesto ───────── */
.manifesto { padding-block: clamp(96px, 17vh, 210px) clamp(88px, 14vh, 170px); }
.manifesto .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 28px; }
.manifesto .eyebrow { grid-column: 1; align-self: start; padding-top: .7em; }
.manifesto-text {
  grid-column: 2 / -1;
  font-family: var(--display); font-weight: 400;
  font-size: calc(clamp(1.3rem, 2.65vw, 2.55rem) * var(--ds)); line-height: 1.22; letter-spacing: -.04em;
}
.manifesto-text .w { opacity: .16; transition: opacity .5s; }
.manifesto-text .w.on { opacity: 1; }
.manifesto-points {
  grid-column: 2 / -1; margin-top: clamp(28px, 6vh, 72px);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
}
.manifesto-points li { border-top: 1px solid var(--line-2); padding: 20px 28px 0 14px; }
.manifesto-points span { font-family: var(--mono); font-size: 12px; color: var(--hi); }
.manifesto-points h3 { margin-top: 28px; font-size: 18px; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
.manifesto-points p { margin-top: 10px; font-size: 15px; color: var(--fg-2); max-width: 34ch; }

/* ───────── Servicios (papel) ───────── */
.paper {
  --grid: rgba(10, 11, 13, .04);
  --dot: #00B4B3; --hi: #007675;
  --o: 10, 11, 13; --a: 0, 150, 149;
  --fg: var(--ink); --fg-2: var(--ink-2); --fg-3: #7A7E86;
  --line: var(--ink-line); --line-2: rgba(10, 11, 13, .26); --line-3: rgba(10, 11, 13, .5);
  background: var(--sheet); color: var(--ink);
  border-radius: 28px 28px var(--big-r) 28px;
}
.paper :focus-visible { outline-color: var(--ink); }
.services { padding-block: clamp(84px, 13vh, 160px) clamp(96px, 15vh, 190px); }

.svc-list { margin-top: clamp(48px, 8vh, 96px); border-top: 1px solid var(--line-2); }
.svc { border-bottom: 1px solid var(--line-2); }
.svc-head {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: center;
  width: 100%; text-align: left;
  padding-block: clamp(20px, 3.2vh, 34px);
}
.svc-num { font-family: var(--mono); font-size: 13px; color: var(--fg-2); padding-left: 14px; }
.svc-name {
  grid-column: 2 / span 2;
  font-family: var(--display); font-weight: var(--display-w);
  font-size: calc(clamp(1.2rem, 2.7vw, 2.5rem) * var(--ds)); line-height: 1.12; letter-spacing: var(--display-track);
  transition: transform .5s var(--ease);
}
.svc-head:hover .svc-name { transform: translateX(10px); }
.svc-toggle {
  justify-self: end; position: relative;
  width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 8px 8px 22px 8px;
  transition: background .3s, border-color .3s, transform .5s var(--ease);
}
.svc-toggle::before, .svc-toggle::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; background: currentColor;
  transform: translate(-50%, -50%); transition: transform .5s var(--ease);
}
.svc-toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.svc.is-open .svc-toggle { background: var(--ink); border-color: var(--ink); color: var(--accent); }
.svc.is-open .svc-toggle::after { transform: translate(-50%, -50%) rotate(0deg); }

.svc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--ease); }
.svc.is-open .svc-body { grid-template-rows: 1fr; }
.svc-inner {
  overflow: hidden; min-height: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start;
  visibility: hidden; transition: visibility 0s .7s;
}
.svc.is-open .svc-inner { visibility: visible; transition-delay: 0s; }
/* Cambio sin animación, para cuando el acordeón se prepara fuera de pantalla. */
.svc-list.is-instant .svc-body, .svc-list.is-instant .svc-inner { transition: none; }
.svc-text { grid-column: 2; padding: 4px 28px 0 0; }
.svc-text p { font-size: 16.5px; line-height: 1.55; color: var(--ink-2); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px; }
.tags li {
  font-family: var(--mono); font-size: 11px; letter-spacing: .03em; text-transform: uppercase;
  padding: 5px 9px; border: 1px solid var(--line-2); border-radius: 4px 4px 10px 4px;
}

/* Demos */
.demo {
  --line: rgba(255, 255, 255, .1); --line-2: rgba(255, 255, 255, .2);
  grid-column: 3 / -1;
  position: relative; height: 350px; margin-bottom: clamp(32px, 5vh, 52px);
  background: #0B0D10; color: var(--fg);
  border-radius: 14px 14px 68px 14px; overflow: hidden;
  font-family: var(--mono);
}
.svc:not(.is-open) .demo, .svc:not(.is-open) .demo * { animation-play-state: paused !important; }
.demo-bar {
  height: 36px; display: flex; align-items: center; gap: 6px; padding: 0 14px;
  border-bottom: 1px solid var(--line);
}
.demo-bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .2); }
.demo-bar span { margin-left: 10px; font-size: 11px; color: var(--fg-3); }
.demo-bar b { margin-left: auto; font-size: 11px; font-weight: 500; color: var(--accent); }

/* demo: sitio responsive */
.demo-web { animation: msw 8s cubic-bezier(.6, 0, .2, 1) infinite; }
@keyframes msw { 0%, 22% { --w: 1280; } 45%, 72% { --w: 390; } 95%, 100% { --w: 1280; } }
.demo-w::after { counter-reset: w var(--w); content: counter(w) "px"; }
.demo-stage { height: calc(100% - 36px); display: flex; justify-content: center; padding: 18px 18px 22px; }
.mini-site {
  container-type: inline-size;
  width: calc(36% + (var(--w) - 390) * 64% / 890);
  height: 100%;
  background: #14171B; border: 1px solid var(--line-2); border-radius: 8px;
  padding: 12px; display: flex; flex-direction: column; gap: 12px;
}
.ms-nav { display: flex; align-items: center; gap: 9px; }
.ms-nav i { width: 13px; height: 13px; background: var(--accent); border-radius: 3px 3px 7px 3px; margin-right: 6px; }
.ms-nav span { width: 28px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .22); }
.ms-nav b { margin-left: auto; width: 44px; height: 14px; border-radius: 4px 4px 7px 4px; background: rgba(255, 255, 255, .86); }
.ms-hero { flex: 1; min-height: 0; display: flex; gap: 12px; }
.ms-copy { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 7px; }
.ms-copy i { display: block; border-radius: 3px; }
.ms-copy .h { height: 13px; width: 92%; background: rgba(255, 255, 255, .86); }
.ms-copy .h.s { width: 62%; }
.ms-copy .p { height: 5px; width: 80%; background: rgba(255, 255, 255, .22); }
.ms-copy .p.s { width: 54%; }
.ms-copy b { width: 66px; height: 19px; margin-top: 6px; border-radius: 5px 5px 10px 5px; background: var(--accent); }
.ms-img {
  flex: 1; min-height: 46px; border-radius: 6px 6px 30px 6px;
  background: linear-gradient(135deg, rgba(0, 233, 232, .3), rgba(0, 233, 232, .04));
  border: 1px solid rgba(0, 233, 232, .32);
}
.ms-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ms-cards i { height: 44px; border: 1px solid var(--line-2); border-radius: 6px; background: rgba(255, 255, 255, .03); }
@container (max-width: 300px) {
  .ms-hero { flex-direction: column; }
  .ms-nav span { display: none; }
  .ms-cards { grid-template-columns: 1fr; gap: 6px; }
  .ms-cards i { height: 20px; }
  .ms-cards i:last-child { display: none; }
}

/* demo: panel */
.dash { height: calc(100% - 36px); display: grid; grid-template-columns: 46px 1fr; }
.dash aside { border-right: 1px solid var(--line); padding: 16px 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.dash aside i { width: 18px; height: 18px; border-radius: 5px; background: rgba(255, 255, 255, .1); }
.dash aside i.on { background: var(--accent); border-radius: 5px 5px 9px 5px; }
.dash-main { padding: 16px 18px 20px 16px; display: grid; grid-template-columns: 1fr 1.25fr; grid-template-rows: auto 1fr; gap: 12px; min-height: 0; }
.kpis { grid-column: 1 / -1; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 10px; }
.kpis div { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.kpis small { display: block; font-size: 10.5px; color: var(--fg-3); }
.kpis b { display: block; margin-top: 2px; font-family: var(--display); font-weight: var(--display-w); font-size: 17px; letter-spacing: -.04em; }
.bars { display: flex; align-items: flex-end; gap: 7px; border: 1px solid var(--line); border-radius: 8px; padding: 14px 12px 12px; min-height: 0; }
.bars i { flex: 1; height: var(--h); background: rgba(255, 255, 255, .15); border-radius: 3px 3px 0 0; transform-origin: bottom; animation: grow 5s var(--ease) infinite; }
.bars i:nth-child(2) { animation-delay: .07s; } .bars i:nth-child(3) { animation-delay: .14s; }
.bars i:nth-child(4) { animation-delay: .21s; } .bars i:nth-child(5) { animation-delay: .28s; }
.bars i:nth-child(6) { animation-delay: .35s; } .bars i:nth-child(7) { animation-delay: .42s; }
.bars i.hot { background: var(--accent); }
@keyframes grow { 0% { transform: scaleY(.06); } 18%, 88% { transform: scaleY(1); } 100% { transform: scaleY(.06); } }
.rows { border: 1px solid var(--line); border-radius: 8px 8px 30px 8px; font-size: 11px; align-self: stretch; overflow: hidden; }
.rows li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; }
.rows li + li { border-top: 1px solid var(--line); }
.rows li span:first-child { color: var(--fg-3); }
.rows em { padding: 3px 8px; border-radius: 99px; font-size: 10px; }
.rows .ok { background: rgba(0, 233, 232, .13); color: var(--accent); }
.rows .flip { position: relative; display: grid; }
.rows .flip b { grid-area: 1 / 1; font-weight: 400; padding: 3px 8px; margin: -3px -8px; border-radius: 99px; text-align: center; }
.rows .flip b:first-child { background: rgba(255, 176, 32, .15); color: #FFB020; animation: flipA 5s infinite; }
.rows .flip b:last-child { background: rgba(0, 233, 232, .13); color: var(--accent); opacity: 0; animation: flipB 5s infinite; }
@keyframes flipA { 0%, 45% { opacity: 1; } 52%, 94% { opacity: 0; } 100% { opacity: 1; } }
@keyframes flipB { 0%, 45% { opacity: 0; } 52%, 94% { opacity: 1; } 100% { opacity: 0; } }

/* demo: apps */
.app-phones { height: 100%; display: flex; align-items: center; justify-content: center; padding: 20px; }
.mini-phone {
  position: relative; flex: none; width: 138px; height: 272px;
  border: 1.5px solid rgba(255, 255, 255, .32); border-radius: 26px;
  background: #101317; padding: 12px 10px; overflow: hidden;
}
.mini-phone::before { content: ""; position: absolute; top: 9px; left: 50%; width: 38px; height: 9px; border-radius: 9px; background: rgba(255, 255, 255, .2); transform: translateX(-50%); }
.mini-phone.android { border-radius: 16px; }
.mini-phone.android::before { width: 8px; height: 8px; }
.mp-screen { margin-top: 24px; display: flex; flex-direction: column; gap: 8px; }
.mp-screen i { display: block; }
.mp-screen .t { height: 10px; width: 58%; border-radius: 3px; background: rgba(255, 255, 255, .86); }
.mp-screen .c { height: 74px; border-radius: 8px 8px 28px 8px; background: linear-gradient(135deg, rgba(0, 233, 232, .34), rgba(0, 233, 232, .05)); border: 1px solid rgba(0, 233, 232, .32); }
.mp-screen .r { height: 24px; border: 1px solid var(--line-2); border-radius: 6px; }
.mp-screen .r.s { width: 68%; }
.mini-phone small { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-3); }
.mp-notif {
  position: absolute; z-index: 2; top: 8px; left: 7px; right: 7px;
  display: flex; align-items: center; gap: 7px; padding: 7px 8px;
  border-radius: 12px; background: #F1F2F4; color: #0A0B0D;
  font-family: var(--sans); font-size: 8.5px; line-height: 1.25;
  transform: translateY(-150%); animation: notif 5.5s var(--ease) infinite;
}
.mp-notif i { flex: none; width: 17px; height: 17px; border-radius: 4px 4px 9px 4px; background: var(--ink); }
.mp-notif b { display: block; font-size: 9px; font-weight: 600; }
@keyframes notif { 0%, 14% { transform: translateY(-150%); } 24%, 72% { transform: none; } 82%, 100% { transform: translateY(-150%); } }
.app-link { position: relative; width: clamp(70px, 14vw, 150px); display: grid; place-items: center; }
.app-link::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px dashed rgba(0, 233, 232, .6); }
.app-link span { position: relative; padding: 5px 9px; background: #0B0D10; border: 1px solid var(--accent); border-radius: 4px 4px 11px 4px; font-size: 11px; color: var(--accent); white-space: nowrap; }

/* demo: IA */
.demo-ia { display: grid; grid-template-columns: minmax(0, .9fr) auto minmax(0, 1.25fr); align-items: center; gap: 14px; padding: 26px 34px 26px 24px; }
.demo-ia small { display: block; margin-bottom: 10px; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-3); }
.bubble {
  min-height: 86px; padding: 13px 15px;
  background: #1A1E23; border: 1px solid var(--line-2); border-radius: 14px 14px 14px 3px;
  font-family: var(--sans); font-size: 15px; line-height: 1.4; color: var(--fg);
}
.caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; background: var(--accent); vertical-align: -3px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.ia-arrow { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 10.5px; color: var(--accent); }
.ia-arrow::after { content: "→"; font-size: 16px; line-height: 1; }
.ia-arrow span { padding: 4px 8px; border: 1px solid rgba(0, 233, 232, .5); border-radius: 4px 4px 10px 4px; }
.ia-out pre {
  min-height: 176px; padding: 14px 16px;
  background: #050607; border: 1px solid var(--line); border-radius: 8px 8px 34px 8px;
  font-family: var(--mono); font-size: 12px; line-height: 1.75; color: var(--fg-2);
  white-space: pre; overflow: hidden;
}
.ia-out .str { color: var(--accent); }
.ia-out .num { color: #fff; }

/* demo: marca */
.demo-brand { padding: 18px 28px 22px 18px; animation: brandcycle 10s infinite; }
@keyframes brandcycle { 0%, 27% { --b: #00E9E8; } 33%, 60% { --b: #FF6B4A; } 66%, 93% { --b: #C6F24E; } 100% { --b: #00E9E8; } }
.bb { height: 100%; display: grid; grid-template-columns: 1.45fr 1fr .6fr; grid-template-rows: 1.15fr 1fr; gap: 10px; }
.bb > div { position: relative; min-height: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.bb small { position: absolute; left: 12px; top: 10px; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-3); }
.bb-mark { display: block; flex: none; width: 46px; height: 46px; background: var(--b); border-radius: 10px 10px 23px 10px; animation: markturn 10s var(--ease) infinite; }
@keyframes markturn { 0%, 27% { transform: rotate(0deg); } 33%, 60% { transform: rotate(90deg); } 66%, 93% { transform: rotate(180deg); } 100% { transform: rotate(360deg); } }
.bb-logo { grid-column: 1 / span 2; display: flex; align-items: center; justify-content: center; gap: 14px; }
.bb-logo b { font-family: var(--display); font-weight: 700; font-size: clamp(24px, 2.6vw, 36px); letter-spacing: -.035em; }
.bb-colors { grid-column: 3; grid-row: 1 / span 2; display: flex; flex-direction: column; border-radius: 8px 8px 40px 8px !important; }
.bb-colors i { flex: 1; }
.bb-colors i:nth-child(1) { flex: 2; background: var(--b); }
.bb-colors i:nth-child(2) { background: color-mix(in srgb, var(--b) 42%, #0B0D10); }
.bb-colors i:nth-child(3) { background: #F1F2F4; }
.bb-colors i:nth-child(4) { background: #1A1E23; }
.bb-colors small { color: rgba(0, 0, 0, .62); }
.bb-type { padding: 32px 12px 12px; display: flex; flex-direction: column; justify-content: flex-end; }
.bb-type b { font-family: var(--display); font-weight: 700; font-size: 40px; line-height: 1; color: var(--b); }
.bb-type span { margin-top: 6px; font-family: var(--display); font-weight: 600; font-size: 13px; letter-spacing: -.01em; }
.bb-type em { font-family: var(--sans); font-size: 11px; color: var(--fg-2); }
.bb-card { padding: 34px 14px 12px; background: var(--b); display: flex; flex-direction: column; justify-content: flex-end; }
.bb-card .bb-mark { width: 22px; height: 22px; background: #0B0D10; border-radius: 5px 5px 11px 5px; margin-bottom: 10px; }
.bb-card span { display: block; height: 5px; width: 64%; border-radius: 3px; background: rgba(0, 0, 0, .34); }
.bb-card span + span { width: 40%; margin-top: 6px; }
.bb-card small { color: rgba(0, 0, 0, .62); }

/* demo: marketing */
.demo-mkt { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: 12px; padding: 18px 30px 22px 18px; }
.demo-mkt small { display: block; margin-bottom: 9px; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-3); }
.mk-post { min-height: 0; display: flex; flex-direction: column; border: 1px solid var(--line-2); border-radius: 10px; background: #14171B; overflow: hidden; }
.mk-head { display: flex; align-items: center; gap: 8px; padding: 9px 11px; font-family: var(--sans); font-size: 11.5px; font-weight: 600; }
.mk-head i { width: 18px; height: 18px; border-radius: 50%; background: var(--accent); }
.mk-head small { margin: 0 0 0 auto; font-size: 9.5px; }
.mk-img { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 14px; background: linear-gradient(140deg, rgba(0, 233, 232, .4), rgba(0, 233, 232, .05)); overflow: hidden; }
.mk-img::before { content: ""; position: absolute; right: -20px; top: -20px; width: 112px; height: 112px; background: var(--accent); border-radius: 14px 14px 100px 14px; animation: drift 7s ease-in-out infinite; }
@keyframes drift { 50% { transform: translate(-10px, 10px) rotate(-8deg); } }
.mk-img b { position: relative; font-family: var(--display); font-weight: 700; font-size: clamp(20px, 2.1vw, 27px); line-height: 1; letter-spacing: -.035em; color: #fff; }
.mk-img em { position: relative; align-self: flex-start; margin-top: 10px; padding: 5px 10px; background: #0B0D10; color: #fff; border-radius: 5px 5px 11px 5px; font-family: var(--sans); font-size: 10px; font-weight: 600; }
.mk-cap { padding: 10px 11px 12px; display: flex; flex-direction: column; gap: 5px; }
.mk-cap span { height: 5px; width: 88%; border-radius: 3px; background: rgba(255, 255, 255, .22); }
.mk-cap span.s { width: 52%; }
.mk-side { min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 10px; }
.mk-cal, .mk-chart { min-height: 0; border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px 12px; }
.mk-chart { display: flex; flex-direction: column; border-radius: 8px 8px 34px 8px; }
.mk-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.mk-grid i { aspect-ratio: 1.6; border-radius: 3px; background: rgba(255, 255, 255, .07); }
.mk-grid i.on { background: var(--accent); opacity: .2; animation: calon 7s infinite; }
.mk-grid i:nth-child(4) { animation-delay: .25s; } .mk-grid i:nth-child(6) { animation-delay: .5s; }
.mk-grid i:nth-child(9) { animation-delay: .75s; } .mk-grid i:nth-child(11) { animation-delay: 1s; }
.mk-grid i:nth-child(14) { animation-delay: 1.25s; } .mk-grid i:nth-child(15) { animation-delay: 1.5s; }
.mk-grid i:nth-child(18) { animation-delay: 1.75s; } .mk-grid i:nth-child(20) { animation-delay: 2s; }
@keyframes calon { 0% { opacity: .2; } 8%, 80% { opacity: 1; } 92%, 100% { opacity: .2; } }
.mk-chart svg { flex: 1; min-height: 0; width: 100%; overflow: visible; }
.mk-line { fill: none; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; animation: draw 7s var(--ease) infinite; }
.mk-area { fill: rgba(0, 233, 232, .1); opacity: 0; animation: areain 7s infinite; }
@keyframes draw { 0% { stroke-dashoffset: 100; } 36%, 88% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 100; } }
@keyframes areain { 0%, 24% { opacity: 0; } 44%, 88% { opacity: 1; } 100% { opacity: 0; } }

/* ───────── Proyectos ───────── */
.projects { padding-block: clamp(96px, 15vh, 190px) clamp(72px, 10vh, 130px); }
/* --case es el color de cada producto; --case-t, ese color cuando va como texto. */
.case { --case-t: color-mix(in srgb, var(--case) 60%, var(--ink)); margin-top: clamp(64px, 11vh, 130px); padding-top: 22px; border-top: 1px solid var(--line-2); }
:root[data-theme="dark"] .case { --case-t: var(--case); }
.case-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-3);
}
.case-meta > span:first-child { color: var(--case-t); }
.pill {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 11px; border: 1px solid var(--line-2); border-radius: 99px;
  font-size: 11px; color: var(--fg);
}
.pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--dot); }
.pill.live i { animation: pulse 2.4s infinite; }
.pill.wip i { background: #FFB020; }

.case-title { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: clamp(12px, 1.3vw, 18px); margin-top: clamp(26px, 4.4vh, 44px); }
.case-title img { width: clamp(38px, 3.6vw, 52px); max-width: none; height: auto; border-radius: 23%; }
.case-title h3 { min-width: 0; }
.case-title img.mark-plain { width: clamp(24px, 2.3vw, 33px); border-radius: 0; }
.case-pomo .case-title img { background: #F7EFE3; padding: 16%; }
.case-title h3 {
  font-family: var(--display); font-weight: var(--display-w);
  font-size: calc(clamp(2rem, 3.6vw, 3.3rem) * var(--ds)); line-height: 1.05; letter-spacing: var(--display-track);
}
.case-title p {
  grid-column: 1 / -1; margin-top: clamp(12px, 1.8vh, 18px);
  font-size: clamp(1.1rem, 1.6vw, 1.4rem); line-height: 1.25; letter-spacing: -.015em; color: var(--fg-2);
}

.case-stage {
  position: relative; margin-top: clamp(28px, 5vh, 52px);
  aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: 16px 16px var(--big-r) 16px;
  background: #161616;
}
.case-stage-img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 38%; }
.case-stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(10, 11, 13, .5), transparent 46%); pointer-events: none; }
.case-notes { position: absolute; z-index: 2; top: clamp(14px, 2.4vw, 32px); left: clamp(14px, 2.4vw, 32px); display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.case-notes li {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 11px; border: 1px solid rgba(255, 255, 255, .17); border-radius: 4px 4px 13px 4px;
  background: rgba(10, 11, 13, .62); color: #F1F2F4; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-family: var(--mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase;
}
.case-notes li::before { content: ""; width: 6px; height: 6px; background: var(--case); border-radius: 1px 1px 4px 1px; }

.phone {
  position: relative; overflow: hidden;
  aspect-ratio: 390 / 844;
  border: clamp(4px, .5vw, 7px) solid #08090A; border-radius: 13% / 6%;
  background: #000;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .22), 0 40px 90px rgba(0, 0, 0, .65);
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.case-shots .phone { box-shadow: var(--phone-shadow); }
.case-stage .phone { position: absolute; z-index: 2; left: 7%; bottom: -9%; width: clamp(110px, 16.5%, 230px); }

.case-body { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; margin-top: clamp(32px, 5vh, 56px); }
.case-about { grid-column: 1 / span 2; padding-right: clamp(24px, 4vw, 72px); }
.case-about > p { font-size: clamp(1.05rem, 1.4vw, 1.28rem); line-height: 1.5; max-width: 44ch; }
.link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 30px;
  font-weight: 600; font-size: 16px; padding-bottom: 4px; border-bottom: 1px solid currentColor;
  transition: color .25s;
}
.link svg { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.link:hover { color: var(--case-t, var(--hi)); }
.link:hover svg { transform: translate(2px, -2px); }

.case-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.case-stats li { border-top: 1px solid var(--line-2); padding: 12px 10px 0 0; }
.case-stats b { display: block; font-family: var(--display); font-weight: var(--display-w); font-size: calc(clamp(2rem, 3.4vw, 3.2rem) * var(--ds)); line-height: .96; letter-spacing: var(--display-track); }
.case-stats span { display: block; margin-top: 8px; font-size: 12.5px; line-height: 1.4; color: var(--fg-2); max-width: 22ch; }
.case-body .case-stats { grid-column: 3 / -1; }

.browser { border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; background: var(--bg-2); }
.browser-bar { height: 32px; display: flex; align-items: center; gap: 6px; padding: 0 12px; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(var(--o), .2); }
.browser-bar span { margin: 0 auto; padding-right: 36px; font-family: var(--mono); font-size: 11px; color: var(--fg-3); }
.browser img { width: 100%; }

/* Pomoroast */
.case-split { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.case-split .case-col { grid-column: 1 / span 2; padding-right: clamp(24px, 4vw, 72px); }
.case-split .case-about { padding-right: 0; margin-top: clamp(32px, 5vh, 52px); }
.case-shots { grid-column: 3 / -1; position: relative; align-self: start; margin-top: clamp(28px, 5vh, 52px); }
.case-shots .browser { border-radius: 12px 12px 72px 12px; }
.case-shots .phone { position: absolute; left: -7%; top: 34%; width: clamp(96px, 27%, 190px); }
.case-shots .case-stats { margin-top: 36px; padding-left: 26%; grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Dinviti */
.case-teaser {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: 24px;
  padding: clamp(22px, 3.6vw, 56px);
  border: 1px solid var(--line-2); border-radius: 16px 16px var(--big-r) 16px;
  background: linear-gradient(120deg, rgba(32, 182, 255, .13), rgba(32, 182, 255, .02) 55%), var(--bg-2);
}
.case-dinviti { border-top: 0; padding-top: 0; }
.case-teaser .case-title { margin-top: 30px; }
.case-teaser-text { margin-top: 24px; font-size: clamp(1rem, 1.3vw, 1.18rem); max-width: 44ch; }
.case-teaser-art { display: grid; place-items: center; }
.case-teaser-art img { width: min(100%, 440px); filter: drop-shadow(0 30px 60px var(--art-shadow)); }

/* ───────── Proceso ───────── */
.process { padding-block: clamp(88px, 14vh, 170px) clamp(96px, 15vh, 190px); }
.log { position: relative; margin-top: clamp(48px, 8vh, 96px); --p: 0; }
.log::before, .log::after { content: ""; position: absolute; top: 0; bottom: 0; left: 25%; width: 1px; background: var(--line-2); }
.log::after { background: var(--dot); transform: scaleY(var(--p)); transform-origin: top; }
.log-item {
  position: relative;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start;
  padding-block: clamp(26px, 4.4vh, 44px);
  border-top: 1px solid var(--line);
}
.log-item:last-child { border-bottom: 1px solid var(--line); }
.log-node {
  position: absolute; z-index: 1; left: 25%; top: clamp(32px, 5vh, 52px);
  width: 13px; height: 13px; margin-left: -6px;
  background: var(--bg); border: 1px solid var(--fg-3); border-radius: 3px 3px 8px 3px;
  transition: background .4s, border-color .4s, transform .5s var(--ease);
}
.log-item.is-done .log-node { background: var(--dot); border-color: var(--dot); transform: rotate(90deg); }
.log-cmd { grid-column: 1; grid-row: 1 / span 2; font-family: var(--mono); font-size: 13px; letter-spacing: .02em; color: var(--fg-3); padding-left: 14px; padding-top: 6px; transition: color .4s; }
.log-item.is-done .log-cmd { color: var(--hi); }
.log-item h3 {
  grid-column: 2 / span 2; padding-left: 34px;
  font-family: var(--display); font-weight: var(--display-w);
  font-size: calc(clamp(1.2rem, 2vw, 1.85rem) * var(--ds)); line-height: 1.14; letter-spacing: var(--display-track);
}
.log-item > p:not(.log-cmd):not(.log-out) { grid-column: 2 / span 2; padding-left: 34px; margin-top: 12px; font-size: 16px; color: var(--fg-2); max-width: 50ch; }
.log-out { grid-column: 4; grid-row: 1 / span 2; padding-left: 14px; padding-top: 6px; font-family: var(--mono); font-size: 13px; color: var(--fg); }
.log-out span { display: block; margin-bottom: 5px; font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--fg-3); }

/* ───────── Contacto (la hoja cian) ───────── */
.contact {
  --grid: rgba(0, 32, 31, .06);
  --dot: var(--ink); --hi: var(--ink); --o: 10, 11, 13;
  --fg: var(--ink); --fg-2: #063E3D; --fg-3: #0B5857;
  background: var(--accent); color: var(--ink);
  border-radius: 28px 28px var(--big-r) 28px;
  padding-block: clamp(84px, 13vh, 160px) clamp(96px, 15vh, 180px);
}
.contact :focus-visible { outline-color: var(--ink); }
.brief { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(44px, 7vh, 84px); align-items: start; }
.brief-form { grid-column: 1 / span 2; padding-right: clamp(24px, 4vw, 64px); }
.brief fieldset { border: 0; padding: 0; margin: 0 0 clamp(28px, 4.4vh, 44px); min-width: 0; }
.brief legend { display: flex; align-items: center; gap: 12px; padding: 0; font-size: 19px; font-weight: 600; letter-spacing: -.012em; }
.brief legend span { display: grid; place-items: center; width: 24px; height: 24px; border: 1.5px solid var(--ink); border-radius: 5px 5px 12px 5px; font-family: var(--mono); font-size: 11px; font-weight: 500; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.opts label { position: relative; cursor: pointer; }
.opts input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.opts label span {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 16px; border: 1.5px solid rgba(0, 32, 31, .42); border-radius: 8px 8px 20px 8px;
  font-size: 15px; font-weight: 500;
  transition: background .2s, color .2s, border-color .2s, transform .25s var(--ease);
}
.opts label:hover span { border-color: var(--ink); transform: translateY(-1px); }
.opts input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--accent); }
.opts input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.field span { display: block; margin-bottom: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-2); }
.field.wide { grid-column: 1 / -1; }
.field input, .field textarea {
  width: 100%; padding: 13px 14px;
  font: inherit; font-size: 16px; color: var(--ink);
  background: rgba(255, 255, 255, .34); border: 1.5px solid rgba(0, 32, 31, .3); border-radius: 8px;
  transition: background .2s, border-color .2s;
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(0, 32, 31, .55); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: rgba(255, 255, 255, .62); }

.brief-preview {
  --line: rgba(255, 255, 255, .1); --line-2: rgba(255, 255, 255, .18);
  grid-column: 3 / -1; position: sticky; top: calc(var(--nav-h) + 20px);
  background: var(--ink); color: var(--fg);
  border-radius: 14px 14px 76px 14px; overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 40, 40, .28);
}
.brief-preview :focus-visible { outline-color: var(--accent); }
.brief-tab { display: flex; justify-content: space-between; align-items: center; padding: 13px 20px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 12px; }
.brief-tab i { font-style: normal; color: var(--fg-3); }
.brief-tab i.ok { color: var(--accent); }
#brief-out { min-height: 310px; padding: 22px 20px 26px; font-family: var(--mono); font-size: 13px; line-height: 1.75; color: var(--fg-2); white-space: pre-wrap; overflow-wrap: anywhere; }
#brief-out .h { color: var(--fg); font-weight: 600; }
#brief-out .v { color: var(--accent); }
#brief-out .c { color: var(--fg-3); }
.brief-actions { display: flex; flex-wrap: wrap; gap: 10px; padding: 0 20px 18px; }
.brief-alt { padding: 0 20px 34px; font-size: 13.5px; color: var(--fg-3); }
.brief-alt a { color: var(--fg); border-bottom: 1px solid var(--line-2); }
.brief-alt a:hover { color: var(--accent); border-color: var(--accent); }

/* ───────── Footer ───────── */
.footer { padding-top: clamp(64px, 10vh, 120px); }
.footer-top { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 40px; }
.footer-top .brand { grid-column: 1 / -1; }
.footer-top .iso { width: 44px; height: 47px; }
.footer-top h2 { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 14px; }
.footer-top nav, .footer-contact { padding-left: 14px; }
.footer-top nav a, .footer-top nav span, .footer-contact a, .footer-contact span { display: block; width: fit-content; padding: 4px 0; font-size: 15px; color: var(--fg-2); transition: color .2s; }
.footer-top nav a:hover, .footer-contact a:hover { color: var(--hi); }
.footer-top nav span { color: var(--fg-3); }
.footer-word {
  margin-top: clamp(40px, 8vh, 96px);
  font-family: "Nunito", var(--sans); font-weight: 900;
  font-size: 15.8vw; line-height: .78; letter-spacing: -.01em; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(var(--o), .3);
  user-select: none; overflow: hidden; padding-bottom: .04em;
}
.footer-word span { transition: color .5s, -webkit-text-stroke-color .5s; }
.footer-word span:hover { color: var(--accent); -webkit-text-stroke-color: var(--accent); transition-duration: .05s; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px;
  margin-top: clamp(20px, 3vh, 36px); padding-block: 20px 26px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 12px; color: var(--fg-3);
}
.footer-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.theme-switch { display: inline-flex; gap: 2px; padding: 2px; border: 1px solid var(--line-2); border-radius: 4px 4px 12px 4px; }
.theme-switch button {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 2px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0; text-transform: none; color: var(--fg-2);
  transition: color .2s, background .2s;
}
.theme-switch button:last-child { border-radius: 2px 2px 10px 2px; }
.theme-switch svg { width: 13px; height: 13px; }
.theme-switch button:hover { color: var(--fg); }
.theme-switch button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.footer-inspect { display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px; border: 1px solid var(--line-2); border-radius: 4px 4px 12px 4px; color: var(--fg-2); transition: color .2s, border-color .2s; }
.footer-inspect:hover { color: var(--hi); border-color: var(--hi); }

/* ───────── Barra de estado ───────── */
.statusbar {
  --line: rgba(255, 255, 255, .09);
  position: fixed; inset: auto 0 0 0; z-index: 70;
  height: var(--sb-h);
  display: flex; align-items: stretch;
  background: #050607; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px; color: var(--fg-3);
  user-select: none;
}
.sb-progress { position: absolute; left: 0; top: -1px; height: 1px; width: 100%; background: var(--accent); transform: scaleX(var(--p, 0)); transform-origin: left; }
.sb-item { display: inline-flex; align-items: center; gap: 6px; padding: 0 13px; border-right: 1px solid var(--line); white-space: nowrap; }
.sb-item b { font-weight: 500; color: var(--fg); }
.sb-item svg { width: 12px; height: 12px; }
.sb-branch { color: var(--accent-ink); background: var(--accent); border-right: 0; font-weight: 500; }
.sb-scroll b { min-width: 2ch; text-align: right; }
.sb-spacer { flex: 1; border-right: 1px solid var(--line); }
.sb-btn { transition: color .2s, background .2s; }
.sb-btn:hover { color: var(--fg); background: rgba(255, 255, 255, .06); }
.sb-btn kbd { border: 0; padding: 0; color: var(--fg-2); }
.sb-item:last-child { border-right: 0; }
body.inspect .sb-btn[data-toggle-inspect] { color: var(--accent); }

/* ───────── Paleta de comandos ───────── */
.palette { position: fixed; inset: 0; z-index: 100; }
.palette[hidden] { display: none; }
.palette-backdrop { position: absolute; inset: 0; background: var(--scrim); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); animation: fade .2s; }
.palette-box {
  position: relative; width: min(calc(100vw - 32px), 580px); margin: min(16vh, 140px) auto 0;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 14px 14px 44px 14px;
  box-shadow: var(--pop-shadow); overflow: hidden;
  animation: pop .28s var(--ease);
}
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.palette-input { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.palette-input span { font-family: var(--mono); color: var(--hi); font-size: 18px; }
.palette-input input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--fg); font: inherit; font-size: 17px; }
.palette-input input::placeholder { color: var(--fg-3); }
.palette-list { max-height: min(52vh, 420px); overflow-y: auto; padding: 8px; }
.palette-list .group { padding: 12px 12px 6px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); }
.palette-list .item { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 8px; font-size: 15px; color: var(--fg-2); cursor: pointer; }
.palette-list .item span { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--fg-3); }
.palette-list .item.is-active { background: rgba(var(--a), .1); color: var(--fg); }
.palette-list .item.is-active span { color: var(--hi); }
.palette-list .empty { padding: 22px 12px; color: var(--fg-3); font-size: 14px; }
.palette-foot { display: flex; gap: 18px; padding: 10px 18px 14px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 11px; color: var(--fg-3); }
.palette-foot span { display: inline-flex; align-items: center; gap: 5px; }

/* ───────── Modo inspección ───────── */
.inspector { display: none; position: fixed; inset: 0; z-index: 90; pointer-events: none; }
body.inspect .inspector { display: block; }
body.inspect, body.inspect * { cursor: crosshair !important; }
.inspector-cols { position: absolute; inset: 0 var(--edge); display: grid; grid-template-columns: repeat(var(--cols), 1fr); }
.inspector-cols i { margin-inline: var(--gut); background: rgba(var(--a), .05); border-inline: 1px solid rgba(var(--a), .22); }
.inspector-box { position: fixed; left: 0; top: 0; width: 0; height: 0; border: 1px solid var(--hi); background: rgba(var(--a), .09); transition: all .09s ease-out; opacity: 0; }
.inspector-box.on { opacity: 1; }
.inspector-box span { position: absolute; left: -1px; bottom: 100%; padding: 3px 7px; background: var(--accent); color: var(--accent-ink); font-family: var(--mono); font-size: 11px; line-height: 1.4; white-space: nowrap; }
.inspector-box.flip span { bottom: auto; top: 100%; }
.inspector-hint { position: fixed; left: 50%; top: calc(var(--nav-h) + 10px); transform: translateX(-50%); padding: 7px 14px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font-family: var(--mono); font-size: 11px; white-space: nowrap; }
.inspector-hint kbd { border-color: rgba(0, 32, 31, .4); color: var(--accent-ink); }

.toast {
  position: fixed; left: 50%; bottom: calc(var(--sb-h) + 18px); z-index: 110;
  transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
  padding: 9px 15px; border-radius: 99px; background: var(--fg); color: var(--bg);
  font-family: var(--mono); font-size: 12px; transition: opacity .3s, transform .3s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ───────── Aparición al hacer scroll ───────── */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ───────── Responsive ───────── */
@media (max-height: 800px) and (min-width: 1101px) {
  .stack3d-rot { width: 290px; height: 196px; }
  .stack3d.has-active .layer.is-above { --lift: 66px; }
  .stack3d-scene { margin-top: 26px; }
}

@media (max-width: 1100px) {
  .stack3d { position: relative; width: 100%; max-width: 520px; margin: 28px auto 0; }
  /* Apilada bajo el texto, la escena reserva todo el recorrido de la pila (con
     las capas de arriba levantadas) más un respiro antes de la leyenda. El alto
     sale del tamaño de .stack3d-rot: si cambia uno, hay que volver a medir. */
  .stack3d-scene { height: 444px; }
  /* Sin hover, la etapa activa se marca con un filete grueso que se llena. */
  .stack3d-legend button {
    background: linear-gradient(var(--hi), var(--hi)) 0 0 / 0 2px no-repeat;
    transition: border-color .35s, background-size .45s var(--ease);
  }
  .stack3d-legend .is-active button { background-size: 100% 2px; }
  .hero-copy { max-width: 600px; }
  .inspect-btn span { display: none; }
}

@media (max-width: 900px) {
  :root { --nav-h: 62px; --sb-h: 0px; --cols: 4; --gut: 8px; }
  .inspect-btn, .footer-inspect { display: none; }
  .statusbar { display: none; }
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
  .brand-word { font-size: 14.5px; }

  .hero { min-height: 0; }
  .hero-title { font-size: calc(clamp(2.2rem, 12vw, 5.6rem) * var(--ds)); }
  .sec-head h2 { font-size: calc(clamp(1.9rem, 8.6vw, 3.6rem) * var(--ds)); }
  .case-title h3 { font-size: calc(clamp(1.9rem, 8.4vw, 3rem) * var(--ds)); }
  .hero-meta > span:first-child { display: none; }
  .stack3d-scene { height: 400px; }
  .stack3d-rot { width: 280px; height: 189px; }
  .hero-index { grid-template-columns: 1fr 1fr; margin-top: 36px; }
  .hero-index a { padding: 15px 10px 17px; font-size: 14px; }


  .sec-head, .manifesto .wrap { display: block; }
  .sec-head h2 { margin-top: 18px; }
  .sec-lead { margin-top: 20px; }
  .manifesto-text { margin-top: 22px; }
  .manifesto-points { grid-template-columns: 1fr; }
  .manifesto-points li { padding: 18px 0 26px; display: grid; grid-template-columns: 32px 1fr; }
  .manifesto-points h3 { margin-top: 0; }
  .manifesto-points p { grid-column: 2; }

  .svc-head { grid-template-columns: 34px 1fr auto; column-gap: 8px; }
  .svc-num { padding-left: 0; }
  .svc-name { grid-column: 2; }
  .svc-toggle { width: 38px; height: 38px; }
  .svc-inner { display: block; }
  .svc-text { padding: 0 0 22px; }
  .demo { height: 310px; margin-bottom: 28px; border-radius: 12px 12px 52px 12px; }
  .demo-ia { grid-template-columns: 1fr; gap: 10px; height: auto; padding: 20px 20px 30px; }
  .ia-arrow { flex-direction: row; }
  .ia-arrow::after { content: "↓"; }
  .bubble { min-height: 0; }
  .ia-out pre { min-height: 150px; }
  .demo-brand, .demo-mkt { padding: 14px 20px 18px 14px; }
  .bb { grid-template-columns: 1.3fr 1fr .5fr; }
  .bb-type em { display: none; }
  .mini-phone { width: 112px; height: 226px; }
  .mp-screen .c { height: 56px; }
  .dash-main { grid-template-columns: 1fr; grid-template-rows: auto auto 1fr; }
  .dash .bars { display: none; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpis div:last-child { display: none; }

  .case-meta .pill { margin-left: 0; }
  .case-stage { aspect-ratio: 4 / 3.4; }
  .case-stage-img { object-position: 72% 40%; }
  .case-notes li:nth-child(n+2) { display: none; }
  .case-stage .phone { left: 6%; width: 27%; bottom: -7%; }
  .case-body, .case-split { display: block; }
  .case-about { padding-right: 0; }
  .case-body .case-stats { margin-top: 36px; }
  .case-shots { margin-top: 44px; }
  .case-shots .phone { left: auto; right: 4%; top: auto; bottom: 24%; width: 26%; }
  .case-shots .case-stats { padding-left: 0; padding-right: 32%; }
  .case-teaser { grid-template-columns: 1fr; }
  .case-teaser-art img { width: min(100%, 340px); }

  .log::before, .log::after { left: 5px; }
  .log-item { display: block; padding-left: 30px; }
  .log-node { left: 5px; top: 30px; }
  .log-cmd, .log-out, .log-item h3, .log-item > p:not(.log-cmd):not(.log-out) { padding-left: 0; }
  .log-item h3 { margin-top: 10px; }
  .log-out { margin-top: 18px; }
  .log-out span { display: inline; margin-right: 10px; }

  .brief { display: block; }
  .brief-form { padding-right: 0; }
  .brief-preview { position: relative; top: 0; margin-top: 12px; }
  #brief-out { min-height: 220px; }
  .fields { grid-template-columns: 1fr; }

  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top nav, .footer-contact { padding-left: 0; }
  .toast { bottom: 18px; }
}

@media (max-width: 520px) {
  .nav .btn { height: 38px; padding: 0 13px; font-size: 13px; }
  .menu-btn { height: 38px; }
  .brand-word { display: none; }
  .hero-cta .btn { flex: 1 1 100%; }
  .status { font-size: 11px; }
  .case-shots .case-stats { padding-right: 0; grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .case-shots .phone { display: none; }
  .brief-actions .btn { flex: 1 1 100%; }
  .app-link { width: 56px; }
  .app-link span { font-size: 9.5px; padding: 4px 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; transition-delay: 0s !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .manifesto-text .w { opacity: 1; }
}
