/* Daniel Fernandez V31 — Stacked editorial services. The stacking itself is 100% native CSS. */
.capabilities {
  padding-top: clamp(46px, 5vw, 76px);
  padding-bottom: 0;
  position: relative;
  z-index: 3;
  overflow: visible;
  isolation: isolate;
}
.capabilities-intro { max-width: 1480px; margin: 0 auto clamp(26px,4vw,50px); scroll-margin-top: calc(var(--df-header-height, 96px) + 16px); }
.capabilities-intro__index,
.capabilities-intro__tail { display:flex; justify-content:space-between; gap:15px; align-items:center; font:500 10px/1.5 var(--mono); letter-spacing:.1em; }
.capabilities-intro__index { border-bottom:1px solid #35424c; padding:0 0 17px; color:var(--lime); }
.capabilities-intro__index span:last-child { color:#8c9eac; }
.capabilities-intro__body { display:grid; grid-template-columns:1.25fr .75fr; gap:35px; align-items:end; padding:37px 0 33px; }
.capabilities-intro h2 { margin:0; max-width:900px; font-size:clamp(48px,5.1vw,94px); letter-spacing:-.085em; line-height:.98; font-weight:700; }
.capabilities-intro h2 em { font-weight:500; font-style:normal; color:#b7a1fa; }
.capabilities-intro h2 em span { color:var(--lime); }
.capabilities-intro__body p { max-width:390px; margin:0 0 5px auto; font-size:clamp(14px,1.16vw,17px); line-height:1.6; color:#adbcc6; }
.capabilities-intro__tail { border-top:1px solid #2c3943; padding-top:13px; color:#8da1ae; }
.capabilities-intro__tail span:last-child { color:var(--lime); }
.services-stack { display:flow-root; position:relative; isolation:isolate; margin:0 auto; max-width:1520px; overflow:visible; }
.stack-shell { --tier:0; --stack-top:calc(var(--df-header-height,96px) + 12px + var(--tier)*13px); position:sticky; top:var(--stack-top); z-index:calc(10 + var(--tier)); margin:0 0 clamp(22px,4.2vh,48px); min-width:0; }
.stack-shell:nth-child(1) { --tier:0; }
.stack-shell:nth-child(2) { --tier:1; }
.stack-shell:nth-child(3) { --tier:2; }
.stack-shell:nth-child(4) { --tier:3; margin-bottom:0; }
.stack-card {
  --ink:#101b22;
  --ink-soft:#2c3b41;
  --accent:#14242b;
  position:relative;
  height:clamp(590px,76svh,780px);
  display:flex;
  flex-direction:column;
  border-radius:clamp(20px,2vw,31px);
  overflow:hidden;
  border:1px solid rgba(250,255,255,.19);
  color:var(--ink);
  box-shadow:0 -14px 44px rgba(0,0,0,.23),0 28px 72px rgba(0,0,0,.24);
  background:#d5ff67;
  isolation:isolate;
  transform:translateZ(0);
}
.stack-card--web { background:#d5ff67; }
.stack-card--seo { background:#b4a1ff; }
.stack-card--ai { --ink:#eefaff; --ink-soft:#bdd1da; --accent:#d5ff67; background:linear-gradient(120deg,#101e32,#163544 85%); border-color:#375163; }
.stack-card--brand { background:#e8eee9; }
.stack-card:before { content:""; position:absolute; inset:0; z-index:-1; pointer-events:none; background-image:linear-gradient(to right,rgba(17,32,40,.045) 1px,transparent 1px),linear-gradient(to bottom,rgba(17,32,40,.045) 1px,transparent 1px); background-size:48px 48px; mask-image:linear-gradient(100deg,transparent 0%,rgba(0,0,0,.48) 80%); }
.stack-card--ai:before { background-image:linear-gradient(to right,rgba(144,221,222,.09) 1px,transparent 1px),linear-gradient(to bottom,rgba(144,221,222,.09) 1px,transparent 1px); }
.stack-card__top,.stack-card__bottom { flex:none; height:53px; padding:0 clamp(24px,3vw,51px); display:flex; align-items:center; justify-content:space-between; gap:15px; font:500 10px/1 var(--mono); letter-spacing:.035em; color:var(--ink-soft); }
.stack-card__top { border-bottom:1px solid rgba(16,33,39,.22); }
.stack-card__bottom { border-top:1px solid rgba(16,33,39,.2); }
.stack-card--ai .stack-card__top,.stack-card--ai .stack-card__bottom { border-color:rgba(226,247,249,.22); }
.stack-card__top b { font:600 18px/1 var(--font); margin-left:10px; }
.stack-card__live { display:inline-block; width:7px; height:7px; border:1px solid currentColor; border-radius:50%; background:currentColor; vertical-align:1px; margin-right:8px; }
.stack-card__grid { flex:1; min-height:0; display:grid; grid-template-columns:minmax(0,48%) minmax(0,52%); gap:0; }
.stack-card__copy { padding:clamp(23px,4.2vw,64px) clamp(20px,3.2vw,53px) 21px clamp(24px,4.4vw,72px); display:flex; flex-direction:column; justify-content:center; min-width:0; position:relative; z-index:2; }
.stack-card__kicker { font:500 10px/1.5 var(--mono); letter-spacing:.07em; margin:0 0 clamp(16px,2.4vw,31px); opacity:.82; }
.stack-card h3 { font-size:clamp(46px,4.6vw,83px); line-height:.99; font-weight:700; letter-spacing:-.084em; margin:0; color:var(--ink); }
.stack-card h3 em { font-style:normal; font-weight:600; color:var(--accent); }
.stack-card--seo h3 em { color:#24334d; }
.stack-card--ai h3 em { color:var(--lime); }
.stack-card__description { font-size:clamp(14px,1.14vw,18px); line-height:1.56; margin:clamp(18px,2.8vw,33px) 0 22px; max-width:470px; color:var(--ink-soft); }
.stack-card__tags { display:flex; gap:6px; flex-wrap:wrap; }
.stack-card__tags span { padding:7px 10px; border:1px solid currentColor; font:500 9px/1.25 var(--mono); white-space:nowrap; letter-spacing:.015em; opacity:.82; }
.stack-card__link { display:flex; align-items:center; gap:25px; align-self:flex-start; margin-top:clamp(22px,3vw,41px); padding-bottom:8px; border-bottom:1.5px solid currentColor; font-size:13px; font-weight:700; transition:gap .22s ease; }
.stack-card__link:hover,.stack-card__link:focus-visible { gap:35px; }
.stack-card__link span { font-size:21px; }
.stack-scene { min-width:0; min-height:0; position:relative; align-self:stretch; overflow:hidden; isolation:isolate; transform:translateZ(0); }
.stack-scene > * { box-sizing:border-box; }
.scene-ambient { position:absolute; inset:11% -2% 4% 2%; border-radius:50%; background:radial-gradient(ellipse at 51% 50%,rgba(210,244,232,.85) 0%,rgba(53,101,104,.30) 35%,transparent 67%); filter:blur(17px); }
.scene-ambient--web { background:radial-gradient(ellipse at 52% 50%,rgba(244,255,216,.95),rgba(139,187,95,.35) 43%,transparent 70%); }
.scene-corner { position:absolute; right:5%; bottom:5%; font:500 9px var(--mono); letter-spacing:.12em; opacity:.65; }

/* 01: editorial WordPress / e-commerce product demo */
.stack-scene--web { perspective:1200px; }
.web-grid { position:absolute; inset:7% 2% 6% 0; border-radius:50%; background:repeating-radial-gradient(circle at 50% 50%,rgba(17,32,40,.12) 0 1px,transparent 2px 64px); }
.web-window { position:absolute; width:76%; height:66%; top:14%; left:5%; border:2px solid #243945; background:#172d3b; box-shadow:18px 22px 0 rgba(16,38,42,.18),0 22px 40px rgba(4,21,30,.2); transform:rotate(-5deg) rotateY(-9deg); transform-origin:center; animation:stack-web-float 7s ease-in-out infinite; }
.web-window__bar { height:38px; padding:0 11px; display:flex; justify-content:space-between; align-items:center; background:#1d2d3c; color:#9eb8c3; font:500 9px var(--mono); }
.window-dots { display:flex; gap:5px; }
.window-dots b { width:7px; height:7px; border-radius:50%; background:#e3867b; }
.window-dots b:nth-child(2){background:#f4c371}.window-dots b:nth-child(3){background:#94c7ba}
.web-window__body { position:relative; height:calc(100% - 38px); overflow:hidden; background:#eef2e8; color:#1a3037; padding:17px 19px; }
.web-window__nav { display:flex; justify-content:space-between; align-items:center; font:500 8px var(--mono); border-bottom:1px solid #d2ded5; padding-bottom:12px; }
.web-window__nav strong { font:700 20px var(--font); letter-spacing:-.09em; }
.web-window__nav strong span { color:#856ddb; }
.web-window__hero { position:relative; z-index:1; margin-top:20px; max-width:74%; display:flex; align-items:flex-start; flex-direction:column; }
.web-window__hero small { font:500 8px var(--mono); color:#758b90; }
.web-window__hero strong { font:700 clamp(21px,2.4vw,37px)/1.04 var(--font); letter-spacing:-.07em; margin-top:17px; }
.web-window__hero strong span{color:#8977b3}.web-window__hero i { margin-top:17px; font:600 9px var(--mono); background:#203841; color:white; padding:9px 13px; font-style:normal; }
.web-window__art { position:absolute; right:-8%; top:24%; width:44%; aspect-ratio:1; border:18px solid rgba(168,141,242,.35); border-radius:50%; }
.web-window__art span { position:absolute; width:84%; height:84%; border:14px solid rgba(129,189,160,.28); border-radius:50%; left:23%; top:19%; }
.web-window__art span:nth-child(2){width:28%;height:28%;left:35%;top:37%;background:#d5ff67;border:0}.web-window__art span:nth-child(3){width:12px;height:12px;left:5%;top:4%;background:#a28bea;border:0}
.web-window__baseline { position:absolute; bottom:11px; left:19px; height:4px; width:52%; background:linear-gradient(90deg,#c4d7d6 0 25%,transparent 25% 33%,#c4d7d6 33% 60%,transparent 60% 67%,#c4d7d6 67%); }
.web-phone { position:absolute; right:5%; top:31%; width:24%; height:57%; padding:12px 8px 9px; border:6px solid #122a36; border-radius:21px; background:#f3f6ee; color:#1a3037; box-shadow:9px 15px 0 rgba(20,39,44,.18),0 18px 30px rgba(4,21,30,.24); transform:rotate(9deg); animation:stack-phone-float 7s ease-in-out -1.5s infinite; }
.web-phone__notch{position:absolute;top:2px;left:35%;width:30%;height:8px;border-radius:0 0 8px 8px;background:#122a36}.web-phone small {font:600 8px var(--mono)}
.web-phone__product{height:54%;margin:10px 0;background:#dce8d5;display:grid;place-items:center}.web-phone__product svg{width:68%;height:87%}
.web-phone__price{font-size:9px;display:flex;flex-direction:column;line-height:1.3}.web-phone__price b{font-size:11px}.web-phone__button{font:700 8px var(--mono);text-align:center;color:#0c1c27;background:#d5ff67;padding:9px 2px;margin-top:8px}
.web-order{position:absolute;bottom:11%;left:2%;background:#132838;color:#e6f4ef;padding:13px 15px;display:flex;align-items:center;gap:12px;box-shadow:9px 10px 0 rgba(8,19,29,.15);min-width:48%;transform:rotate(-1deg);animation:stack-order-float 5s ease-in-out infinite}.web-order__tick{display:grid;place-items:center;width:27px;height:27px;border-radius:50%;background:#d5ff67;color:#16262c;font-weight:700}.web-order small{display:block;color:#a6bec5;font:500 8px var(--mono);margin-bottom:4px}.web-order strong{font:700 10px var(--mono)}.web-order>i{margin-left:auto;font-style:normal;color:#d5ff67}

/* 02: search, indexing and search demand */
.stack-scene--seo { color:#1c2f3f; }
.seo-target { position:absolute; inset:5% -8% -2% 7%; opacity:.55; border-radius:50%; }
.seo-target i { position:absolute; border:1px solid rgba(32,50,77,.26); border-radius:50%; inset:3%; }
.seo-target i:nth-child(2){inset:16%}.seo-target i:nth-child(3){inset:31%}
.stack-search { position:absolute; top:16%; left:12%; width:76%; height:53px; background:#fff; border:1px solid rgba(43,56,76,.38); border-radius:40px; display:flex;align-items:center;gap:14px;padding:0 18px;box-shadow:7px 9px 0 rgba(37,40,72,.14);font:500 13px var(--font);transform:rotate(-3deg); }
.stack-search__icon{font-size:33px;color:#4d657b;line-height:1}.stack-search b{margin-left:auto;color:#8c75d4}
.stack-serp { position:absolute;top:31%;left:13%;width:66%;min-height:34%;border:1px solid #e0e7e8;background:#f7faf7;box-shadow:10px 14px 0 rgba(42,49,75,.19);padding:clamp(13px,1.5vw,22px);transform:rotate(-3deg); }
.stack-serp small{display:flex;align-items:center;font:500 9px var(--mono);color:#60777a}.stack-serp__dot{width:6px;height:6px;border-radius:50%;background:#4b987f;margin-right:6px}
.stack-serp strong{font-size:clamp(17px,1.65vw,27px);line-height:1.15;letter-spacing:-.045em;color:#3157b9;display:block;margin:17px 0 10px}.stack-serp p{font:400 clamp(10px,.9vw,13px)/1.6 var(--font);color:#627984;margin:0 0 15px}.seo-skeleton{display:flex;gap:5px}.seo-skeleton i{height:5px;width:26%;background:#d8e6de}.seo-skeleton i:nth-child(2){width:41%}.seo-skeleton i:nth-child(3){width:17%}
.stack-seo-chart { position:absolute;right:1%;bottom:9%;width:54%;height:32%;min-height:140px;background:#1a293c;box-shadow:10px 14px 0 rgba(39,41,78,.2);padding:16px 17px 6px;transform:rotate(5deg); }
.stack-seo-chart__top{display:flex;justify-content:space-between;gap:8px;align-items:center;font:500 8px var(--mono);color:#e3eff3}.stack-seo-chart__top b{color:#d5ff67;font-size:8px}.stack-seo-chart svg{width:100%;height:calc(100% - 17px);margin-top:3px;overflow:visible}.stack-seo-chart__line{stroke-dasharray:430;stroke-dashoffset:430;animation:stack-seo-draw 6.5s ease-in-out infinite}
.stack-indexed { position:absolute;left:5%;bottom:12%;background:#d5ff67;color:#192e36;box-shadow:7px 9px 0 rgba(29,43,76,.19);display:flex;align-items:center;gap:10px;padding:11px 14px;transform:rotate(-5deg); }
.stack-indexed b{font-size:22px}.stack-indexed span{font:500 9px/1.4 var(--mono)}.stack-indexed strong{font:500 8px/1.4 var(--mono)}

/* 03: genuinely connected automation, instead of decorative 'AI stars' */
.stack-scene--ai { color:#e8fbf5; }
.ai-grid { position:absolute;inset:7%;background:radial-gradient(circle,rgba(107,235,206,.27) 1px,transparent 2px) 0 0 / 23px 23px;mask-image:radial-gradient(ellipse at center,black 17%,transparent 76%); }
.ai-wires { position:absolute;inset:6% 0 0; width:100%;height:100%;overflow:visible; }
.ai-wires path{stroke:rgba(127,226,213,.52);stroke-width:1.6;stroke-dasharray:5 8;fill:none;animation:stack-ai-flow 5s linear infinite}.ai-wires circle{fill:#d5ff67}
.ai-chip { position:absolute;top:31%;left:33%;width:33%;height:39%;min-height:180px;background:linear-gradient(145deg,#17374a,#0b1c2f);border:1px solid #83c8c0;box-shadow:0 0 0 7px rgba(119,229,222,.08),0 0 32px rgba(94,223,207,.19);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:11px;transform:rotate(-2deg); }
.ai-chip small{font:500 8px/1.3 var(--mono);letter-spacing:.04em;color:#b1ced1;text-align:center}
.ai-chip strong{font:700 clamp(48px,5vw,83px)/.9 var(--font);letter-spacing:-.09em;color:#d5ff67}.ai-chip strong span{font-size:24px;margin-left:7px;vertical-align:top;color:#92e0cd}
.ai-wave { display:flex;align-items:center;justify-content:center;gap:4px;height:29px;width:85%; }
.ai-wave i {display:block;width:3px;flex:none;height:calc(8px + (var(--n) * 1px));max-height:27px;background:#96ead0;border-radius:4px;transform-origin:center;animation:stack-ai-wave 1.45s ease-in-out calc(var(--n) * -100ms) infinite alternate}
.ai-wave i:nth-child(3n){background:#d5ff67}.ai-wave i:nth-child(4n){background:#a991ed}
.ai-module {position:absolute;min-width:23%;padding:11px 12px 13px;background:#1a3043;border:1px solid rgba(126,213,209,.5);box-shadow:8px 9px 0 rgba(7,13,22,.24);display:flex;flex-direction:column;gap:7px;color:#d7e9ee}
.ai-module span{font:500 8px var(--mono);color:#b2d5d6}.ai-module b{font:700 11px/1.3 var(--font)}.ai-module small{font:400 9px var(--font);color:#a3b6c5}
.ai-module--input{left:3%;top:12%;transform:rotate(-4deg)}.ai-module--docs{left:2%;bottom:14%;transform:rotate(3deg)}
.ai-module--action{right:3%;top:21%;transform:rotate(4deg);border-color:#d5ff67}.ai-module--action b{color:#d5ff67}.ai-module--crm{right:1%;bottom:16%;transform:rotate(-4deg)}

/* 04: designer's identity-system / social campaign composition */
.stack-scene--brand {color:#172231}
.brand-orbit {position:absolute;inset:6% -8%;border:1px solid #b1b6bd;border-radius:50%;transform:rotate(-21deg)}
.brand-orbit:before{content:"";position:absolute;inset:14%;border-radius:50%;border:1px solid #c5c9ce}
.brand-poster {position:absolute;top:12%;left:8%;width:58%;height:73%;background:#b2a0fb;color:#151a31;box-shadow:11px 14px 0 rgba(25,39,48,.16);overflow:hidden;transform:rotate(-6deg);animation:stack-poster-float 7s ease-in-out infinite}
.brand-poster__top,.brand-poster__foot{position:absolute;left:7%;right:7%;display:flex;align-items:center;justify-content:space-between;font:500 9px var(--mono);z-index:2}
.brand-poster__top{top:7%}.brand-poster__top span{font-size:28px}.brand-poster__foot{bottom:5%}
.brand-poster>strong{position:relative;display:block;z-index:2;font-size:clamp(42px,4.6vw,75px);font-weight:700;line-height:.87;letter-spacing:-.105em;margin:27% 0 0 8%}.brand-poster>strong em{font-style:normal;color:#e1ff79}
.brand-poster__shapes i {position:absolute;width:42%;aspect-ratio:1;border:26px solid #d5ff67;border-radius:50%;right:-11%;bottom:-1%;opacity:.75;transform:rotate(25deg)}.brand-poster__shapes i:nth-child(2){width:21%;border-width:15px;right:26%;bottom:12%;opacity:.46}
.brand-social { position:absolute;right:5%;top:25%;width:34%;height:58%;min-height:250px;background:#fefefe;box-shadow:10px 14px 0 rgba(30,45,56,.18);border:7px solid #192938;transform:rotate(9deg);animation:stack-phone-float 7s ease-in-out -1.5s infinite; }
.brand-social__bar{height:17%;display:flex;gap:7px;align-items:center;padding:0 8px;color:#1b2f3c}.brand-social__bar small{font:600 8px var(--font);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.brand-social__bar>b{margin-left:auto}.brand-social__avatar{width:23px;height:23px;display:grid;place-items:center;font:700 10px var(--font);background:#d5ff67;border-radius:50%}
.brand-social__art{height:66%;display:flex;align-items:center;justify-content:center;position:relative;background:radial-gradient(circle at 85% 20%,#8198fd,#432d84 60%,#202754);overflow:hidden;color:#f6f6f6}
.brand-social__art:before,.brand-social__art:after{content:"";width:90%;aspect-ratio:1;border:19px solid #d5ff67;border-radius:50%;position:absolute;bottom:-72%;left:-26%;transform:rotate(40deg)}.brand-social__art:after{bottom:41%;left:74%;border-color:#beadff;opacity:.6}
.brand-social__art>span{z-index:1;font:700 clamp(22px,2.6vw,43px)/.92 var(--font);letter-spacing:-.09em;text-align:center;transform:rotate(-5deg)}.brand-social__art>span>span{font-size:14px;margin-left:4px;color:#d5ff67}
.brand-social__stats{height:17%;padding:4px 9px;display:flex;align-items:center;gap:10px}.brand-social__stats b{font-size:15px}.brand-social__stats span{margin-left:auto;font:600 7px var(--mono)}
.brand-swatches{position:absolute;bottom:8%;left:2%;display:flex;align-items:center;gap:5px;transform:rotate(-5deg)}.brand-swatches i{width:24px;height:24px;background:#b2a0fb;border:2px solid #1c3036}.brand-swatches i:nth-child(2){background:#d5ff67}.brand-swatches i:nth-child(3){background:#172c45}.brand-swatches i:nth-child(4){background:#fbf9ed}.brand-swatches b{font:600 8px var(--mono);margin-left:8px}
.brand-sticker {position:absolute;top:7%;right:5%;font:700 10px/1.45 var(--mono);background:#d5ff67;padding:10px 12px;color:#152937;box-shadow:5px 6px 0 #172a3c;transform:rotate(9deg)}.brand-sticker span{font-size:17px}

/* A client strip follows immediately after the final sticky card, outside the stack. */
.clients--compact { position:relative; z-index:4; padding-top:clamp(44px,5vw,72px); padding-bottom:clamp(55px,5.5vw,82px); background:#0e1620; border-top:1px solid #2a3b49; }
.clients--compact .section-index { margin-bottom:31px; }
.clients-compact-head { display:flex;align-items:end;justify-content:space-between;gap:35px;margin:0 0 26px; }
.clients-compact-head .mini-label {margin:0 0 11px;color:var(--lime)}
.clients-compact-head h2 {margin:0;font-size:clamp(36px,4.3vw,70px);line-height:1.04;letter-spacing:-.065em}
.clients-compact-head h2 em {font-style:normal;color:#b1a0fa}
.clients-compact-head>p {max-width:375px;font-size:14px;line-height:1.6;color:#acbac5;margin:0 0 4px}
.clients--compact .brand-gallery {margin-top:0}
.clients--compact .brand-gallery__art{height:115px}.clients--compact .brand-gallery__art img{max-height:84px}.clients--compact .brand-gallery__slide--dark .brand-gallery__art img{max-height:88px}

@keyframes stack-web-float {0%,100%{transform:rotate(-5deg) rotateY(-9deg) translateY(0)}50%{transform:rotate(-4deg) rotateY(-6deg) translateY(-10px)}}
@keyframes stack-phone-float {0%,100%{transform:rotate(9deg) translateY(0)}50%{transform:rotate(8deg) translateY(-13px)}}
@keyframes stack-order-float {0%,100%{transform:rotate(-1deg) translateY(0)}50%{transform:rotate(1deg) translateY(-8px)}}
@keyframes stack-seo-draw {0%{stroke-dashoffset:430}25%,70%{stroke-dashoffset:0}100%{stroke-dashoffset:0}}
@keyframes stack-ai-flow {to{stroke-dashoffset:-78}}
@keyframes stack-ai-wave {0%{transform:scaleY(.35)}100%{transform:scaleY(1)}}
@keyframes stack-poster-float {0%,100%{transform:rotate(-6deg) translateY(0)}50%{transform:rotate(-5deg) translateY(-10px)}}

@media (max-width:1170px) {
  .stack-card__grid{grid-template-columns:minmax(0,50%) minmax(0,50%)}
  .stack-card h3{font-size:clamp(42px,4.85vw,69px)}
  .stack-card__copy{padding-left:clamp(24px,3vw,42px);padding-right:17px}
  .stack-card__description{font-size:14px}
  .web-phone{width:26%;right:3%;}
}
@media (max-width:820px) {
  .capabilities-intro__body {grid-template-columns:1fr;gap:17px}
  .capabilities-intro__body p{max-width:530px;margin:0}
  .stack-card {height:clamp(650px,83svh,820px)}
  .stack-card__grid{grid-template-columns:1fr;grid-template-rows:auto 1fr}
  .stack-card__copy{padding:23px 27px 8px;justify-content:start}
  .stack-card h3{font-size:clamp(42px,7vw,62px)}
  .stack-card__description{margin:13px 0 12px;max-width:600px}
  .stack-card__link{margin-top:14px}
  .stack-card__kicker{margin:0 0 12px}
  .stack-scene{min-height:255px}
  .stack-card__top,.stack-card__bottom{height:42px;padding:0 24px}
  .stack-card__top>span:last-child{font-size:8px}
  .web-window{top:7%;height:79%;width:70%;left:15%}.web-phone{top:20%;height:74%;right:15%;width:20%}.web-order{left:7%;bottom:3%;padding:8px 12px}
  .stack-search{top:4%;left:17%;width:70%;}.stack-serp{top:24%;left:17%;width:65%;min-height:43%;}.stack-seo-chart{bottom:2%;right:14%;width:49%;height:41%}.stack-indexed{bottom:11%;left:8%}
  .ai-chip{top:19%;left:36%;height:62%;min-height:130px}.ai-module--input{top:8%}.ai-module--docs{bottom:5%}.ai-module--action{top:10%}.ai-module--crm{bottom:10%}
  .brand-poster{top:5%;left:19%;height:83%;width:52%}.brand-social{top:17%;right:16%;width:24%;height:77%;min-height:155px}.brand-poster>strong{margin-top:20%}.brand-swatches{left:9%;bottom:4%}
  .clients-compact-head{flex-direction:column;align-items:start;gap:13px}
  .clients-compact-head>p{max-width:650px}
}
@media (max-width:560px) {
  .capabilities { padding-top:38px; padding-left:14px; padding-right:14px; }
  .capabilities-intro {padding:0 6px;margin-bottom:23px}
  .capabilities-intro__index,.capabilities-intro__tail{font-size:8px;letter-spacing:.01em}
  .capabilities-intro__index span:last-child{max-width:47%;text-align:right}
  .capabilities-intro__body{padding:24px 0 21px;gap:15px}
  .capabilities-intro h2{font-size:clamp(38px,11vw,58px);letter-spacing:-.079em}
  .capabilities-intro__body p{font-size:13px;line-height:1.5}
  .stack-shell{--stack-top:calc(var(--df-header-height,78px) + 8px + var(--tier)*9px);margin-bottom:18px}
  .stack-card{height:clamp(600px,calc(100svh - 100px),730px);border-radius:17px;}
  .stack-card__top,.stack-card__bottom{height:35px;padding:0 17px;font-size:7.5px;letter-spacing:0}
  .stack-card__top>span:last-child{max-width:45%;text-align:right;font-size:7px}
  .stack-card__top b{margin-left:3px}
  .stack-card__grid{grid-template-rows:auto minmax(0,1fr)}
  .stack-card__copy{padding:21px 20px 3px}
  .stack-card__kicker{font-size:8px;margin-bottom:13px}
  .stack-card h3{font-size:clamp(37px,9.6vw,53px);line-height:1.01}
  .stack-card__description{font-size:12px;line-height:1.46;margin:13px 0 12px}
  .stack-card__tags{gap:4px}.stack-card__tags span{font-size:7px;padding:6px 7px}
  .stack-card__link{font-size:11px;margin-top:13px;padding-bottom:6px;gap:12px}
  .stack-card__link span{font-size:17px}
  .stack-scene{min-height:220px}
  .web-window{top:12%;left:9%;width:77%;height:73%;}.web-window__bar{height:25px;font-size:6px}.web-window__body{height:calc(100% - 25px);padding:10px}.web-window__nav{font-size:6px;padding-bottom:4px}.web-window__nav strong{font-size:14px}.web-window__hero{margin-top:7px}.web-window__hero small{font-size:6px}.web-window__hero strong{font-size:18px;margin-top:7px}.web-window__hero i{font-size:6px;padding:6px;margin-top:6px}.web-window__art{border-width:12px}.web-window__art span{border-width:9px}
  .web-phone{top:26%;right:6%;width:25%;height:62%;border-width:4px;border-radius:12px;padding:8px 4px 5px}.web-phone small{font-size:6px}.web-phone__product{height:48%;margin:6px 0}.web-phone__price b{font-size:8px}.web-phone__price span{font-size:7px}.web-phone__button{font-size:6px;padding:6px 2px}
  .web-order{bottom:4%;left:5%;min-width:51%;padding:8px;gap:6px}.web-order__tick{width:18px;height:18px}.web-order strong{font-size:7px}.web-order small{font-size:6px}
  .stack-search{top:4%;left:8%;width:84%;height:34px;padding:0 10px;font-size:9px}.stack-search__icon{font-size:20px}
  .stack-serp{top:22%;left:7%;width:76%;min-height:43%;padding:10px}.stack-serp small{font-size:7px}.stack-serp strong{font-size:17px;margin:8px 0}.stack-serp p{font-size:8px;line-height:1.5;margin-bottom:7px}
  .stack-seo-chart{width:62%;right:4%;bottom:5%;height:41%;min-height:115px;padding:10px}.stack-seo-chart__top{font-size:6px}.stack-seo-chart__top b{font-size:6px}.stack-indexed{left:3%;bottom:6%;padding:7px}.stack-indexed b{font-size:15px}.stack-indexed span,.stack-indexed strong{font-size:6px}
  .ai-chip{top:28%;left:34%;width:35%;height:44%;min-height:100px;gap:5px}.ai-chip small{font-size:5px}.ai-chip strong{font-size:48px}.ai-chip strong span{font-size:12px}.ai-wave{gap:2px;height:18px}.ai-wave i{width:2px}.ai-module{min-width:30%;padding:6px;gap:3px}.ai-module span{font-size:6px}.ai-module b{font-size:7px}.ai-module small{font-size:6px}
  .ai-module--input{left:1%;top:8%}.ai-module--docs{left:2%;bottom:4%}.ai-module--action{right:1%;top:12%}.ai-module--crm{right:2%;bottom:4%}
  .brand-poster{top:10%;left:9%;width:63%;height:72%}.brand-poster__top,.brand-poster__foot{font-size:6px}.brand-poster>strong{font-size:clamp(33px,9.2vw,49px);margin:24% 0 0 7%}.brand-poster__shapes i{border-width:13px}.brand-social{right:4%;top:24%;width:33%;height:66%;border-width:4px;min-height:0}.brand-social__bar small{font-size:5px}.brand-social__avatar{width:16px;height:16px;font-size:7px}.brand-social__art>span{font-size:clamp(18px,5vw,24px)}.brand-social__stats{gap:5px}.brand-social__stats b{font-size:11px}.brand-social__stats span{font-size:5px}.brand-swatches{left:3%;bottom:3%}.brand-swatches i{width:14px;height:14px}.brand-swatches b{font-size:5px}.brand-sticker{font-size:6px;right:2%;top:8%;padding:6px}
  .clients--compact{padding:40px 22px 54px}.clients-compact-head h2{font-size:38px}.clients-compact-head>p{font-size:12px}.clients--compact .brand-gallery__art{height:120px}
}
@media(max-height:710px) and (min-width:821px) {
  .stack-card{height:calc(100svh - var(--df-header-height,96px) - 48px);min-height:480px}
  .stack-card__copy{padding-top:15px;padding-bottom:12px}
  .stack-card h3{font-size:clamp(44px,4vw,66px)}
  .stack-card__description{margin:17px 0}.stack-card__link{margin-top:18px}
}
@media (max-height:690px) and (max-width:820px) {
  /* On very short viewports, natural vertical flow wins over clipping essential text. */
  .stack-shell{position:relative;top:auto}
  .stack-card{height:auto;min-height:620px}
  .stack-card__grid{min-height:555px;grid-template-rows:auto minmax(260px,1fr)}
}
@media(prefers-reduced-motion:reduce) {
  .stack-scene *, .stack-scene *:before, .stack-scene *:after {animation:none!important;transition:none!important}
  .stack-shell{position:relative;top:auto}
}


/* V33 - O ultimo card permanece inteiramente claro, como na V31.
   Somente a secao de clientes se mistura ao fundo escuro atras dos cards. */
.clients--compact {
  background: transparent;
  border-top: 0;
  isolation: isolate;
}
.clients--compact::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(14, 22, 32, 0) 0%,
    rgba(14, 22, 32, .18) 15%,
    rgba(14, 22, 32, .78) 48%,
    rgba(14, 22, 32, .82) 70%,
    rgba(14, 22, 32, 0) 100%
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 7%,
    #000 93%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 7%,
    #000 93%,
    transparent 100%
  );
}
.clients--compact > * {
  position: relative;
  z-index: 1;
}


/* V34 — CTA protected from card footer when headings wrap or text scales.
   Keep the footer in a reserved flex row; reduce excess space above the CTA.
   Do not change sticky shells, stacking order or mobile illustrations. */
@media (min-width:821px) {
  .stack-card__copy {
    padding-top:clamp(18px,2.1vw,33px);
    padding-bottom:clamp(22px,2.1vw,32px);
  }
  .stack-card__kicker { margin-bottom:clamp(12px,1.3vw,19px); }
  .stack-card__description { margin:clamp(14px,1.65vw,24px) 0 13px; line-height:1.5; }
  .stack-card__link { margin-top:clamp(13px,1.45vw,22px); flex-shrink:0; }
  .stack-card__bottom { position:relative; z-index:4; flex-shrink:0; }
}
@media (min-width:821px) and (max-height:840px) {
  .stack-card__copy { padding-top:9px; padding-bottom:17px; }
  .stack-card h3 { font-size:clamp(39px,3.5vw,57px); }
  .stack-card__kicker { margin-bottom:9px; }
  .stack-card__description { margin:10px 0 9px; line-height:1.42; font-size:clamp(12px,1vw,15px); }
  .stack-card__link { margin-top:10px; }
}

/* Product demo — vector tee with balanced silhouette and finer details. */
.web-phone__product {
  background: radial-gradient(circle at 48% 40%,#eef7e1 0%,#dae9d4 72%,#c3d6c8 100%);
  border:1px solid rgba(57,98,80,.1);
}
.web-phone__product svg.web-phone__tee {
  width:min(90%,170px);
  height:96%;
  max-width:100%;
  display:block;
  filter:drop-shadow(1px 5px 2px rgba(33,70,54,.14));
}


/* V36 — Concentric decorative ellipses, all contained inside each scene.
   Unlike the old repeating-radial-gradient clipped by a 50% border radius,
   these outlines are complete geometric rings like those in the SEO card. */
.stack-scene--web .web-grid {
  inset: 7% 10% 7% 8%;
  border-radius: 50%;
  border: 1px solid rgba(24, 53, 48, .24);
  background: none;
  -webkit-mask-image: none;
  mask-image: none;
}
.stack-scene--web .web-grid::before,
.stack-scene--web .web-grid::after {
  content: "";
  position: absolute;
  display: block;
  border-radius: 50%;
  border: 1px solid rgba(24, 53, 48, .20);
  pointer-events: none;
}
.stack-scene--web .web-grid::before { inset: 13%; }
.stack-scene--web .web-grid::after { inset: 27%; }
.stack-scene--brand .brand-orbit {
  inset: 12% 12% 12% 10%;
  transform: rotate(-9deg);
  border-color: rgba(91, 111, 129, .37);
}
.stack-scene--brand .brand-orbit::before {
  border-color: rgba(112, 131, 146, .32);
}
